Skip to main content
POST
/
api
/
svc
/
v1
/
mcp-servers
/
openapi
/
generate-mcp-tools
Generate MCP tools from an OpenAPI specification
curl --request POST \
  --url https://{controlPlaneURL}/api/svc/v1/mcp-servers/openapi/generate-mcp-tools \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "openapi_spec": {}
}
'
{
  "tools": [
    {}
  ],
  "openapi_spec_url": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
openapi_spec
required

The OpenAPI specification as a JSON object or URL string

Response

MCP tools generated successfully from the OpenAPI specification

tools
object[]
required

List of MCP tools generated from the OpenAPI specification

openapi_spec_url
string
required

URL of the OpenAPI specification (original URL if provided or S3 URL if spec is stored in S3)