You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/web/src/content/docs/docs/mcp-servers.mdx
+27-2Lines changed: 27 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ You can define MCP servers in your opencode config under `mcp`.
18
18
19
19
### Local
20
20
21
-
Add local MCP servers under `mcp` with `"type": "local"`.
21
+
Add local MCP servers using `"type": "local"` within the MCP object. Multiple MCP servers can be added. The key string for each server can be any arbitrary name.
22
22
23
23
```json title="opencode.json"
24
24
{
@@ -31,7 +31,7 @@ Add local MCP servers under `mcp` with `"type": "local"`.
31
31
"environment": {
32
32
"MY_ENV_VAR": "my_env_var_value"
33
33
}
34
-
}, {
34
+
},
35
35
"my-different-local-mcp-server": {
36
36
"type": "local",
37
37
"command": ["bun", "x", "my-other-mcp-command"],
@@ -62,3 +62,28 @@ Add remote MCP servers under `mcp` with `"type": "remote"`.
62
62
}
63
63
}
64
64
```
65
+
66
+
Local and remote servers can be used together within the same `mcp` config object.
0 commit comments