Add an MCP server (AI manager only)
POST/api/ai/mcp-servers
Saves the server and asks it for its tools (tools/list) at once. A server that does not answer is still
saved, with the reason in last_error, so the address or token can be fixed and the list refreshed.
The address must be public https. No tool reaches the model until it is approved
(PUT /api/ai/mcp-servers/{mcpConnection}/tools). Throttled.
Request
Responses
- 201
- 401
- 403
- 422
The saved 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.
The request failed validation.