Frontmatter
| id | 7601 |
| title | Create Dynamic OpenAPI Specification Generator for the MCP servers |
| state | Closed |
| labels | enhancementstaleai |
| assignees | [] |
| createdAt | Oct 22, 2025, 11:36 AM |
| updatedAt | Feb 5, 2026, 4:42 AM |
| githubUrl | https://github.com/neomjs/neo/issues/7601 |
| author | tobiu |
| commentsCount | 4 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Feb 5, 2026, 4:42 AM |
Create Dynamic OpenAPI Specification Generator for the MCP servers

Hey, Would love to work on this!

@SarthakJain29 Hi! Sorry, I did not flag this item as "low prio backlog". I would strongly recommend to pick a different one: not much to learn here (e.g. just wrapping yaml files into template literals and parsing the config vars), but the bigger problem is: the mcp server APIs are not stable yet => we will add more endpoints, fetch more fields etc., so it would just be a maintenance burden with frequent rewrites.
Feel free to ping me inside the slack / discord general channels => there are huge areas with higher impacts / more to learn / more fun to work on.
@github-actions - 2026-01-22T03:17:20Z
This issue is stale because it has been open for 90 days with no activity.
- 2026-01-22T03:17:21Z @github-actions added the
stalelabel
@github-actions - 2026-02-05T03:42:32Z
This issue was closed because it has been inactive for 14 days since being marked as stale.
- 2026-02-05T03:42:33Z @github-actions closed this issue
Currently, our
openapi.yamlfiles contain hardcoded values for defaults and constraints (e.g.,default: 30,maximum: 100). While this provides valuable context to AI agents via thetoolService, it has a significant drawback: the specification can become out of sync with the application's actual configuration.If a user changes a default value in a
config.mjsfile, the agent, whose tools are derived from the static YAML file, will remain unaware of the new default. This creates a divergence between the documented behavior and the actual behavior.The ideal solution is to make the OpenAPI specification itself dynamic. This ticket proposes creating a build script or server startup process that:
openapi.yamltemplate..mjsconfiguration files for each MCP server.openapi.jsonoropenapi.yamlfile that is then used by thetoolServiceand served to clients.This will ensure that the tool definitions provided to AI agents are always a perfect reflection of the server's current configuration.
Acceptance Criteria
ai/mcp/server/) to handle the generation of the OpenAPI specification.