mcp

Disconnect MCP server

Disconnect an MCP server at runtime, removing its tools until reconnected.

post/api/experimental/mcp/{server}/disconnect

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}/disconnect
  • Auth
    none required

Path parameters

serverstring required

Query parameters

directorystring nullable

Response

<No Content>

Changes

No operation changes recorded.