Skip to content

Commit 6d8316f

Browse files
authored
docs: fix OpenCode mcp config (#367)
docs: fix opencode config OpenCode requires "url" and doesn't accept "command" for type:remote, we can run mcp servers using npx command with type:local, OpenCode MCP Docs: https://opencode.ai/docs/mcp-servers
1 parent 8b5b8b7 commit 6d8316f

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

docs/mcp/connecting.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,23 @@ Restart Claude Desktop after editing.
3030
claude mcp add tanstack -- npx @tanstack/cli mcp
3131
```
3232

33+
## OpenCode
34+
35+
Add to your [OpenCode JSON config file](https://opencode.ai/docs/config/):
36+
37+
```json
38+
{
39+
"$schema": "https://opencode.ai/config.json",
40+
"mcp": {
41+
"tanstack": {
42+
"type": "local",
43+
"command": ["npx", "@tanstack/cli", "mcp"],
44+
"enabled": true
45+
}
46+
}
47+
}
48+
```
49+
3350
## Cursor
3451

3552
Add to your Cursor MCP config:

docs/mcp/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Add to your [OpenCode JSON config file](https://opencode.ai/docs/config/):
4040
"$schema": "https://opencode.ai/config.json",
4141
"mcp": {
4242
"tanstack": {
43-
"type": "remote",
43+
"type": "local",
4444
"command": ["npx", "@tanstack/cli", "mcp"],
4545
"enabled": true
4646
},

0 commit comments

Comments
 (0)