opencode_mcp_add
Add a new MCP server to opencode dynamically. Provide a name and configuration to register it for immediate use in coding workflows.
Instructions
Add an MCP server dynamically to opencode
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the MCP server | |
| config | Yes | MCP server configuration object | |
| directory | No | Absolute path to the project directory. When provided, the request targets that project. If omitted, the OpenCode server uses its own working directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| text | Yes | ||
| isError | Yes |