Generate MCP server
generate_mcp_serverGenerate a complete, runnable MCP server project from OpenAPI or Postman specs and write it to a chosen directory.
Instructions
Generate a complete, runnable TypeScript MCP server project from an OpenAPI or Postman spec. Writes the project to outputDir. Use force to overwrite a non-empty directory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auth | No | Auth to use when the spec declares no security schemes of its own. Applied only to operations whose own security list is empty; credentials are read from env vars as usual. | |
| spec | No | Inline spec text (OpenAPI or Postman; JSON or YAML). | |
| force | No | Overwrite a non-empty / existing project. | |
| format | No | Force a format; defaults to auto-detect. | |
| methods | No | Keep only these HTTP methods, e.g. [GET, POST]. | |
| language | No | Output language. Defaults to typescript. | |
| pathGlob | No | Keep only matching paths, e.g. "/v1/**". | |
| specPath | No | Path to a local spec file (JSON or YAML). | |
| outputDir | Yes | Directory to write the generated project into. | |
| transport | No | Transport(s) to generate (TypeScript only). Defaults to stdio. | |
| serverName | No | npm/package name; defaults from the API title. | |
| includeTags | No | Keep only operations with these tags. | |
| toolCatalog | No | Also write tool-catalog.json (name/summary/tags per tool) for discovery layers. | |
| pythonVariant | No | Python server flavor (requires language: python): the low-level MCP SDK (default) or FastMCP. Both serve the same raw JSON-Schema tool inputs. | |
| serverVersion | No | ||
| excludeOperations | No | Drop operations by operationId, tool name, or tag. |