Generate OpenAPI/Swagger spec
generate_openapiGenerate an OpenAPI 3.0 specification from discovered endpoints in a project. Reuses existing spec if available, and writes the result to the .api-mcp directory.
Instructions
Builds an OpenAPI 3.0 spec from discovered endpoints. If an existing spec is found and useExisting is true, it is loaded instead of regenerated. Writes the spec into the project's .api-mcp directory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Project root path. | |
| title | No | API title for the spec info block. | |
| format | No | Output format for the spec file. | json |
| baseUrl | No | Server URL recorded in the spec's servers list. | |
| useExisting | No | Reuse an existing spec in the project if one is found. |