opencode_mcp_add
Add an MCP server dynamically to OpenCode, optionally scoping it to a project directory, to extend OpenCode with new MCP capabilities without manual configuration.
Instructions
Add an MCP server dynamically to opencode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| config | Yes | ||
| directory | No | Project directory to target. Optional; defaults to the server default project. |