v1

latestOpenAPI 3.0.02026-07-26492143.5 KB
Agents

Detach an agent MCP server

Detach an MCP server (connector) from an agent. This is idempotent — detaching a server that isn't attached returns detached: false rather than an error.

delete/agents/{agent_id}/mcp-servers/{server_id}

Path parameters

agent_idstring required

ID of the agent.

server_idstring required

ID of the MCP server to detach.

Response

The detach result.

agent_idstring
server_idstring
detachedboolean

true if the server was attached and is now removed; false if it was not attached.

Example response

{
  "agent_id": "abc123DEFghiJKL",
  "server_id": "srv_github",
  "detached": true
}