OpenAPI-to-MCP generator updated to group endpoints and preserve custom code
The generator now groups API operations and uses markers to keep custom code when regenerating MCP servers.
57 min agoSource: dev.to
A developer has released a command-line generator that transforms OpenAPI specifications into MCP servers for TypeScript, Python and Go. The first release assigned a distinct tool to each endpoint, which produced an impractically large server for APIs with many operations. Feedback from a Reddit discussion pointed out this issue and led to a redesign.
Version 2.1.5 adds the ability to group operations by tag or path, turning dozens of endpoints into a small set of tools that dispatch internally via an action field. The CLI also supports filters for tags, paths and specific operations, and it wraps custom code in special markers so a three-way merge keeps edits intact during regeneration.
Key points
Creates MCP servers for TypeScript, Python and Go
Groups endpoints by tag or path, reducing tool count
Supports selective generation via tags, paths or operation lists
Preserves custom code with marker-based three-way merge
This item is an original summary written from the source above. It is drafted
with AI assistance and published automatically under our
editorial policy. Facts belong to the original publisher;
if something here is wrong, tell us and we will fix or remove it.