Resolve Windows .cmd and .bat shims in the harness-config audit's server-command check
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
plugins/harness-config/skills/audit/scripts/audit-engine.sh の裸のコマンド分岐と、audit-engine.test.sh の関連チェックを読みます。#19808 は lib/prerequisites.mjs で先例として引用されています。Windows ホストと .cmd shim を偽装するテストを追加し、監査でそれに対して command-resolves が報告され、コマンドを解決するホストがない場合は引き続き command-missing:<server> が報告されることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Context
Item 1 of #20519, split out because #20933 closes #20519 with changes for items 2-5 (item 2 still had three open review regressions at filing) and none for this item. The harness-config audit's C/server-command check resolves a stdio MCP server's bare command with command -v "$cmd" (plugins/harness-config/skills/audit/scripts/audit-engine.sh, the bare-command branch). Git Bash does not resolve .cmd or .bat shims through command -v, so a server launched through a shim (for example dnx, which where.exe resolves to dnx.cmd) is reported command-missing though it starts.
Proposed work
- In the bare-command branch, on a Windows host (
$OSTYPEmsys or cygwin), also trycommand -v "$cmd.cmd","$cmd.bat"and"$cmd.exe"(orwhere.exe) before reportingcommand-missing. Precedent: #19808 madelib/prerequisites.mjsprobe the same way. - Keep the Linux and macOS paths unchanged.
Acceptance criteria
- On a Windows host, a stdio MCP server whose command resolves only as
<name>.cmdon PATH yieldscommand-resolves, covered by a test inaudit-engine.test.shthat fakes the shim and the host type. - A bare command that resolves on no host still yields
command-missing:<server>.
Refs: #20519, #20933
🤖 Generated with Claude Code
- 主要言語
- Shell
- スター
- 22
- フォーク
- 2
- 平均マージ
- 3時間 4分
- マージ済み PR(30日)
- 941
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
melodic-software/claude-code-plugins のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
melodic-software/claude-code-plugins#21021 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
melodic-software/claude-code-plugins#20969 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
melodic-software/claude-code-plugins#20942 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
melodic-software/claude-code-plugins#20937 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
melodic-software/claude-code-plugins#20905 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
melodic-software/claude-code-plugins の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
buildkite/elastic-ci-stack-for-aws#2050 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 76/100
ChurchCRM/docs.churchcrm.io#350 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
boyingliu01/xp-gate#906 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
rancher/stackstate-product-docs#516 ·
メンテナーはふだん 1 日以内に返信