mirror of
https://github.com/sst/opencode.git
synced 2025-08-04 21:38:01 +00:00
docs: how to disable mcp server (#543)
Some checks failed
deploy / deploy (push) Has been cancelled
Some checks failed
deploy / deploy (push) Has been cancelled
Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
parent
1fdb326aa7
commit
986144b377
2 changed files with 8 additions and 5 deletions
|
@ -26,14 +26,16 @@ Add a local MCP servers under `mcp.localmcp`.
|
|||
"localmcp": {
|
||||
"type": "local",
|
||||
"command": ["bun", "x", "my-mcp-command"],
|
||||
"enabled": true,
|
||||
"environment": {
|
||||
"MY_ENV_VAR": "my_env_var_value"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
You can also disable a server by setting `enabled` to `false`. This is useful if you want to temporarily disable a server without removing it from your config.
|
||||
|
||||
### Remote
|
||||
|
||||
Add a remote MCP servers under `mcp.remotemcp`.
|
||||
|
@ -44,7 +46,8 @@ Add a remote MCP servers under `mcp.remotemcp`.
|
|||
"mcp": {
|
||||
"remotemcp": {
|
||||
"type": "remote",
|
||||
"url": "https://my-mcp-server.com"
|
||||
"url": "https://my-mcp-server.com",
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue