claude-code - 💡(How to fix) Fix MCP servers with large tool schemas silently fail to register tools [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#51836Fetched 2026-04-23 07:43:39
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Error Message

MCP servers that pass the health check (claude mcp list shows "Connected") but their tools never appear in sessions. No error, no warning — completely silent failure. All MCP server tools should register regardless of schema size. At minimum, a warning or error should be logged when tools fail to register so users can diagnose the issue.

Root Cause

Total tool schema payload size. There appears to be an undocumented size threshold above which tool registration silently fails.

Fix Action

Workaround

Using direct curl API calls instead of MCP for the affected services.

Code Example

claude mcp add calcom -- npx -y @calcom/cal-mcp
   claude mcp add notion -- npx -y @notionhq/notion-mcp-server

---

claude mcp list

---

claude -p "list all MCP tools"
RAW_BUFFERClick to expand / collapse

Environment

  • Claude Code version: 2.1.116
  • OS: Ubuntu 24.04, headless VPS, running as non-root user via su - aios

Problem

MCP servers that pass the health check (claude mcp list shows "Connected") but their tools never appear in sessions. No error, no warning — completely silent failure.

Details

Working servers register tools fine:

  • n8n: 1,396 chars total tool schema — works
  • Asana: 4,907 chars total tool schema — works

Broken servers connect but tools never register:

  • Cal.com (@calcom/cal-mcp): 53,044 chars across 9 tools — connects, tools missing
  • Notion (@notionhq/notion-mcp-server): 73,396 chars across 22 tools — connects, tools missing

All 4 servers return identical protocolVersion (2024-11-05), same initialize handshake, same tools/list response format. The only difference is schema size.

Notion also uses $defs/$ref in its tool schemas, which may compound the issue.

Root Cause

Total tool schema payload size. There appears to be an undocumented size threshold above which tool registration silently fails.

Reproduction

  1. Add both servers:
    claude mcp add calcom -- npx -y @calcom/cal-mcp
    claude mcp add notion -- npx -y @notionhq/notion-mcp-server
  2. Verify connection:
    claude mcp list
    Both show Connected.
  3. Check available tools:
    claude -p "list all MCP tools"
    Cal.com and Notion tools are missing from the tool list.

Expected Behavior

All MCP server tools should register regardless of schema size. At minimum, a warning or error should be logged when tools fail to register so users can diagnose the issue.

Workaround

Using direct curl API calls instead of MCP for the affected services.

extent analysis

TL;DR

The issue can be mitigated by implementing a workaround using direct curl API calls for the affected services, as the total tool schema payload size appears to be causing a silent failure in tool registration.

Guidance

  • Investigate the Claude Code version 2.1.116 to see if there are any known issues or limitations related to tool schema size.
  • Verify that the issue is indeed caused by the schema size by testing with a smaller schema for the Cal.com and Notion servers.
  • Consider reaching out to the developers of the affected services (Cal.com and Notion) to see if they have any recommendations or workarounds for this issue.
  • Use the provided workaround of using direct curl API calls for the affected services as a temporary solution.

Example

No code example is provided as the issue is more related to the configuration and setup of the MCP servers rather than a specific code snippet.

Notes

The root cause of the issue appears to be the total tool schema payload size, but it is unclear what the exact threshold is or how to increase it. The workaround provided may not be a long-term solution and may require additional maintenance and upkeep.

Recommendation

Apply workaround: Using direct curl API calls for the affected services is the recommended solution at this time, as it allows for continued functionality while the underlying issue is investigated and resolved.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING