mirror of
https://github.com/ChromeDevTools/chrome-devtools-mcp.git
synced 2026-11-04 15:00:11 +00:00
Fixes #3352. `npx` resolves against the `package.json` in the session's cwd. A project whose `overrides` conflict with a direct dependency makes it exit with `EOVERRIDE`, so the plugin fails to start there. ### Change - `.claude-plugin/plugin.json`: `args` becomes `["--prefix", "${CLAUDE_PLUGIN_DATA}", "chrome-devtools-mcp@<ver>"]`. - `release-please-config.json`: the version pin for that file moves from `args[0]` to `args[2]`. With the old path, release-please skips the update with "No version found" and leaves a stale pin. - `mcp.json` is untouched. ### Verification - Claude Code 2.1.287, `claude mcp list`, fresh npm cache per run: original manifest fails in a project with a conflicting override (stderr: `EOVERRIDE`) and connects in a clean project. The patched manifest connects in both. - `${CLAUDE_PLUGIN_DATA}` and `${HOME}` are expanded by Claude Code. `${PLUGIN_DATA}` is not, which is why `mcp.json`'s value can't be reused here. - release-please's `GenericJson` updater, simulating 1.13.0: `["--prefix","${CLAUDE_PLUGIN_DATA}","chrome-devtools-mcp@1.13.0"]`. - Agent Plugins CLI 0.1.91 (throwaway HOME): `validate`, dry-run `add`, and real `add --target claude` give identical output and identical generated `.mcp.json` / `.claude-plugin/plugin.json` with and without this change. - Prettier passes. Not covered: the OpenCode target of the Agent Plugins CLI, and the other client manifests (`.cursor-plugin/`, `.github/plugin/`, `gemini-extension.json`), which are unchanged.
102 lines
2.8 KiB
JSON
102 lines
2.8 KiB
JSON
{
|
|
"changelog-sections": [
|
|
{"type": "feat", "section": "🎉 Features", "hidden": false},
|
|
{"type": "fix", "section": "🛠️ Fixes", "hidden": false},
|
|
{"type": "docs", "section": "📄 Documentation", "hidden": false},
|
|
|
|
{"type": "perf", "section": "⚡ Performance", "hidden": false},
|
|
{"type": "refactor", "section": "🏗️ Refactor", "hidden": false},
|
|
{"type": "chore", "section": "♻️ Chores", "hidden": true},
|
|
{"type": "test", "section": "♻️ Chores", "hidden": true},
|
|
|
|
{"type": "build", "section": "⚙️ Automation", "hidden": true},
|
|
{"type": "ci", "section": "⚙️ Automation", "hidden": true}
|
|
],
|
|
|
|
"packages": {
|
|
".": {
|
|
"extra-files": [
|
|
{
|
|
"type": "generic",
|
|
"path": "src/version.ts"
|
|
},
|
|
{
|
|
"type": "json",
|
|
"path": "server.json",
|
|
"jsonpath": "version"
|
|
},
|
|
{
|
|
"type": "json",
|
|
"path": "server.json",
|
|
"jsonpath": "packages[0].version"
|
|
},
|
|
{
|
|
"type": "json",
|
|
"path": ".claude-plugin/marketplace.json",
|
|
"jsonpath": "version"
|
|
},
|
|
{
|
|
"type": "json",
|
|
"path": ".claude-plugin/plugin.json",
|
|
"jsonpath": "version"
|
|
},
|
|
{
|
|
"type": "json",
|
|
"path": ".claude-plugin/plugin.json",
|
|
"jsonpath": "mcpServers['chrome-devtools'].args[2]"
|
|
},
|
|
{
|
|
"type": "json",
|
|
"path": ".cursor-plugin/plugin.json",
|
|
"jsonpath": "version"
|
|
},
|
|
{
|
|
"type": "json",
|
|
"path": ".cursor-plugin/plugin.json",
|
|
"jsonpath": "mcpServers['chrome-devtools'].args[0]"
|
|
},
|
|
{
|
|
"type": "json",
|
|
"path": ".kimi-code-plugin/plugin.json",
|
|
"jsonpath": "version"
|
|
},
|
|
{
|
|
"type": "json",
|
|
"path": ".kimi-code-plugin/plugin.json",
|
|
"jsonpath": "mcpServers['chrome-devtools'].args[0]"
|
|
},
|
|
{
|
|
"type": "json",
|
|
"path": "gemini-extension.json",
|
|
"jsonpath": "version"
|
|
},
|
|
{
|
|
"type": "json",
|
|
"path": "gemini-extension.json",
|
|
"jsonpath": "mcpServers['chrome-devtools'].args[0]"
|
|
},
|
|
{
|
|
"type": "json",
|
|
"path": ".github/plugin/plugin.json",
|
|
"jsonpath": "version"
|
|
},
|
|
{
|
|
"type": "json",
|
|
"path": ".github/plugin/plugin.json",
|
|
"jsonpath": "mcpServers['chrome-devtools'].args[0]"
|
|
},
|
|
{
|
|
"type": "json",
|
|
"path": "plugin.json",
|
|
"jsonpath": "version"
|
|
},
|
|
{
|
|
"type": "json",
|
|
"path": "mcp.json",
|
|
"jsonpath": "mcpServers['chrome-devtools'].args[2]"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|