Connect an MCP server
Save a server. Attach it to agents with POST /v1/agents/{id}/mcp-servers.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
url
name
headers
e.g. {Authorization: Bearer …}
transport
auto, sse or streamable_http
allowed_tools
Only these of its tools; all when left out
Response
Successful Response
Errors
422
Unprocessable Entity Error
