<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Pascal Couturier</title>
    <description>The latest articles on DEV Community by Pascal Couturier (@pascal_couturier).</description>
    <link>https://dev.to/pascal_couturier</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4274910%2Fb2e1acc1-6cea-42d8-ad4d-17ebaa3c7abb.jpg</url>
      <title>DEV Community: Pascal Couturier</title>
      <link>https://dev.to/pascal_couturier</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pascal_couturier"/>
    <language>en</language>
    <item>
      <title>Publish a static site from Cursor, Claude Code or VS Code with an MCP server</title>
      <dc:creator>Pascal Couturier</dc:creator>
      <pubDate>Mon, 30 Nov 2026 18:39:19 +0000</pubDate>
      <link>https://dev.to/pascal_couturier/publish-a-static-site-from-cursor-claude-code-or-vs-code-with-an-mcp-server-761</link>
      <guid>https://dev.to/pascal_couturier/publish-a-static-site-from-cursor-claude-code-or-vs-code-with-an-mcp-server-761</guid>
      <description>&lt;p&gt;You ask Cursor or Claude Code for a landing page. Two minutes later you have an &lt;code&gt;index.html&lt;/code&gt;, a stylesheet and a couple of images. Then the boring part starts: pick a host, create a project, drag files somewhere, wait for a deploy, copy the URL.&lt;/p&gt;

&lt;p&gt;I wanted the assistant that wrote the site to also put it online. So we built a remote MCP server for SoFast, the static hosting I work on. This post shows how to wire it up in Cursor, Claude Code and VS Code, and what actually happens when you ask the assistant to publish.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I'm on the SoFast team. The setup below works the same way with any remote MCP server that uses OAuth, so it's useful even if you host elsewhere.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;An MCP client that supports &lt;strong&gt;remote servers over Streamable HTTP with OAuth&lt;/strong&gt;: Cursor, Claude Code, VS Code, Claude, ChatGPT (developer mode) or Gemini.&lt;/li&gt;
&lt;li&gt;A SoFast account. There's a 60-day free trial, no credit card.&lt;/li&gt;
&lt;li&gt;A static site: HTML, CSS, JavaScript, images, fonts. No build step on the server side, so if you use a framework, build it first.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The server URL is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://mcp.sofast.host/mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There's no API key. The first time the client connects, it opens a browser window, you sign in to SoFast and approve access. The assistant never sees your password, and you can revoke access from the SoFast dashboard at any time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Claude Code
&lt;/h2&gt;

&lt;p&gt;One command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add --transport http sofast https://mcp.sofast.host/mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then, inside Claude Code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pick &lt;code&gt;sofast&lt;/code&gt; and sign in when the browser opens.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cursor
&lt;/h2&gt;

&lt;p&gt;Add the server to &lt;code&gt;.cursor/mcp.json&lt;/code&gt; in your project (or &lt;code&gt;~/.cursor/mcp.json&lt;/code&gt; to make it available everywhere):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"sofast"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://mcp.sofast.host/mcp"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Cursor asks you to sign in the first time a tool is used.&lt;/p&gt;

&lt;h2&gt;
  
  
  VS Code
&lt;/h2&gt;

&lt;p&gt;In the Chat view: &lt;strong&gt;Customizations → Add MCP Server → HTTP&lt;/strong&gt;, then paste the URL. Or commit it with the project in &lt;code&gt;.mcp.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"sofast"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"http"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://mcp.sofast.host/mcp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"tools"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"*"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Check that it works
&lt;/h2&gt;

&lt;p&gt;Ask:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;List my SoFast sites.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If you get a list (or "no sites yet"), you're connected.&lt;/p&gt;

&lt;h2&gt;
  
  
  Publishing a site
&lt;/h2&gt;

&lt;p&gt;Try a prompt like this one:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Build a one-page portfolio for a freelance illustrator: hero, three project cards, contact section. Plain HTML and CSS. Then publish it on SoFast at a new address.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Behind the scenes, the assistant chains a few tools:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;upload_files&lt;/code&gt;&lt;/strong&gt; sends the files (text as UTF-8, images as base64). It returns an &lt;code&gt;upload_id&lt;/code&gt;. Big sites can be sent in several calls with the same &lt;code&gt;upload_id&lt;/code&gt;, up to 4 MB per call.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;create_site&lt;/code&gt;&lt;/strong&gt; creates the site at &lt;code&gt;&amp;lt;name&amp;gt;.sofast.website&lt;/code&gt; with that &lt;code&gt;upload_id&lt;/code&gt; and publishes the first version.&lt;/li&gt;
&lt;li&gt;If the publish is still running, &lt;strong&gt;&lt;code&gt;get_site_status&lt;/code&gt;&lt;/strong&gt; is called until the site is live, or until it fails with a reason (missing &lt;code&gt;index.html&lt;/code&gt; at the root is the classic one).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You get back a live HTTPS URL.&lt;/p&gt;

&lt;h3&gt;
  
  
  Large sites: the shell route
&lt;/h3&gt;

&lt;p&gt;If your client can run shell commands (Claude Code, Cursor's agent), there's a faster path for sites with lots of binary files. &lt;strong&gt;&lt;code&gt;get_upload_link&lt;/code&gt;&lt;/strong&gt; returns a one-time command that zips the folder and uploads it directly. It's valid for 15 minutes and a single upload. The assistant runs it, and the site is published as a new version.&lt;/p&gt;

&lt;h2&gt;
  
  
  Updating a site
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Change the headline to "Available for new projects" and republish my portfolio.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The assistant edits the file, calls &lt;code&gt;upload_files&lt;/code&gt;, then &lt;strong&gt;&lt;code&gt;publish_site&lt;/code&gt;&lt;/strong&gt; on the existing site. The address doesn't change, and the previous version stays restorable from the dashboard. Small copy fixes happen without opening anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  The other tools
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;list_sites&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Lists your sites with their address, status and last publish&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_site_status&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;One site's status, file count and latest publish result&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;rename_site&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Changes the name shown in your dashboard (not the URL)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;change_site_address&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Moves the site to a new &lt;code&gt;*.sofast.website&lt;/code&gt; subdomain (once a day; old links break)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;pause_site&lt;/code&gt; / &lt;code&gt;unpause_site&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Takes a site offline or puts it back online&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;delete_site&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Doesn't delete anything: returns a link so &lt;em&gt;you&lt;/em&gt; confirm it in the dashboard&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two design choices worth copying if you build your own MCP server:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Every tool is annotated.&lt;/strong&gt; Read-only tools (&lt;code&gt;list_sites&lt;/code&gt;, &lt;code&gt;get_site_status&lt;/code&gt;) are marked &lt;code&gt;readOnlyHint&lt;/code&gt;, the rest are marked as writes or destructive, so clients can ask for confirmation before the risky ones.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Irreversible actions stay with the human.&lt;/strong&gt; An assistant that misreads "clean up my sites" shouldn't be able to wipe anything. &lt;code&gt;delete_site&lt;/code&gt; hands you a link instead.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Custom domains
&lt;/h2&gt;

&lt;p&gt;Sites get a &lt;code&gt;*.sofast.website&lt;/code&gt; address with SSL out of the box. On paid plans you can connect your own domain to each site from the dashboard, and the certificate is issued and renewed for you. Domains are managed in the dashboard, not through MCP.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;The nice thing about remote MCP servers with OAuth is that setup is just a URL. Once it's added, "publish this" becomes part of the same conversation that built the site.&lt;/p&gt;

&lt;p&gt;Full setup for every client (including Claude and ChatGPT on the web): &lt;a href="https://www.sofast.host/mcp/" rel="noopener noreferrer"&gt;sofast.host/mcp&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you've built an MCP server yourself, I'm curious how you handled destructive actions. Let me know in the comments.&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>webdev</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
