Some checks failed
CLI Tests / test (push) Has been cancelled
* chore: v1 deprecation notices in all four packages, bump to 1.0.1 Phase 2 of the v2 go-live runbook (#1804 §4). v1 publishes four separately installable names, so each gets its own notice — a root-README-only change is invisible to anyone who installed a sub-package. `cli/` and `server/` ship no README at all, so for those two the runtime banner plus the forthcoming `npm deprecate` (#1816) are the only notice their users ever get. Notices, all using identical wording so the runtime banner and the npm warning agree: - root `README.md` and `client/README.md` - `cli/src/cli.ts` — stderr banner in `main()`. Also covers the root `mcp-inspector` bin, which is `cli/build/cli.js`. Deliberately **stderr**: `--cli` mode emits JSON on stdout and callers pipe it, so a banner there would corrupt output. Verified against a real server — stdout stays parseable JSON while the banner goes to stderr. - `server/src/index.ts` — alongside the existing proxy listening log - `client/bin/start.js` — alongside the existing startup URL log - `client/src/components/DeprecationBanner.tsx` — dismissible in-app banner, dismissal persisted in localStorage with both read and write guarded so a storage failure degrades to "banner reappears" rather than breaking the app AGENTS.md is replaced with a hard stop: v1 takes security fixes only, by issue only, and agents must never open a PR against v1/main. Version bumped to 1.0.1 across all four package.json files plus the lockfile (`npm run update-version`); `check-version` passes. The lockfile diff is restricted to the version fields — the `libc` churn a newer npm wanted to introduce was reverted as unrelated. `publish-all` is deliberately NOT changed here: 1.0.1 must take `latest`, which is the entire point of shipping this notice to npx users. Adding `--tag v1` is #1816, immediately after this publishes. Note for review: `client/src/App.tsx` shows ~836 changed lines but `git diff -w` shows 8 — wrapping the layout in a flex column added one nesting level and prettier re-indented the subtree. Review it with `-w`. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Txmv2qqv3yeKgRzoqXytzD * docs: replace the README screenshot with one showing the deprecation banner Captured from this branch's build: v1.0.1 in the sidebar heading, the dismissible deprecation banner across the top, connected to the everything server with tools listed. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Txmv2qqv3yeKgRzoqXytzD * docs: pin the README screenshot to v1/main instead of main The image URL must stay absolute — a relative path breaks on the npm package page, which renders the README outside any repo context. But it was pinned to `main`, so the v1 README rendered whatever `main` happened to hold: today the pre-deprecation screenshot, and after the v2 tree swap (#1817) either the v2 screenshot or a 404 if that path doesn't exist there. Pinning to `v1/main` keeps it absolute for npm, shows the deprecation banner once this merges, and survives the swap. Verified all candidate refs resolve 200 — GitHub disambiguates the slash in `v1/main` as the ref without needing a `refs/heads/` prefix. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Txmv2qqv3yeKgRzoqXytzD --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
99 lines
3.4 KiB
JSON
99 lines
3.4 KiB
JSON
{
|
|
"name": "@modelcontextprotocol/inspector",
|
|
"version": "1.0.1",
|
|
"description": "Model Context Protocol inspector",
|
|
"license": "SEE LICENSE IN LICENSE",
|
|
"author": "Model Context Protocol a Series of LF Projects, LLC.",
|
|
"homepage": "https://modelcontextprotocol.io",
|
|
"bugs": "https://github.com/modelcontextprotocol/inspector/issues",
|
|
"type": "module",
|
|
"bin": {
|
|
"mcp-inspector": "cli/build/cli.js"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/modelcontextprotocol/inspector"
|
|
},
|
|
"files": [
|
|
"client/bin",
|
|
"client/dist",
|
|
"server/build",
|
|
"server/static",
|
|
"cli/build"
|
|
],
|
|
"workspaces": [
|
|
"client",
|
|
"server",
|
|
"cli"
|
|
],
|
|
"scripts": {
|
|
"build": "npm run build-server && npm run build-client && npm run build-cli",
|
|
"build-server": "cd server && npm run build",
|
|
"build-client": "cd client && npm run build",
|
|
"build-cli": "cd cli && npm run build",
|
|
"clean": "rimraf ./node_modules ./client/node_modules ./cli/node_modules ./build ./client/dist ./server/build ./cli/build ./package-lock.json && npm install",
|
|
"dev": "node client/bin/start.js --dev",
|
|
"dev:windows": "node client/bin/start.js --dev",
|
|
"dev:sdk": "npm run link:sdk && concurrently \"npm run dev\" \"cd sdk && npm run build:esm:w\"",
|
|
"link:sdk": "(test -d sdk || ln -sf ${MCP_SDK:-$PWD/../typescript-sdk} sdk) && (cd sdk && npm link && (test -d node_modules || npm i)) && npm link @modelcontextprotocol/sdk",
|
|
"unlink:sdk": "(cd sdk && npm unlink -g) && rm sdk && npm unlink @modelcontextprotocol/sdk",
|
|
"start": "node client/bin/start.js",
|
|
"start-server": "cd server && npm run start",
|
|
"start-client": "cd client && npm run preview",
|
|
"test": "npm run prettier-check && cd client && npm test",
|
|
"test-cli": "cd cli && npm run test",
|
|
"test:e2e": "MCP_AUTO_OPEN_ENABLED=false npm run test:e2e --workspace=client",
|
|
"prettier-fix": "prettier --write .",
|
|
"prettier-check": "prettier --check .",
|
|
"lint": "prettier --check . && cd client && npm run lint",
|
|
"prepare": "husky && npm run build",
|
|
"publish-all": "npm publish --workspaces --access public && npm publish --access public",
|
|
"update-version": "node scripts/update-version.js",
|
|
"check-version": "node scripts/check-version-consistency.js"
|
|
},
|
|
"dependencies": {
|
|
"@modelcontextprotocol/inspector-cli": "^1.0.1",
|
|
"@modelcontextprotocol/inspector-client": "^1.0.1",
|
|
"@modelcontextprotocol/inspector-server": "^1.0.1",
|
|
"@modelcontextprotocol/sdk": "^1.25.2",
|
|
"concurrently": "^9.2.0",
|
|
"node-fetch": "^3.3.2",
|
|
"open": "^10.2.0",
|
|
"shell-quote": "^1.8.4",
|
|
"spawn-rx": "^5.1.2",
|
|
"ts-node": "^10.9.2",
|
|
"zod": "^3.25.76"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.54.1",
|
|
"@types/jest": "^29.5.14",
|
|
"@types/node": "^22.17.0",
|
|
"@types/shell-quote": "^1.7.5",
|
|
"husky": "^9.1.7",
|
|
"jest-fixed-jsdom": "^0.0.9",
|
|
"lint-staged": "^16.1.5",
|
|
"playwright": "^1.56.1",
|
|
"prettier": "3.9.5",
|
|
"rimraf": "^6.0.1",
|
|
"typescript": "^5.4.2"
|
|
},
|
|
"overrides": {
|
|
"get-intrinsic": "1.3.0",
|
|
"shell-quote": "^1.8.4",
|
|
"hono": "^4.12.25",
|
|
"form-data": "^4.0.6",
|
|
"@babel/core@<=7.29.0": "^7.29.6",
|
|
"esbuild@<0.28.1": "^0.28.1",
|
|
"minimatch@<3.1.4": "3.1.5",
|
|
"js-yaml@<4": "3.15.0",
|
|
"js-yaml@>=4": "4.2.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=22.7.5"
|
|
},
|
|
"lint-staged": {
|
|
"**/*.{js,ts,jsx,tsx,json,md}": [
|
|
"prettier --write"
|
|
]
|
|
}
|
|
}
|