[Diagnostic] MCP tools fail with stale cache path after cache clear #144
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-24T17:50:00Z
Command Tested: /doc-guardian:doc-audit followed by cache clear
Reporter: Claude Code via /debug-report
Project Context
personal-projects/leo-claude-mktplacessh://git@hotserv.tailc9b278.ts.net:2222/personal-projects/leo-claude-mktplace.git/home/lmiranda/claude-plugins-workdevelopmentDiagnostic Results
Test 1: validate_repo_org
Call:
validate_repo_org(repo="personal-projects/leo-claude-mktplace")Status: PASS
Response:
Test 2: get_labels
Call:
get_labels(repo="personal-projects/leo-claude-mktplace")Status: FAIL
Response:
Test 3: list_issues
Call:
list_issues(repo="personal-projects/leo-claude-mktplace", state="open")Status: FAIL
Response:
Test 4: list_milestones
Call:
list_milestones(repo="personal-projects/leo-claude-mktplace")Status: FAIL
Response:
Test 5: suggest_labels
Call:
suggest_labels(repo="personal-projects/leo-claude-mktplace", context="Test bug fix for authentication")Status: PASS
Response:
Summary
Failed Tools
get_labels: TLS cert bundle not found at cache pathlist_issues: TLS cert bundle not found at cache pathlist_milestones: TLS cert bundle not found at cache pathError Category
Hypothesis
Root Cause: MCP tools were loaded into Claude Code's session from the plugin cache before the cache was cleared. The tool definitions include hardcoded paths to the venv inside the cache directory.
Why some tools work:
validate_repo_organdsuggest_labelsmay use different code paths that don't require the certifi bundle (e.g., local-only operations or different HTTP client configuration).Why this is a problem: Clearing the cache is a documented troubleshooting step (
rm -rf ~/.claude/plugins/cache/leo-claude-mktplace/), but doing so mid-session breaks MCP tools that were already loaded.Suggested Investigation
Reproduction Steps
/home/lmiranda/claude-plugins-workrm -rf ~/.claude/plugins/cache/leo-claude-mktplace/Workaround
Restart Claude Code session after clearing cache to reload tool definitions from the installed marketplace path.
Generated by /debug-report - Labels: Type: Bug, Source: Diagnostic, Agent: Claude, Component: MCP