summaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-06-14 12:25:09 -0400
committerDax Raad <[email protected]>2025-06-14 12:25:26 -0400
commitc738e26438f1b6d8558d7c754c3441ed18b75e29 (patch)
treeb0be36b9680c5ca208262cd928a12d9723676b10 /README.md
parent9c6aa82ac1ae11645afa0fee2e92d3cf88e02129 (diff)
downloadopencode-c738e26438f1b6d8558d7c754c3441ed18b75e29.tar.gz
opencode-c738e26438f1b6d8558d7c754c3441ed18b75e29.zip
docs: mcp
Diffstat (limited to 'README.md')
-rw-r--r--README.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/README.md b/README.md
index 5bc09bd48..ddbf6545c 100644
--- a/README.md
+++ b/README.md
@@ -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"
+ }
+ }
+}
+```