LearnNewsExamplesServices
Frontmatter
id7498
titleFix Gemini CLI Client Compatibility for MCP `tools/list` Response
stateClosed
labels
bugai
assigneestobiu
createdAtOct 15, 2025, 3:41 PM
updatedAtOct 15, 2025, 3:42 PM
githubUrlhttps://github.com/neomjs/neo/issues/7498
authortobiu
commentsCount0
parentIssue7477
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 15, 2025, 3:42 PM

Fix Gemini CLI Client Compatibility for MCP tools/list Response

Closed v11.0.0 bugai
tobiu
tobiu commented on Oct 15, 2025, 3:41 PM

The Gemini CLI client was unable to correctly parse the tools/list response from the neo-github-workflow MCP server due to strict validation rules and issues with npm run output. This ticket addresses these compatibility issues by adjusting the server's response format and startup command.

Acceptance Criteria

  1. The command and args for neo-github-workflow in .gemini/settings.json are updated to directly invoke node ai/mcp/server/github-workflow/mcp-stdio.mjs, eliminating extraneous npm run output.
  2. toolService.mjs is modified to ensure that outputSchema is always a valid JSON Schema object, even for primitive types or when no schema is explicitly defined, by wrapping primitive types in an object schema and returning an empty object schema for undefined outputs.
  3. toolService.mjs is modified to omit the nextCursor field entirely from the listTools response when its value is null.
  4. mcp-stdio.mjs is modified to conditionally include nextCursor in the tools/list response only if it is not undefined.
  5. The Gemini CLI client successfully lists all tools from the neo-github-workflow server without errors.
tobiu assigned to @tobiu on Oct 15, 2025, 3:41 PM
tobiu added parent issue #7477 on Oct 15, 2025, 3:41 PM
tobiu added the bug label on Oct 15, 2025, 3:41 PM
tobiu added the ai label on Oct 15, 2025, 3:41 PM
tobiu referenced in commit 933919f - "Fix Gemini CLI Client Compatibility for MCP tools/list Response #7498" on Oct 15, 2025, 3:42 PM
tobiu closed this issue on Oct 15, 2025, 3:42 PM
tobiu cross-referenced by #7652 on Oct 25, 2025, 7:52 PM