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>"
}
]
}Connect to an 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>"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request body schema.
MCP client connection details.
Show child attributes
Was this page helpful?