fix: use pinned version for plugins (#2135)

The regex used to match the versions is 
```js
const regex = /(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)(-(?<preRelease>[\w.]+))?(\+(?<build>[-\w.]+))?/
```
And they replace what was matched.
Closes https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/2121
This commit is contained in:
Nikolay Vitkov
2026-05-26 15:22:03 +02:00
committed by GitHub
parent 176eb69513
commit 8ea5f098ef
5 changed files with 30 additions and 5 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
"chrome-devtools": {
"command": "npx",
"args": [
"chrome-devtools-mcp@latest"
"chrome-devtools-mcp@1.0.1"
]
}
}
+1 -1
View File
@@ -11,7 +11,7 @@
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["chrome-devtools-mcp@latest"]
"args": ["chrome-devtools-mcp@1.0.1"]
}
}
}
+1 -1
View File
@@ -6,7 +6,7 @@
"chrome-devtools": {
"command": "npx",
"args": [
"chrome-devtools-mcp@latest"
"chrome-devtools-mcp@1.0.1"
]
}
}
+2 -2
View File
@@ -1,10 +1,10 @@
{
"name": "chrome-devtools-mcp",
"version": "latest",
"version": "1.0.1",
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["chrome-devtools-mcp@latest"]
"args": ["chrome-devtools-mcp@1.0.1"]
}
}
}
+25
View File
@@ -40,15 +40,40 @@
"path": ".claude-plugin/plugin.json",
"jsonpath": "version"
},
{
"type": "json",
"path": ".claude-plugin/plugin.json",
"jsonpath": "mcpServers['chrome-devtools'].args[1]"
},
{
"type": "json",
"path": ".cursor-plugin/plugin.json",
"jsonpath": "version"
},
{
"type": "json",
"path": ".cursor-plugin/plugin.json",
"jsonpath": "mcpServers.[['chrome-devtools']'].args[1]"
},
{
"type": "json",
"path": "gemini-extension.json",
"jsonpath": "version"
},
{
"type": "json",
"path": "gemini-extension.json",
"jsonpath": "mcpServers['chrome-devtools'].args[1]"
},
{
"type": "json",
"path": ".github/plugin/plugin.json",
"jsonpath": "version"
},
{
"type": "json",
"path": ".github/plugin/plugin.json",
"jsonpath": "mcpServers['chrome-devtools'].args[1]"
}
]
}