Installed MCP entry points serve the wrong framework or nothing: `darnit serve` picks the alphabetically first framework, and the plugin runner calls a nonexistent `darnit-mcp` executable
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python
- 領域
- build-system, cli
調査の方向性
Start by tracing the default selection in packages/darnit/src/darnit/cli.py and the runner commands in packaging/claude-plugin/templates/darnit-mcp-runner and plugin.json; compare them with the console-script declaration in packages/darnit/pyproject.toml and the meta-package pyproject.toml. Reproduce the reported commands, then check release-smoke.yml’s runner check; done means installed configs launch successfully and bare serve has an intentional framework-selection behavior.
索引モデルが issue の本文から書いたものです。
説明
Summary
Two defects in how the MCP server is launched from installed configs:
darnit servewith no--frameworkand no config path serveslist_available_frameworks()[0], which is sorted by name. With the publisheddarnit-mcpmeta-package (darnit-baseline, darnit-gittuf, darnit-reproducibility) that isgittuf, notopenssf-baseline.darnit installwrites exactly that bare command into the client config, so the skills'audit_openssf_baselinetool is absent. In the dev workspace it resolves tocommunity-spec.- The Claude Code plugin runner executes
uvx --from darnit-mcp==$V darnit-mcp(andpipx run darnit-mcp==$V).darnit-mcpis a metadata-only wheel with no console scripts; the only script,darnit, lives indarnit-core. The runner also passes noservesubcommand (plugin.jsonargs are[]).
Impact
A user following either install path gets an MCP server for the wrong framework, or none. The skills then report "no audit tools" or audit against an unintended standard.
Evidence
- Default selection: cli.py#L948-L952; sorted list: registry.py#L378
darnit installentry: cli.py#L616-L619- Runner: darnit-mcp-runner#L30, #L36; plugin.json#L15-L16
- Only script defined: packages/darnit/pyproject.toml#L49-L50; meta-package has none: pyproject.toml#L32-L41
release-smoke.ymlL573 runsdarnit-mcp-runner --helpand would fail on the next plugin release.
Reproduction
$ uvx --from darnit-mcp==0.1.0 darnit-mcp --help
Package `darnit-mcp` does not provide any executables. (exit 1)
$ uvx --from darnit-mcp==0.1.0 python -c "from darnit.config import list_available_frameworks as f; print(f())"
['gittuf', 'openssf-baseline', 'reproducibility']
The published darnit_mcp-0.1.0-py3-none-any.whl contains only dist-info files and no entry_points.txt. Expected: the runner starts a server, and a bare darnit serve serves an intended framework. Actual: the runner fails; darnit serve serves gittuf.
Suggested direction
- Make
servewithout--frameworkeither fail with the list of choices or serve all installed frameworks; havedarnit installwrite an explicit--framework(or config path). - Give
darnit-mcpadarnit-mcpconsole script (or change the runner to--from darnit-mcp==$V darnit serve --framework ...), and add a smoke test that runs the runner against a built wheel before release. - Related: #229, #231, #389.
- 主要言語
- Python
- スター
- 22
- フォーク
- 27
- 平均マージ
- 2日 28分
- マージ済み PR(30日)
- 40
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
darnitdevorg/darnit のほかの issue
-
needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
darnitdevorg/darnit#589 ·
メンテナーはふだん 1 日以内に返信
-
needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
darnitdevorg/darnit#587 ·
メンテナーはふだん 1 日以内に返信
-
needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
darnitdevorg/darnit#585 ·
メンテナーはふだん 1 日以内に返信
-
quality
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
darnitdevorg/darnit#523 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
darnitdevorg/darnit#516 ·
メンテナーはふだん 1 日以内に返信
darnitdevorg/darnit の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
topoteretes/cognee#5773 ·
メンテナーはふだん 1 日以内に返信
-
MiKTeX: a failed build reports no errors because texify --quiet switches the log to file:line: styleオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
SublimeText/LaTeXTools#1718 ·