Add @sveltejs/opencode to your OpenCode config (either global or local):
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@sveltejs/opencode"]
}
Place your configuration at one of these locations:
~/.config/opencode/svelte.json (global)$OPENCODE_CONFIG_DIR/svelte.json (if OPENCODE_CONFIG_DIR is set, takes priority)The default configuration:
{
"$schema": "https://raw.githubusercontent.com/sveltejs/mcp/refs/heads/main/packages/opencode/schema.json",
"mcp": {
"type": "remote",
"enabled": true
},
"subagent": {
"enabled": true
},
"instructions": {
"enabled": true
}
}
Repo for the official Svelte MCP server.
pnpm i
cp apps/mcp-remote/.env.example apps/mcp-remote/.env
pnpm dev
[!NOTE] Currently to prevent having a bunch of Timeout logs on vercel we shut down the SSE channel immediately. This means that we can't use
server.logand we are not sendinglist-changednotifications. We can use elicitation and sampling since those are sent on the same stream of the POST request
pnpm run inspect
Then visit http://localhost:6274/
Streamable HTTPpnpm run db:studio
Sign in to leave a comment.