|
| 1 | +--- |
| 2 | +title: Remote setup |
| 3 | +--- |
| 4 | + |
| 5 | +The remote version of the MCP server is available on `https://mcp.svelte.dev/mcp`. |
| 6 | + |
| 7 | +Here's how to set it up in some common MCP clients: |
| 8 | + |
| 9 | +## Claude Code |
| 10 | + |
| 11 | +To include the remote MCP version in Claude Code, simply run the following command: |
| 12 | + |
| 13 | +```bash |
| 14 | +claude mcp add -t http -s [scope] [name] https://mcp.svelte.dev/mcp |
| 15 | +``` |
| 16 | + |
| 17 | +You can choose your preferred `scope` (it must be `user`, `project` or `local`) and `name`. |
| 18 | + |
| 19 | +## Claude Desktop |
| 20 | + |
| 21 | +- Open `Settings > Connectors` |
| 22 | +- Click on `Add Custom Connector` |
| 23 | +- Insert the name you prefer most |
| 24 | +- Insert `https://mcp.svelte.dev/mcp` as the `Remote MCP server URL` |
| 25 | +- Click `Add` |
| 26 | + |
| 27 | +## Codex CLI |
| 28 | + |
| 29 | +Add the following to your `config.toml` (defaults to `~/.codex/config.toml`... refer to [the configuration documentation](https://github.com/openai/codex/blob/69cb72f8422f2aa7222bea3a6ce48fd130fa76c4/docs/config.md) for more advanced setups): |
| 30 | + |
| 31 | +```toml |
| 32 | +experimental_use_rmcp_client = true |
| 33 | +[mcp_servers.name] |
| 34 | +url = "https://mcp.svelte.dev/mcp" |
| 35 | +``` |
| 36 | + |
| 37 | +To use HTTP servers in Codex you need to enable `experimental_use_rmcp_client` and the top level must be `mcp_server` but you can choose your preferred `name`. |
| 38 | + |
| 39 | +## Gemini CLI |
| 40 | + |
| 41 | +To include the remote MCP version in Gemini CLI, simply run the following command: |
| 42 | + |
| 43 | +```bash |
| 44 | +gemini mcp add -t http -s [scope] [name] https://mcp.svelte.dev/mcp |
| 45 | +``` |
| 46 | + |
| 47 | +You can choose your preferred `scope` (it must be `user`, `project` or `local`) and `name`. |
| 48 | + |
| 49 | +## Opencode |
| 50 | + |
| 51 | +Run the command: |
| 52 | + |
| 53 | +```bash |
| 54 | +opencode mcp add |
| 55 | +``` |
| 56 | + |
| 57 | +and follow the instructions, selecting Remote when asked for "Select MCP server type": |
| 58 | + |
| 59 | +```bash |
| 60 | +opencode mcp add |
| 61 | + |
| 62 | +┌ Add MCP server |
| 63 | +│ |
| 64 | +◇ Enter MCP server name |
| 65 | +│ [name] |
| 66 | +│ |
| 67 | +◇ Select MCP server type |
| 68 | +│ Remote |
| 69 | +│ |
| 70 | +◇ Enter MCP server URL |
| 71 | +│ https://mcp.svelte.dev/mcp |
| 72 | +``` |
| 73 | + |
| 74 | +You can choose your preferred `name`. |
| 75 | + |
| 76 | +## VSCode |
| 77 | + |
| 78 | +- Open the command Palette |
| 79 | +- Select "MCP: Add Server..." |
| 80 | +- Select "HTTP (HTTP or Server-Sent-Events)" |
| 81 | +- Insert `https://mcp.svelte.dev/mcp` in the input and press `Enter` |
| 82 | +- Insert your preferred name |
| 83 | +- Select if you want to add it as a `Global` or `Workspace` MCP server |
| 84 | + |
| 85 | +## Cursor |
| 86 | + |
| 87 | +- Open the command Palette |
| 88 | +- Select "View: Open MCP Settings" |
| 89 | +- Click on "Add custom MCP" |
| 90 | + |
| 91 | +It will open a file with your MCP servers where you can add the following configuration: |
| 92 | + |
| 93 | +```json |
| 94 | +{ |
| 95 | + "mcpServers": { |
| 96 | + "[name]": { |
| 97 | + "url": "https://mcp.svelte.dev/mcp" |
| 98 | + } |
| 99 | + } |
| 100 | +} |
| 101 | +``` |
| 102 | + |
| 103 | +The top level must be `mcpServers` but you can choose your preferred `name`. |
| 104 | + |
| 105 | +## Other clients |
| 106 | + |
| 107 | +If we didn't include the MCP client you are using, refer to their documentation for `remote` servers and use `https://mcp.svelte.dev/mcp` as the URL. |
0 commit comments