Skip to content

[Bug]: MCP tools hide the errors the CLI reports #582

Closed

Description

@jimhoyd

Runtime revision and environment

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

  1. added
    bug
    ai-first
    on Sep 23, 2026
  2. added a commit that references this issue on Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-firstbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions