Tech
I turned a real OpenAPI into an MCP server in 5 min (without losing custom code on regen)
I built an OpenAPI to MCP server generator for TypeScript, Python and Go.
The v1 mistake: 1 endpoint = 1 tool. On a real API with 200 operations, you get a 200-tool server. Nobody can use that. That was the exact feedback I got on Reddit, and it was right.
What I changed in 2.1.5:
1. Grouping by tag or path
200 operations across 8 tags become ~8 tools. Each group routes internally by action .
node dist/cli/index.js generate -i api.yaml -o ./out --group-by tag
node dist...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to