POST
/
api
/
v1
/
mcp
/
agents
/
{agent_id}
/
servers
Create Mcp Server
curl --request POST \
  --url https://agent-studio.thena.ai/api/v1/mcp/agents/{agent_id}/servers \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "auth_config": {
    "client_id": "your_client_id",
    "type": "oauth2"
  },
  "health_check_url": "https://api.salesforce.com/mcp/health",
  "name": "Salesforce MCP",
  "url": "https://api.salesforce.com/mcp"
}'
{
  "agent_id": "123e4567-e89b-12d3-a456-426614174001",
  "auth_config": {
    "client_id": "our_dynamically_registered_client_id",
    "type": "oauth2"
  },
  "created_at": "2023-01-01T00:00:00Z",
  "health_check_url": "https://api.salesforce.com/mcp/health",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "last_health_check": "2023-01-01T00:00:00Z",
  "name": "Salesforce MCP",
  "status": "connected",
  "updated_at": "2023-01-01T00:00:00Z",
  "url": "https://api.salesforce.com/mcp"
}

Authorizations

x-api-key
string
header
required

Path Parameters

agent_id
string
required

Body

application/json

Model for creating an MCP server configuration.

Response

200
application/json

Successful Response

Model for an MCP server configuration.