[Diagnostic] MCP tools not available despite connected server + /debug-report missing fallback #100
Reference in New Issue
Block a user
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?
Diagnostic Report
Generated: 2026-01-22
Command Tested: /debug-report (general diagnostic)
Reporter: Claude Code via /debug-report
Project Context
personal-projects/personal-portfoliossh://git@hotserv.tailc9b278.ts.net:2222/personal-projects/personal-portfolio.git/home/lmiranda/Repositories/personal/personal-portfoliodevelopmentDiagnostic Results
MCP Server Status
Command:
claude mcp listOutput:
Test Results
All 5 tests BLOCKED - MCP tools not available in session function list.
Summary
Error Category
Hypothesis
MCP server is running and reports "Connected" but tools are not being registered in the Claude Code session's available function list. Possible causes:
Suggested Investigation
mcp_server/server.py- tool registration logicSecondary Issue: /debug-report Missing Fallback
Problem: The
/debug-reportskill failed to create this issue automatically because it relies on MCP tools (mcp__plugin_projman_gitea__create_issue) which were the very tools being diagnosed as unavailable.Claude had access to:
~/.config/claude/gitea.envcurlcommand available in BashBut the skill instructions did not include a fallback to use curl + Gitea REST API when MCP tools are unavailable.
Suggested Fix: Update
/debug-reportskill to:~/.config/claude/gitea.envReproduction Steps
/home/lmiranda/Repositories/personal/personal-portfolio/debug-reportclaude mcp listshowing ConnectedLabels: Type: Bug, Source: Diagnostic, Agent: Claude
Investigation Complete
Primary Issue (MCP tools not available): This appears to be a Claude Code platform issue, not a code bug. The MCP server implementation is correct - the tools simply weren't exposed to that particular session. This is intermittent and not reproducible consistently.
Secondary Issue (Fixed): PR #103 adds a curl fallback to
/debug-reportso it can still create diagnostic issues when MCP tools are unavailable.Changes in PR #103:
mktemp -m 600jq --rawfileNext Steps:
/debug-reportin a new sessionInvestigated via
/debug-review