Add repository field to workspace package.json files for npm trusted publishing (#1202)
Some checks failed
CLI Tests / test (push) Has been cancelled

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>
This commit is contained in:
Cliff Hall 2026-04-14 16:41:47 -04:00 • committed by GitHub
commit adfcccca52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 16 additions and 0 deletions

View file

@ -6,6 +6,11 @@
"author": "Model Context Protocol a Series of LF Projects, LLC.",
"homepage": "https://modelcontextprotocol.io",
"bugs": "https://github.com/modelcontextprotocol/inspector/issues",
"repository": {
"type": "git",
"url": "https://github.com/modelcontextprotocol/inspector",
"directory": "cli"
},
"main": "build/cli.js",
"type": "module",
"bin": {

View file

@ -6,6 +6,11 @@
"author": "Model Context Protocol a Series of LF Projects, LLC.",
"homepage": "https://modelcontextprotocol.io",
"bugs": "https://github.com/modelcontextprotocol/inspector/issues",
"repository": {
"type": "git",
"url": "https://github.com/modelcontextprotocol/inspector",
"directory": "client"
},
"type": "module",
"bin": {
"mcp-inspector-client": "./bin/start.js"

View file

@ -11,6 +11,7 @@
"mcp-inspector": "cli/build/cli.js"
},
"repository": {
"type": "git",
"url": "https://github.com/modelcontextprotocol/inspector"
},
"files": [

View file

@ -6,6 +6,11 @@
"author": "Model Context Protocol a Series of LF Projects, LLC.",
"homepage": "https://modelcontextprotocol.io",
"bugs": "https://github.com/modelcontextprotocol/inspector/issues",
"repository": {
"type": "git",
"url": "https://github.com/modelcontextprotocol/inspector",
"directory": "server"
},
"type": "module",
"bin": {
"mcp-inspector-server": "build/index.js"