mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-30 05:29:53 +00:00
docs: mcp
This commit is contained in:
parent
9c6aa82ac1
commit
c738e26438
2 changed files with 33 additions and 1 deletions
19
README.md
19
README.md
|
|
@ -56,3 +56,22 @@ Project configuration is optional. You can place an `opencode.json` file in the
|
||||||
```
|
```
|
||||||
|
|
||||||
#### MCP
|
#### MCP
|
||||||
|
|
||||||
|
```json title="opencode.json"
|
||||||
|
{
|
||||||
|
"$schema": "http://opencode.ai/config.json",
|
||||||
|
"mcp": {
|
||||||
|
"localmcp": {
|
||||||
|
"type": "local",
|
||||||
|
"command": ["bun", "x", "my-mcp-command"],
|
||||||
|
"environment": {
|
||||||
|
"MY_ENV_VAR": "my_env_var_value"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"remotemcp": {
|
||||||
|
"type": "remote",
|
||||||
|
"url": "https://my-mcp-server.com"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,16 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://opencode.ai/config.json"
|
"$schema": "http://opencode.ai/config.json",
|
||||||
|
"mcp": {
|
||||||
|
"localmcp": {
|
||||||
|
"type": "local",
|
||||||
|
"command": ["bun", "x", "my-mcp-command"],
|
||||||
|
"environment": {
|
||||||
|
"MY_ENV_VAR": "my_env_var_value"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"remotemcp": {
|
||||||
|
"type": "remote",
|
||||||
|
"url": "https://my-mcp-server.com"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue