Frontmatter
| id | 9837 |
| title | MCP Server: Support nested array schemas in OpenApiValidator |
| state | Open |
| labels | enhancementai |
| assignees | [] |
| createdAt | Apr 9, 2026, 10:33 PM |
| updatedAt | Apr 9, 2026, 10:33 PM |
| githubUrl | https://github.com/neomjs/neo/issues/9837 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
MCP Server: Support nested array schemas in OpenApiValidator
Openenhancementai
The
OpenApiValidator.mjswithin the MCP Server infrastructure currently forces all arrays defined inopenapi.yamlto be mapped toz.array(z.string()).While this handles simple arrays, it causes a
ZodErrorfor tools that require an array of objects (e.g.,simulateEvent, which expects an array of event objects like{ type: "click", targetId: "test" }).We need to enhance
buildZodSchemato introspect theitemsproperty of the array schema and properly map nested structures like objects toz.object()instead of defaulting all arrays to strings. This will support more robust complex payloads passed over the bridge via MCP tools.