[Bug] MCP tools invoked as Bash commands instead of proper tool calls
Bug Description
Context7 works fine from here. The issue you saw was a bug in the other session where Claude incorrectly tried to run mcp__context7__resolve-library-id as a Bash command instead of using the MCP tool properly.
Summary of what went wrong in that session:
- Permission prompt appeared (shouldn't have - it's in your allow list)
- Claude tried to run MCP tool as Bash command: Bash(mcp__context7__resolve-library-id --libraryName "...")
- Obviously failed with "command not found"
- Then Claude gave up saying "Context7 isn't available"
This is a Claude Code bug - MCP tools should never be called via Bash.
Your current setup should be correct - Context7 is working in this session. If you keep seeing permission prompts in other projects, you may want to add to your project-level .claude/settings.json:
{
"permissions": {
"allow": [
"mcp__context7"
]
}
}
The mcp__context7 (without tool suffix) should auto-approve all tools from that server.
Was there something specific you wanted to do with Context7/ky, or were you just reporting this bug?
Environment Info
- Platform: darwin
- Terminal: ghostty
- Version: 2.0.69
- Feedback ID: fa8f3bd3-0211-4c09-b6be-f86ba4282070
Errors
[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/walid/.local/share/claude/versions/2.0.69 (expected in multi-process scenarios)\n at j8R (/$bunfs/root/claude:2242:2155)\n at H_A (/$bunfs/root/claude:2242:1875)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-15T12:06:43.458Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/walid/.local/share/claude/versions/2.0.70 (expected in multi-process scenarios)\n at j8R (/$bunfs/root/claude:2242:2155)\n at quB (/$bunfs/root/claude:2240:8638)\n at async xt1 (/$bunfs/root/claude:2240:11353)\n at async Ux (/$bunfs/root/claude:2242:236)\n at async <anonymous> (/$bunfs/root/claude:2242:14337)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-16T10:47:19.985Z"},{"error":"Error: Web search error: unavailable\n at G7D (/$bunfs/root/claude:2634:2427)\n at call (/$bunfs/root/claude:2634:6469)\n at async Ei1 (unknown)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-16T10:47:59.657Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/walid/.local/share/claude/versions/2.0.70 (expected in multi-process scenarios)\n at j8R (/$bunfs/root/claude:2242:2155)\n at quB (/$bunfs/root/claude:2240:8638)\n at async xt1 (/$bunfs/root/claude:2240:11353)\n at async Ux (/$bunfs/root/claude:2242:236)\n at async <anonymous> (/$bunfs/root/claude:2242:14337)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-16T10:48:54.214Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗