-
Notifications
You must be signed in to change notification settings - Fork 10k
Open
Description
Bug
server-gitlab shows as "Connected" in Claude Code (claude mcp list) but no tools are registered. The tools/list MCP response returns tools with empty inputSchema: {} objects, which causes Claude Code to silently skip them.
Root cause
The npm package has a zod version conflict:
@modelcontextprotocol/sdk@1.0.1depends onzod@3.x-
zod-to-json-schema@3.25.1resolveszod@4.xat the root
The server's schemas inschemas.jsare created with whateverzodversion resolves at the root (v4). Butzod-to-json-schema@3.xexpects zod v3 schemas. The result:zodToJsonSchema()returns{}for every tool'sinputSchema.
To reproduce
npx -y @modelcontextprotocol/server-gitlab
# Server starts, claude mcp list shows "Connected"
# But no tools appear in Claude CodeVerify the conflict:
cd ~/.npm/_npx/<cache-dir>
npm ls zod
# Shows zod@3.x under @modelcontextprotocol/sdk
# Shows zod@4.x under zod-to-json-schema (or at root)Workaround
Downgrade the root zod in the npx cache:
cd ~/.npm/_npx/<cache-dir>/node_modules/@modelcontextprotocol/server-gitlab/../../..
npm install zod@3.25.76After this, restart Claude Code and tools appear correctly.
Suggested fix
Pin zod to ^3.x in server-gitlab's package.json dependencies (or update zod-to-json-schema to a version compatible with zod v4).
Related
- connected了,但是没有view-tools #3649 reports the same symptom (connected but no tools)
Environment
@modelcontextprotocol/server-gitlab@2025.4.25-
@modelcontextprotocol/sdk@1.0.1
-
-
zod@4.3.6(root) vszod@3.25.76(sdk)
-
-
-
-
- macOS, Claude Code via Desktop app
-
-
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels