You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: MCP tools hide the errors the CLI reports #582
main at 645239b; core 0.5.9 packed with npm pack and installed into scratch projects, run as llms.txt instructs (npx --no --package @jimhoyd/urlcode urlcode …); MCP driven over stdio. Node 26, macOS. Found in a hands-on usability audit (agent and human perspectives).
Minimal reproduction
tools/call validate on a project with two handlers on one route → {"isError":true,"text":"Operation failed validation; inspect locally for details."}; the CLI prints the real message.
get_capability {"name":"nope"} → the same generic text; the CLI lists valid names.
Wrong argument names (e.g. plan_feature {"text":…} instead of goal) → -32602 "Invalid tool or arguments", not naming the field.
get_extensions without a host file → the same -32602, yet plan_feature still lists get_extensions in next.
explain_error returns generic guidance unrelated to the error given.
Relevant output
Driven over stdio JSON-RPC against the packed 0.5.9 install.
Suggested fix
Return the CLI's message (the MCP server is read-only and local, so there is no disclosure reason to hide it); name unknown tools and bad/missing arguments; omit host-only tools from next when no host file is loaded; make explain_error match on the error text.
Activity
fix: reconcile #607's richer errors with #582's MCP path-disclosure g…