Local setup
ローカル(または stdio)バージョンの MCP サーバーは、@sveltejs/mcp npm パッケージで利用できます。グローバルにインストールして設定で参照するか、または npx で実行することもできます:
npx -y @sveltejs/mcp以下は、一般的な MCP クライアントでの設定方法です:
Claude Code
Claude Code でローカル MCP バージョンを含めるには、次のコマンドを実行するだけです:
claude mcp add -t stdio -s [scope] svelte -- npx -y @sveltejs/mcp[scope] には user、project または local を指定する必要があります。
Claude Desktop
Settings > Developer セクションで、Edit Config をクリックします。claude_desktop_config.json ファイルがあるフォルダが開きます。そのファイルを編集して、次の構成を含めます:
{
"mcpServers": {
"svelte": {
"command": "npx",
"args": ["-y", "@sveltejs/mcp"]
}
}
}Codex CLI
config.toml に次の内容を追加します(デフォルトでは ~/.codex/config.toml ですが、より高度なセットアップについては the configuration documentation を参照してください):
[mcp_servers.svelte]
command = "npx"
args = ["-y", "@sveltejs/mcp"]Copilot CLI
Use the Copilot CLI to interactively add the MCP server:
/mcp addAlternatively, create or edit ~/.copilot/mcp-config.json and add the following configuration:
{
"mcpServers": {
"svelte": {
"command": "npx",
"args": ["-y", "@sveltejs/mcp"]
}
}
}Gemini CLI
Gemini CLI でローカル MCP バージョンを含めるには、次のコマンドを実行するだけです:
gemini mcp add -t stdio -s [scope] svelte npx -y @sveltejs/mcp[scope] には user、project または local を指定する必要があります。
OpenCode
You can automatically configure the MCP server using the OpenCode plugin (recommended). If you prefer to configure the MCP server manually, run:
opencode mcp add以下のインストラクションに従い、'Select MCP server type' プロンプトで 'Local' を選択します:
opencode mcp add
┌ Add MCP server
│
◇ Enter MCP server name
│ svelte
│
◇ Select MCP server type
│ Local
│
◆ Enter command to run
│ npx -y @sveltejs/mcpVS Code
- コマンドパレットを開く
- "MCP: Add Server..." を選択
- "Command (stdio)" を選択
- 入力欄に
npx -y @sveltejs/mcpと入力してEnterを押す - 名前を尋ねられたら
svelteと入力 GlobalMCP サーバーとして追加するかWorkspaceMCP サーバーとして追加するか選択
Cursor
You can automatically configure the MCP server using the Cursor plugin (recommended). If you prefer to configure the MCP server manually you can:
- Open the command palette
- Select "View: Open MCP Settings"
- Click on "Add custom MCP"
これによって MCP サーバーのファイルが開くので、次の構成を追加します:
{
"mcpServers": {
"svelte": {
"command": "npx",
"args": ["-y", "@sveltejs/mcp"]
}
}
}Zed
Install the Svelte MCP Server extension.
Configure Manually
- Open the command palette
- Search and select "agent:open settings"
- In settings panel look for
Model Context Protocol (MCP) Servers - Click on "Add Server"
- Select: "Add Custom Server"
It will open a popup with MCP server config where you can add the following configuration:
{
"svelte": {
"command": "npx",
"args": ["-y", "@sveltejs/mcp"]
}
}Other clients
もしお使いの MCP クライアントの設定例がない場合は、その MCP クライアントのドキュメントで stdio サーバーについて参照し、コマンドとして npx、引数として -y @sveltejs/mcp を使用してください。
Edit this page on GitHub llms.txt