Edit an MCP server (AI manager only)
PUT/api/ai/mcp-servers/:mcpConnection
Partial update. Send secret to replace it, clear_secret: true to remove it; omit both to keep it.
A new address is asked for its tools at once; approvals stay but bind only tools that still match. Throttled.
Request
Responses
- 200
- 401
- 403
- 404
- 422
The updated server.
Not authenticated. code: account_disabled means the member's seat was deactivated in this workspace: the session is over even though the token was not revoked (clients sign out and clean up).
Authenticated but not allowed.
Resource not found (or not visible to the current tenant).
The request failed validation.