MCP servers silently fail to load in Claude Code sessions #155
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/claude-custom#155
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Bug
Lineage
Standalone -- discovered during operations 2026-03-13
Repo
forgejo_admin/claude-customWhat Broke
Claude Code silently drops MCP servers that fail to initialize during session startup. No error is surfaced to the user or agent. In a 2026-03-13 session on
pal-e-platform, bothpal-e-docsandforgejoMCP servers were absent from the tool registry, whilenotionandwoodpeckerloaded fine. All four servers are defined in~/.mcp.json, all import and start correctly when tested manually. Session restart fixed it.Repro Steps
~/.mcp.jsonNot reliably reproducible -- appears to be a transient timeout during MCP initialization.
Expected Behavior
All configured MCP servers should load, or a clear error/warning should be shown if one fails to initialize. A SessionStart hook should verify expected servers loaded and warn if any are missing.
Environment
sop-mcp-server-recoverycovers the recovery procedureforgejo_admin/claude-custom#76Acceptance Criteria
Related
pal-e-agency-- parent projectsop-mcp-server-recovery-- recovery SOPforgejo_admin/claude-custom#76-- related issueScope Review: NEEDS_REFINEMENT
Review note:
review-342-2026-03-27This ticket is a duplicate of the already-closed #76. The
check-mcp-servers.shSessionStart hook already exists (185 lines), is wired insettings.json, and warns when MCP servers fail to load.Issues found:
sop-mcp-server-recoveryhas stale text saying the hook is "planned but not yet implemented" — needs a 1-line doc updateRecommendation: Close as duplicate of #76, or repurpose narrowly to just the stale SOP doc update (single file, <5 min).
Closing — Duplicate
Scope review (
review-342-2026-03-27) found this work was already done:hooks/check-mcp-servers.shexists (185 lines, merged via PR #88)settings.jsonline 40 has it wired into SessionStartsop-mcp-server-recoverydocuments the recovery procedureDuplicate of closed #76. The only remaining gap is a stale line in the SOP — tracked separately.