POST
/
v2
/
agent
/
{agentId}
/
mcp
/
add
cURL
curl --request POST \
  --url https://api.gptmaker.ai/v2/agent/{agentId}/mcp/add \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Local MCP",
  "description": "Integração MCP sem OAuth",
  "mcpUrl": "https://observability.mcp.cloudflare.com/sse",
  "urlType": "SSE",
  "authType": "NO_OAUTH",
  "headers": {}
}'
{
  "connected": true,
  "success": true,
  "id": "<string>",
  "url": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

mcpId
string
required

ID do MCP

Body

application/json

Dados para criação de uma integração MCP

The body is of type object.

Response

200
application/json

Integração criada com sucesso

The response is of type object.