CLI: an unsupported --method plus a method-specific flag reports the flag error, not "Unsupported method"
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 67/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- typescript
- 領域
- cli
研究方向
Issue 指出單次執行 CLI 的方法驗證與各方法的 flag 檢查,但沒有提到檔案或測試。先追蹤 --method 支援在哪裡檢查,以及 --uri 和 --event-name 等 flag 在哪裡驗證;接著找出相關的 CLI 測試。當不支援的方法會先被回報為不支援,再出現方法專屬 flag 錯誤,且現有的結束行為得以保留時,工作即告完成。
由索引模型根據 Issue 內容生成。
描述
Found during the v2.18.0 release smoke (#3127), driving #3073 / PR #3081.
Problem
PR #3081 says events/stream and resources/subscribe, which the one-shot CLI does not support, "are rejected as unsupported first". That holds only when no method-specific flag is passed. Given one, the flag's error wins, and it reads as if the method existed:
$ mcp-inspector --cli node srv.mjs --method resources/subscribe --uri file:///x
--uri applies only to --method resources/read, --method resources/directory/read or --method skills/get; it has no effect with --method resources/subscribe.
$ mcp-inspector --cli … --method events/stream --event-name x
--event-name applies only to --method events/poll; it has no effect with --method events/stream.
Without the flag, the CLI correctly prints Unsupported method: resources/subscribe. Supported --cli methods: …. Every case exits 1, so scripts are unaffected; only the message misleads.
Expected
An unsupported --method is reported as unsupported before the per-method flag checks run.
- 主要語言
- TypeScript
- 星號
- 11.4k
- 分支
- 1.6k
- 平均合併
- 2 小時 27 分鐘
- 30 天內合併 PR
- 121
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
modelcontextprotocol/inspector 的其他 Issue
-
documentation v2
難度 2/5 1-3 小時 新手友好度 78/100
modelcontextprotocol/inspector#3139 · 1 則留言 ·
維護者通常 1 天內回覆
-
bug v2
難度 2/5 1-3 小時 新手友好度 76/100
modelcontextprotocol/inspector#3136 · 1 則留言 ·
維護者通常 1 天內回覆
-
bug v2
難度 1/5 1 小時以內 新手友好度 86/100
modelcontextprotocol/inspector#3132 · 1 則留言 ·
維護者通常 1 天內回覆
-
bug v2
難度 2/5 1-3 小時 新手友好度 80/100
modelcontextprotocol/inspector#3131 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 73/100
modelcontextprotocol/inspector#3111 ·
維護者通常 1 天內回覆
查看 modelcontextprotocol/inspector 的全部 Issue
相似的 Issue
-
bug data-types
難度 2/5 1-3 小時 新手友好度 88/100
ClickHouse/clickhouse-js#1293 ·
維護者通常 1 天內回覆
-
area: middleware enhancement good first issue
難度 2/5 1-3 小時 新手友好度 68/100
-
agent/quality testing
難度 1/5 1 小時以內 新手友好度 95/100
維護者通常 1 天內回覆
-
GitHub registry install via `gh` credentials rewrites `\u0000`–`\u001f` escapes in source files to `^@`–`^_`可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 92/100
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
juspay/agent-distro#203 ·
維護者通常 1 天內回覆