Skip to main content
POST
/
ai
/
mcpClients
/
connect
Connect MCP client
curl --request POST \
  --url https://api.getcargo.io/v1/ai/mcpClients/connect \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "mcpClient": {
    "name": "<string>",
    "url": "<string>",
    "authentication": {
      "issuedAt": "<string>",
      "accessToken": "<string>",
      "expiresIn": 123,
      "refreshToken": "<string>",
      "scope": "<string>",
      "tokenType": "<string>",
      "clientId": "<string>"
    },
    "disabledToolSlugs": [
      "<string>"
    ]
  }
}
'
{
  "outcome": "<string>",
  "tools": [
    {
      "slug": "<string>",
      "config": {
        "jsonSchema": "<unknown>"
      },
      "description": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request body schema.

mcpClient
MCP client · object
required

MCP client connection details.

Response

Successful response

outcome
string
required

Connection outcome.

Allowed value: "connected"
tools
Tools · object[]
required

Available tools from the MCP server.