test-case: :mcp tools and :mcp tool <alias.name> #29
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?
Steps
With boltzmann MCP connected (per prior test case):
:mcp tools:mcp tool boltzmann.list_dir:mcp tool boltzmann.no_such_tool(should error gracefully):mcp tool list_dir(no alias prefix — should error)Expected
:mcp toolsprints a flat list across all connected servers, indented::mcp tool boltzmann.list_dirprints the name, description, and the inputSchema as indented JSON.:mcp tool boltzmann.no_such_tool→[aish] unknown tool: boltzmann.no_such_tool.:mcp tool list_dir→[aish] unknown alias: list_dir(no dot in name → no alias parsed).What this exercises
tools/listlookupLikely failure modes
[]instead of{}→ dkjson empty-table-as-array issue (annoying but not load-bearing)unknown alias: list_dirdoesn't fire → the^([^.]+)%.(.+)$pattern silently matched something it shouldn'tPASS (executed 2026-05-12, fix folded in commit
3fa6279).:mcp toolsand:mcp tool boltzmann.list_dirrendered the expected list + inputSchema. Two error-path checks::mcp tool boltzmann.no_such_tool→[aish] unknown tool: boltzmann.no_such_tool✓:mcp tool list_dir(no dot) → originally printedunknown alias: nil(the expected text in the test case saidunknown alias: list_dir). Surfaced as a regression; fixed in3fa6279: now printstool name missing alias prefix: list_dir, which is more informative than the test's expected and unambiguous.Closing.