|
| 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] svelte 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 | +- When prompted for a name, enter `svelte` |
| 24 | +- Under the Remote MCP server URL input, use `https://mcp.svelte.dev/mcp` |
| 25 | +- Click Add |
| 26 | + |
| 27 | +## Codex CLI |
| 28 | + |
| 29 | +Add the following to your `config.toml` (which defaults to `~/.codex/config.toml`, but refer to [the configuration documentation](https://github.com/openai/codex/blob/main/docs/config.md) for more advanced setups): |
| 30 | + |
| 31 | +```toml |
| 32 | +experimental_use_rmcp_client = true |
| 33 | +[mcp_servers.svelte] |
| 34 | +url = "https://mcp.svelte.dev/mcp" |
| 35 | +``` |
| 36 | + |
| 37 | +## Gemini CLI |
| 38 | + |
| 39 | +To use the remote MCP server with Gemini CLI, simply run the following command: |
| 40 | + |
| 41 | +```bash |
| 42 | +gemini mcp add -t http -s [scope] svelte https://mcp.svelte.dev/mcp |
| 43 | +``` |
| 44 | + |
| 45 | +The `[scope]` must be `user`, `project` or `local`. |
| 46 | + |
| 47 | +## OpenCode |
| 48 | + |
| 49 | +Run the command: |
| 50 | + |
| 51 | +```bash |
| 52 | +opencode mcp add |
| 53 | +``` |
| 54 | + |
| 55 | +and follow the instructions, selecting 'Remote' under the 'Select MCP server type' prompt: |
| 56 | + |
| 57 | +```bash |
| 58 | +opencode mcp add |
| 59 | + |
| 60 | +┌ Add MCP server |
| 61 | +│ |
| 62 | +◇ Enter MCP server name |
| 63 | +│ svelte |
| 64 | +│ |
| 65 | +◇ Select MCP server type |
| 66 | +│ Remote |
| 67 | +│ |
| 68 | +◇ Enter MCP server URL |
| 69 | +│ https://mcp.svelte.dev/mcp |
| 70 | +``` |
| 71 | + |
| 72 | +## VS Code |
| 73 | + |
| 74 | +- Open the command palette |
| 75 | +- Select "MCP: Add Server..." |
| 76 | +- Select "HTTP (HTTP or Server-Sent-Events)" |
| 77 | +- Insert `https://mcp.svelte.dev/mcp` in the input and press `Enter` |
| 78 | +- Insert your preferred name |
| 79 | +- Select if you want to add it as a `Global` or `Workspace` MCP server |
| 80 | + |
| 81 | +## Cursor |
| 82 | + |
| 83 | +- Open the command palette |
| 84 | +- Select "View: Open MCP Settings" |
| 85 | +- Click on "Add custom MCP" |
| 86 | + |
| 87 | +It will open a file with your MCP servers where you can add the following configuration: |
| 88 | + |
| 89 | +```json |
| 90 | +{ |
| 91 | + "mcpServers": { |
| 92 | + "svelte": { |
| 93 | + "url": "https://mcp.svelte.dev/mcp" |
| 94 | + } |
| 95 | + } |
| 96 | +} |
| 97 | +``` |
| 98 | + |
| 99 | +## Other clients |
| 100 | + |
| 101 | +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