Skip to content

Commit adfcccc

Browse files
cliffhallclaude
andauthored
Add repository field to workspace package.json files for npm trusted publishing (#1202)
Previous fix only added repository.url to the root package.json, but npm publish --workspaces publishes each workspace using its own package.json. The provenance check runs per-package, so each published workspace package also needs repository.url to match the GitHub repo URL. Also adds type: "git" to the root and directory fields to the workspaces for correct monorepo linking on npm/GitHub. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4f71458 commit adfcccc

4 files changed

Lines changed: 16 additions & 0 deletions

File tree

cli/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
"author": "Model Context Protocol a Series of LF Projects, LLC.",
77
"homepage": "https://modelcontextprotocol.io",
88
"bugs": "https://github.com/modelcontextprotocol/inspector/issues",
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/modelcontextprotocol/inspector",
12+
"directory": "cli"
13+
},
914
"main": "build/cli.js",
1015
"type": "module",
1116
"bin": {

client/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
"author": "Model Context Protocol a Series of LF Projects, LLC.",
77
"homepage": "https://modelcontextprotocol.io",
88
"bugs": "https://github.com/modelcontextprotocol/inspector/issues",
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/modelcontextprotocol/inspector",
12+
"directory": "client"
13+
},
914
"type": "module",
1015
"bin": {
1116
"mcp-inspector-client": "./bin/start.js"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"mcp-inspector": "cli/build/cli.js"
1212
},
1313
"repository": {
14+
"type": "git",
1415
"url": "https://github.com/modelcontextprotocol/inspector"
1516
},
1617
"files": [

server/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
"author": "Model Context Protocol a Series of LF Projects, LLC.",
77
"homepage": "https://modelcontextprotocol.io",
88
"bugs": "https://github.com/modelcontextprotocol/inspector/issues",
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/modelcontextprotocol/inspector",
12+
"directory": "server"
13+
},
914
"type": "module",
1015
"bin": {
1116
"mcp-inspector-server": "build/index.js"

0 commit comments

Comments
 (0)