Add SessionStart hook to detect missing MCP servers #76
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#76
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?
Lineage
bug-mcp-silent-load-failure(no plan ancestry — bug fix / operational improvement)Repo
forgejo_admin/claude-customUser Story
As Betty Sue (main session agent)
I want to be warned at session start if any configured MCP server failed to load
So that I don't discover missing tools mid-session after wasting context
Context
Claude Code silently drops MCP servers that fail to initialize during session startup. In a 2026-03-13 session, both
pal-e-docsandforgejoMCP servers were absent — the two most critical tools — whilenotionandwoodpeckerloaded fine. No error was surfaced. The only way to discover this was trying to use the tools and getting empty results fromToolSearch.The root cause is unknown (likely transient timeout during
uv runstartup with private PyPI index resolution). The fix is observability: detect and warn.File Targets
Files to create:
hooks/check-mcp-servers.sh— SessionStart hook that checks expected MCP servers are loadedFiles to modify:
settings.json— add the new hook to theSessionStarthooks arrayAcceptance Criteria
permissionDecision: allowor outputs warning only)Test Expectations
Constraints
session-start-context.sh,check-claude-custom-clean.sh) for the patternpgreporps)Checklist
Related
ai-agency— projectbug-mcp-silent-load-failure— investigation note