curl --request POST \
--url https://agent-studio.thena.ai/api/v1/mcp/agents/{agent_id}/servers/{server_id}/connect \
--header 'x-api-key: <api-key>'{
"status": "success",
"message": "Connection successful",
"authorization_url": "<string>"
}Smart MCP server connection with automatic authentication detection.
This endpoint automatically detects if the MCP server requires OAuth authentication or can be connected to directly (public servers).
curl --request POST \
--url https://agent-studio.thena.ai/api/v1/mcp/agents/{agent_id}/servers/{server_id}/connect \
--header 'x-api-key: <api-key>'{
"status": "success",
"message": "Connection successful",
"authorization_url": "<string>"
}Successful Response
Response model for MCP server connection with smart authentication detection.