Skip to content

fix: mcp show (missing server name) emits missing_argument error_kind (#830)#3204

Open
code-yeongyu wants to merge 1 commit into
mainfrom
fix/mcp-show-missing-arg-830
Open

fix: mcp show (missing server name) emits missing_argument error_kind (#830)#3204
code-yeongyu wants to merge 1 commit into
mainfrom
fix/mcp-show-missing-arg-830

Conversation

@code-yeongyu
Copy link
Copy Markdown
Collaborator

Fixes ROADMAP #830.

Before: claw --output-format json mcp showerror_kind:"unknown_mcp_action" (wrong — show IS known, arg is missing)
After: claw --output-format json mcp showerror_kind:"missing_argument" with usage hint

Note: claw mcp bogus still correctly emits unknown_mcp_action — only the show-with-no-arg path changed.

Tests: 1 new test. 572+ pass.

…#830)

`claw --output-format json mcp show` (no server name) previously emitted
error_kind:"unknown_mcp_action" — misleading because `show` IS a known
action; the problem is a missing required argument.

Fix:
- `render_mcp_report_json_for`: `Some("show")` arm now emits a dedicated
  JSON response with error_kind:"missing_argument" + usage hint
- `classify_error_kind`: add classifier arm for "missing_argument:" prefix

One new test: mcp_show_missing_server_name_emits_missing_argument

572+ tests pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant