MCP API

API endpoints for managing Model Context Protocol server configurations

Manage Model Context Protocol (MCP) server configurations.

Access: Secret Key Only (sk_live_*)


Create MCP Configuration

Creates a new MCP server configuration.

POST /mcp

Request Body:

{
  "name": "string",
  "type": "string",
  "config": {}
}

Response 200 OK:

{
  "id": "string",
  "name": "string",
  "type": "string",
  "teamId": "string",
  "createdAt": "2024-01-15T10:30:00Z"
}

List MCP Configurations

Retrieves all MCP configurations for the authenticated team.

GET /mcp

Query Parameters:

ParameterTypeDescription
typestringFilter by MCP type

Response 200 OK:

{
  "mcps": [
    {
      "id": "string",
      "name": "string",
      "type": "string",
      "createdAt": "2024-01-15T10:30:00Z"
    }
  ]
}

Get MCP Configuration by ID

Retrieves a specific MCP configuration.

GET /mcp/:id

Path Parameters:

ParameterTypeDescription
idstringThe MCP configuration ID

Response 200 OK:

{
  "id": "string",
  "name": "string",
  "type": "string",
  "config": {},
  "createdAt": "2024-01-15T10:30:00Z"
}

Update MCP Configuration

Updates an existing MCP configuration.

PUT /mcp/:id

Path Parameters:

ParameterTypeDescription
idstringThe MCP configuration ID

Request Body:

{
  "name": "string",
  "type": "string",
  "config": {}
}

Response 200 OK:

{
  "id": "string",
  "name": "string",
  "updatedAt": "2024-01-15T10:30:00Z"
}

Delete MCP Configuration

Deletes an MCP configuration.

DELETE /mcp/:id

Path Parameters:

ParameterTypeDescription
idstringThe MCP configuration ID

Response 204 No Content


List MCP Apps

Retrieves available MCP apps/templates.

GET /mcp-apps

Response 200 OK:

{
  "apps": [
    {
      "id": "string",
      "name": "string",
      "description": "string",
      "type": "string"
    }
  ]
}