Skip to main content
POST
/
api
/
v1
/
mcp
/
agents
/
{agent_id}
/
servers
/
{server_id}
/
connect
Connect Mcp Server
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>"
}

Authorizations

x-api-key
string
header
required

Path Parameters

agent_id
string
required
server_id
string<uuid>
required

Response

Successful Response

Response model for MCP server connection with smart authentication detection.

status
string
default:success

Status of the connection attempt

message
string
default:Connection successful

Human-readable message about the connection

authorization_url
string | null

The authorization URL to redirect the user to (for OAuth servers)

I