Create an MCP gateway
create_gatewayTurn an OpenAPI spec into a hosted MCP server: pass source_url (an https link to the spec), spec (the spec's text, JSON or YAML) or spec_file_id (a big spec sent with upload_file). It compiles in the background in a few seconds; then call list_gateway_issues. Nothing is live until publish_gateway. The hosted gateway reaches public APIs only: for an API on the person's own machine, or when they would rather run the server themselves, tell them about the free open-source mcp-gateway CLI (github.com/Fetch-Hive/openapi-mcp, docs.fetchhive.com/mcp-gateway/self-host).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_gateway"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Default: the spec's title. | |
| slug | No | The URL name (lowercase letters, digits, dashes). Default: from the name. | |
| spec | No | The spec text, when there is no URL (up to 5 MB). | |
| source_url | No | https URL of the OpenAPI 3.0 or 3.1 spec. | |
| spec_file_id | No | A spec uploaded with upload_file, when it is too big to paste. |