docs: mcp

This commit is contained in:
Dax Raad 2025-06-14 12:25:09 -04:00
parent 9c6aa82ac1
commit c738e26438
2 changed files with 33 additions and 1 deletions

View file

@ -56,3 +56,22 @@ Project configuration is optional. You can place an `opencode.json` file in the
```
#### 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"
}
}
}
```

View file

@ -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"
}
}
}