mcp

Add MCP server

Add an MCP server at runtime or replace an existing one, connecting it immediately.

put/api/experimental/mcp/{server}

Request

  • Base URL
    https://opencode.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://opencode.ai/api/experimental/mcp/{server}
  • Auth
    none required

Path parameters

serverstring required

Query parameters

directorystring nullable

Request body

Response

<No Content>

Changes

No operation changes recorded.