Frontmatter
| id | 8201 |
| title | Fix `nextCursor: null` violation and OpenAPI Array Validation in MCP Servers |
| state | Closed |
| labels | bugai |
| assignees | tobiu |
| createdAt | Dec 29, 2025, 2:33 PM |
| updatedAt | Dec 29, 2025, 2:42 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8201 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 29, 2025, 2:42 PM |
The MCP SDK schema validation requires
nextCursorto bestring | undefined, butnullis being returned in thecatchblocks oflistToolshandlers across all MCP servers (Neural Link, Knowledge Base, GitHub Workflow, Memory Core) and in the default return ofToolService.mjs. This causes a "Invalid input: expected string, received null" error that masks the underlying exception when tool discovery fails.This task involves updating the logic in:
ai/mcp/ToolService.mjsai/mcp/server/neural-link/Server.mjsai/mcp/server/knowledge-base/Server.mjsai/mcp/server/github-workflow/Server.mjsai/mcp/server/memory-core/Server.mjsAdditionally,
ai/mcp/validation/OpenApiValidator.mjsneeds to be robust against OpenAPI array schemas that do not define anitemsproperty (defaulting toany[]).