# Swagger MCP - TODO List
## Current Tasks
- π¨ Add support for authentication in generated tool handlers
- π¨ Improve error handling in generated tool handlers
- π¨ Add support for file uploads and downloads
- π¨ Create a web UI for testing generated tool definitions
- π¨ Add support for generating complete MCP servers from Swagger definitions
- π¨ Implement proxy behavior in generated MCP servers to forward requests to the original REST API
- π¨ Integrate Zod for runtime input validation in generated handlers
- π¨ Add support for multiple transport modes: stdio, web (SSE), and StreamableHTTP
- π¨ Generate a complete Node.js project scaffold (tsconfig.json, package.json, entry point, .env.example, etc.) for each generated server (or add instructions to a prompt / cursor file)
- π¨ Implement auto-detection of base URL from OpenAPI spec if not explicitly provided
- π¨ Support configuration of all authentication types via environment variables
- π¨ Ensure all generated code is fully typed with TypeScript
## Completed Tasks
### 12/03/2025
- β
Remove obsolete `test-format-suffix-mock.ts` test that referenced non-existent functions
- β
Fix missing `getCachedSwaggerFilePath` helper function in `swaggerLoader.ts` (broken after accepting Copilot PR suggestions)
### 03/09/2025
- β
Add MCP prompt for guiding AI assistants through adding new endpoints
- β
Add MCP prompts for guiding AI assistants through common workflows
- β
Fix model code test failure - "Model 'Project' not found in Swagger definition"
- β
Fix error handling test for invalid HTTP method - updated error message and used valid endpoint path
- β
Remove improved-generate-endpoint-tool-code.ts and update tests to use the real generator
- β
Fix endpoint path issues in projects-api-v3.oas2.yml for authentication and file operations tests:
- β
Fix OpenAPI version compatibility tests - updated to check for 'inputSchema' instead of 'parameters'
- β
Fix schema validation tests - updated endpoints to use ones that exist in the Swagger definition
- β
Fix schema validation failures - updated to check for 'inputSchema' instead of 'parameters'
- β
Create examples for different Swagger API types (OpenAPI 2.0, 3.0, etc.)
- β
Add unit tests for the improved generator
- β
Add validation for complex endpoint structures like Create Task
- β
Implement validation for generated tool definitions against MCP schema
- β
Fix the generateEndpointToolCode method to properly handle json.Unmarshaler interfaces in OpenAPI definitions
### 03/08/2025
- β
Implement improved MCP tool code generator with full schema information
- β
Add support for YAML Swagger files
- β
Improve parameter naming to avoid problematic characters
- β
Generate more semantic tool names
- β
Include comprehensive documentation in generated tool definitions
- β
Make generated code self-contained without external dependencies
- β
Update README.md with documentation for the improved generator
- β
Add AI-specific instructions in tool descriptions