远程设置
MCP 服务器的远程版本可在 https://mcp.svelte.dev/mcp 上获取。
¥The remote version of the MCP server is available at https://mcp.svelte.dev/mcp.
以下是如何在一些常见的 MCP 客户端中进行设置:
¥Here’s how to set it up in some common MCP clients:
Claude Code
要在 Claude Code 中包含远程 MCP 版本,只需运行以下命令:
¥To include the remote MCP version in Claude Code, simply run the following command:
claude mcp add -t http -s [scope] svelte https://mcp.svelte.dev/mcp你可以选择你喜欢的 scope(必须是 user、project 或 local)和 name。
¥You can choose your preferred scope (it must be user, project or local) and name.
Claude Desktop
打开“设置”>“连接器”
¥Open Settings > Connectors
点击“添加自定义连接器”
¥Click on Add Custom Connector
当提示输入名称时,请输入
svelte¥When prompted for a name, enter
svelte在远程 MCP 服务器 URL 输入下,使用
https://mcp.svelte.dev/mcp¥Under the Remote MCP server URL input, use
https://mcp.svelte.dev/mcp点击“添加”
¥Click Add
Codex CLI
将以下内容添加到你的 config.toml(默认为 ~/.codex/config.toml,但有关更高级的设置,请参阅 配置文档):
¥Add the following to your config.toml (which defaults to ~/.codex/config.toml, but refer to the configuration documentation for more advanced setups):
experimental_use_rmcp_client = true
[mcp_servers.svelte]
url = "https://mcp.svelte.dev/mcp"Gemini CLI
要将远程 MCP 服务器与 Gemini CLI 一起使用,只需运行以下命令:
¥To use the remote MCP server with Gemini CLI, simply run the following command:
gemini mcp add -t http -s [scope] svelte https://mcp.svelte.dev/mcp[scope] 必须是 user 或 project。
¥The [scope] must be user or project.
OpenCode
运行以下命令:
¥Run the command:
opencode mcp add并按照说明操作,在 ‘选择 MCP 服务器类型’ 提示符下选择 ‘远程’:
¥and follow the instructions, selecting ‘Remote’ under the ‘Select MCP server type’ prompt:
opencode mcp add
┌ Add MCP server
│
◇ Enter MCP server name
│ svelte
│
◇ Select MCP server type
│ Remote
│
◇ Enter MCP server URL
│ https://mcp.svelte.dev/mcpVS Code
打开命令面板
¥Open the command palette
选择“MCP:”添加服务器...
¥Select “MCP: Add Server...”
选择 “HTTP(HTTP 或服务器发送事件)”
¥Select “HTTP (HTTP or Server-Sent-Events)”
在输入框中插入
https://mcp.svelte.dev/mcp并按下Enter¥Insert
https://mcp.svelte.dev/mcpin the input and pressEnter输入你喜欢的名称
¥Insert your preferred name
选择是否要将其添加为
Global或WorkspaceMCP 服务器¥Select if you want to add it as a
GlobalorWorkspaceMCP server
Cursor
打开命令面板
¥Open the command palette
选择“查看:”打开“MCP 设置”
¥Select “View: Open MCP Settings”
点击 “添加自定义 MCP”
¥Click on “Add custom MCP”
它将打开一个包含你的 MCP 服务器的文件,你可以在其中添加以下配置:
¥It will open a file with your MCP servers where you can add the following configuration:
{
"mcpServers": {
"svelte": {
"url": "https://mcp.svelte.dev/mcp"
}
}
}GitHub Coding Agent
在 GitHub 中打开你的代码库
¥Open your repository in GitHub
前往“设置”
¥Go to Settings
打开 Copilot > Coding Agent
¥Open Copilot > Coding agent
编辑 MCP 配置
¥Edit the MCP configuration
{
"mcpServers": {
"svelte": {
"type": "http",
"url": "https://mcp.svelte.dev/mcp",
"tools": ["*"]
}
}
}点击“保存 MCP 配置”
¥Click Save MCP configuration
其他客户端(Other clients)
¥Other clients
如果我们未包含你正在使用的 MCP 客户端,请参阅其 remote 服务器文档,并使用 https://mcp.svelte.dev/mcp 作为 URL。
¥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.