fix: mcp show (missing server name) emits missing_argument error_kind (#830)#3204
Open
code-yeongyu wants to merge 1 commit into
Open
fix: mcp show (missing server name) emits missing_argument error_kind (#830)#3204code-yeongyu wants to merge 1 commit into
code-yeongyu wants to merge 1 commit into
Conversation
…#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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes ROADMAP #830.
Before:
claw --output-format json mcp show→error_kind:"unknown_mcp_action"(wrong — show IS known, arg is missing)After:
claw --output-format json mcp show→error_kind:"missing_argument"with usage hintNote:
claw mcp bogusstill correctly emitsunknown_mcp_action— only theshow-with-no-arg path changed.Tests: 1 new test. 572+ pass.