Create MCP
Create an MCP. Set origin to "catalog" with a catalog_slug, or "custom" with full config.
Create an MCP. Set origin to "catalog" with a catalog_slug, or "custom" with full config.
ApiKeyAuthAuthorizationBearer <token>Bearer token authentication. Send an API key (a saai_api_-prefixed token) as Authorization: Bearer <token>.
Required permission
manage_mcpsapplication/json- body
An MCP (Model Context Protocol) server configuration.
origin*stringHow this resource was added to the gateway.
"catalog""custom"config*|connection_lifetime?Connection lifetime bounds for this resource. Only meaningful where users connect their own accounts. Replaced wholesale on update: sending this object with a bound omitted clears that bound rather than leaving it untouched.
The request has succeeded and a new resource has been created as a result.
application/json- response
An MCP (Model Context Protocol) server configuration.
id*stringuuidslug*stringUnique slug identifying this resource — the catalog slug for catalog-origin resources, the custom slug otherwise.
1 <= length <= 63origin*stringHow this resource was added to the gateway.
"catalog""custom"kind?stringWhere a resource comes from.
"builtin""external"display_name?stringName shown for this resource. For catalog resources it comes from the catalog entry.
server_url?stringThe upstream server's URL. For catalog resources it comes from the catalog entry.
urigateway_url?stringPer-org gateway URL agents use to reach just this resource.
uriavailable_tools?array<>Tools this resource exposes to agents.
config*|connection_lifetime?Connection lifetime bounds for this resource. Only meaningful where users connect their own accounts. Replaced wholesale on update: sending this object with a bound omitted clears that bound rather than leaving it untouched.
created_at*stringdate-timeupdated_at*stringdate-timecurl -X POST "https://example.com/mcps" \ -H "Content-Type: application/json" \ -d '{ "origin": "catalog", "config": { "catalog_slug": "string" } }'{ "id": null, "slug": "string", "origin": "catalog", "kind": "builtin", "display_name": "string", "server_url": "http://example.com", "gateway_url": "http://example.com", "available_tools": [ { "name": "string", "description": "string", "input_schema": { "property1": null, "property2": null }, "upstream_id": "string", "upstream_name": "string" } ], "config": { "catalog_slug": "string", "mode": "embedded", "byo_client_id": "string", "token_endpoint_auth_method": "client_secret_basic" }, "connection_lifetime": { "max_age_seconds": 1, "idle_timeout_seconds": 1 }, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}