[Bug] - ToolSearch select: syntax fails to match MCP tools by short name
Resolved 💬 2 comments Opened Mar 31, 2026 by mukenshi Closed May 6, 2026
Bug
ToolSearch with select: syntax fails to find MCP tools when using short names. Only full prefixed names work.
Repro
# Fails — returns empty results
ToolSearch(query='select:get_handoff,get_orientation,query_conventions')
# Works — full MCP names
ToolSearch(query='select:mcp__agent-tools__get_handoff,mcp__agent-tools__get_orientation,mcp__agent-tools__query_conventions')
# Works — keyword fallback
ToolSearch(query='handoff orientation conventions')
Expected
select:get_handoff should match mcp__agent-tools__get_handoff via suffix matching, similar to how keyword search finds tools by partial name.
Impact
Adds ~5-10s latency per session when agents (or agent prompts) use select: with short names — the first call fails silently, then a keyword fallback is needed. This affects every onboarding/bootstrap sequence that loads deferred MCP tools.
Environment
- Claude Code CLI (latest)
- MCP server with
agent-toolsnamespace - Observed across multiple sessions on different machines
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗