From e448102f614b992c6923a92c586506959b905add Mon Sep 17 00:00:00 2001 From: cliffhall Date: Tue, 14 Apr 2026 15:35:25 -0400 Subject: [PATCH] Add repository field to workspace package.json files for npm trusted publishing 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) --- cli/package.json | 5 +++++ client/package.json | 5 +++++ package.json | 1 + server/package.json | 5 +++++ 4 files changed, 16 insertions(+) diff --git a/cli/package.json b/cli/package.json index e798558aa..68d6505a6 100644 --- a/cli/package.json +++ b/cli/package.json @@ -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": { diff --git a/client/package.json b/client/package.json index 178a0483e..3bc6e26c5 100644 --- a/client/package.json +++ b/client/package.json @@ -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" diff --git a/package.json b/package.json index c81b71928..601ac3e2d 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "mcp-inspector": "cli/build/cli.js" }, "repository": { + "type": "git", "url": "https://github.com/modelcontextprotocol/inspector" }, "files": [ diff --git a/server/package.json b/server/package.json index 3c2e3a1e9..5d348912a 100644 --- a/server/package.json +++ b/server/package.json @@ -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"