From b9c58252a107210cecd0e324cc51fc188dc12c53 Mon Sep 17 00:00:00 2001 From: Mitko Iliev Date: Sat, 19 Apr 2025 00:05:56 +0300 Subject: [PATCH 1/4] Fixed: if not given cannnot be null default --- client/src/utils/schemaUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/utils/schemaUtils.ts b/client/src/utils/schemaUtils.ts index ea92065..520b790 100644 --- a/client/src/utils/schemaUtils.ts +++ b/client/src/utils/schemaUtils.ts @@ -13,7 +13,7 @@ export function generateDefaultValue(schema: JsonSchemaType): JsonValue { if (!schema.required) { if (schema.type === "array") return []; if (schema.type === "object") return {}; - return null; + return undefined; } switch (schema.type) { From fa6fc62ecb5c104f330b489bbdd4e28326a52749 Mon Sep 17 00:00:00 2001 From: Mitko Iliev Date: Sat, 19 Apr 2025 00:47:14 +0300 Subject: [PATCH 2/4] Fixed: if not given cannnot be null default, tests --- client/src/utils/__tests__/schemaUtils.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/utils/__tests__/schemaUtils.test.ts b/client/src/utils/__tests__/schemaUtils.test.ts index 4c834fe..94e428a 100644 --- a/client/src/utils/__tests__/schemaUtils.test.ts +++ b/client/src/utils/__tests__/schemaUtils.test.ts @@ -51,13 +51,13 @@ describe("generateDefaultValue", () => { test("generates null for non-required primitive types", () => { expect(generateDefaultValue({ type: "string", required: false })).toBe( - null, + undefined, ); expect(generateDefaultValue({ type: "number", required: false })).toBe( - null, + undefined, ); expect(generateDefaultValue({ type: "boolean", required: false })).toBe( - null, + undefined, ); }); From b3fc199d25254efacf8bf7c0603870077254676f Mon Sep 17 00:00:00 2001 From: cliffhall Date: Fri, 25 Apr 2025 11:49:39 -0400 Subject: [PATCH 3/4] Bump release to 0.11.0 * In main.yml - reversed a change from last release that did an explicit build, because the prepare script was no longer in package.json * In package.json - replaced prepare script, which will cause automatic build after npm install - set version to 0.11.0 - set versions of inspector-cli, inspector-client, and inspector-server to ^0.11.0 * In package.lock.json - updated versions of inspector, inspector-cli, inspector-client, and inspector-server to ^0.11.0 * In cli/package.json - set version to 0.11.0 - set versions of sdk to 1.10.2 * In client/package.json - set version to 0.11.0 - set versions of sdk to 1.10.2 * In server/package.json - set version to 0.11.0 - set versions of sdk to 1.10.2 --- .github/workflows/main.yml | 2 -- cli/package.json | 4 ++-- client/package.json | 4 ++-- package-lock.json | 22 +++++++++++----------- package.json | 8 ++++---- server/package.json | 4 ++-- 6 files changed, 21 insertions(+), 23 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e292dae..8efb677 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -58,8 +58,6 @@ jobs: # - run: npm ci - run: npm install --no-package-lock - - run: npm run build - # TODO: Add --provenance once the repo is public - run: npm run publish-all env: diff --git a/cli/package.json b/cli/package.json index ea74688..bebed5d 100644 --- a/cli/package.json +++ b/cli/package.json @@ -1,6 +1,6 @@ { "name": "@modelcontextprotocol/inspector-cli", - "version": "0.10.2", + "version": "0.11.0", "description": "CLI for the Model Context Protocol inspector", "license": "MIT", "author": "Anthropic, PBC (https://anthropic.com)", @@ -21,7 +21,7 @@ }, "devDependencies": {}, "dependencies": { - "@modelcontextprotocol/sdk": "^1.10.0", + "@modelcontextprotocol/sdk": "^1.10.2", "commander": "^13.1.0", "spawn-rx": "^5.1.2" } diff --git a/client/package.json b/client/package.json index 54b3dda..13e453c 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "@modelcontextprotocol/inspector-client", - "version": "0.10.2", + "version": "0.11.0", "description": "Client-side application for the Model Context Protocol inspector", "license": "MIT", "author": "Anthropic, PBC (https://anthropic.com)", @@ -23,7 +23,7 @@ "test:watch": "jest --config jest.config.cjs --watch" }, "dependencies": { - "@modelcontextprotocol/sdk": "^1.10.0", + "@modelcontextprotocol/sdk": "^1.10.2", "@radix-ui/react-checkbox": "^1.1.4", "@radix-ui/react-dialog": "^1.1.3", "@radix-ui/react-icons": "^1.3.0", diff --git a/package-lock.json b/package-lock.json index 973ca62..7a10da6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@modelcontextprotocol/inspector", - "version": "0.10.2", + "version": "0.11.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@modelcontextprotocol/inspector", - "version": "0.10.2", + "version": "0.11.0", "license": "MIT", "workspaces": [ "client", @@ -14,9 +14,9 @@ "cli" ], "dependencies": { - "@modelcontextprotocol/inspector-cli": "^0.10.2", - "@modelcontextprotocol/inspector-client": "^0.10.2", - "@modelcontextprotocol/inspector-server": "^0.10.2", + "@modelcontextprotocol/inspector-cli": "^0.11.0", + "@modelcontextprotocol/inspector-client": "^0.11.0", + "@modelcontextprotocol/inspector-server": "^0.11.0", "@modelcontextprotocol/sdk": "^1.10.2", "concurrently": "^9.0.1", "shell-quote": "^1.8.2", @@ -38,10 +38,10 @@ }, "cli": { "name": "@modelcontextprotocol/inspector-cli", - "version": "0.10.2", + "version": "0.11.0", "license": "MIT", "dependencies": { - "@modelcontextprotocol/sdk": "^1.10.0", + "@modelcontextprotocol/sdk": "^1.10.2", "commander": "^13.1.0", "spawn-rx": "^5.1.2" }, @@ -59,10 +59,10 @@ }, "client": { "name": "@modelcontextprotocol/inspector-client", - "version": "0.10.2", + "version": "0.11.0", "license": "MIT", "dependencies": { - "@modelcontextprotocol/sdk": "^1.10.0", + "@modelcontextprotocol/sdk": "^1.10.2", "@radix-ui/react-checkbox": "^1.1.4", "@radix-ui/react-dialog": "^1.1.3", "@radix-ui/react-icons": "^1.3.0", @@ -8564,10 +8564,10 @@ }, "server": { "name": "@modelcontextprotocol/inspector-server", - "version": "0.10.2", + "version": "0.11.0", "license": "MIT", "dependencies": { - "@modelcontextprotocol/sdk": "^1.10.0", + "@modelcontextprotocol/sdk": "^1.10.2", "cors": "^2.8.5", "express": "^5.1.0", "ws": "^8.18.0", diff --git a/package.json b/package.json index bba280c..d9f653d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@modelcontextprotocol/inspector", - "version": "0.10.2", + "version": "0.11.0", "description": "Model Context Protocol inspector", "license": "MIT", "author": "Anthropic, PBC (https://anthropic.com)", @@ -38,9 +38,9 @@ "publish-all": "npm publish --workspaces --access public && npm publish --access public" }, "dependencies": { - "@modelcontextprotocol/inspector-cli": "^0.10.2", - "@modelcontextprotocol/inspector-client": "^0.10.2", - "@modelcontextprotocol/inspector-server": "^0.10.2", + "@modelcontextprotocol/inspector-cli": "^0.11.0", + "@modelcontextprotocol/inspector-client": "^0.11.0", + "@modelcontextprotocol/inspector-server": "^0.11.0", "@modelcontextprotocol/sdk": "^1.10.2", "concurrently": "^9.0.1", "shell-quote": "^1.8.2", diff --git a/server/package.json b/server/package.json index fc06019..ac887b2 100644 --- a/server/package.json +++ b/server/package.json @@ -1,6 +1,6 @@ { "name": "@modelcontextprotocol/inspector-server", - "version": "0.10.2", + "version": "0.11.0", "description": "Server-side application for the Model Context Protocol inspector", "license": "MIT", "author": "Anthropic, PBC (https://anthropic.com)", @@ -27,7 +27,7 @@ "typescript": "^5.6.2" }, "dependencies": { - "@modelcontextprotocol/sdk": "^1.10.0", + "@modelcontextprotocol/sdk": "^1.10.2", "cors": "^2.8.5", "express": "^5.1.0", "ws": "^8.18.0", From 45d135a42630cc9cf5ebfbc95f74f1eb101e5c4d Mon Sep 17 00:00:00 2001 From: cliffhall Date: Wed, 30 Apr 2025 12:39:15 -0400 Subject: [PATCH 4/4] Bump release to 0.11.0 * In package.json - replaced prepare script, which will cause automatic build after npm install --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index d9f653d..af8abd3 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "test-cli": "cd cli && npm run test", "prettier-fix": "prettier --write .", "prettier-check": "prettier --check .", + "prepare": "npm run build", "publish-all": "npm publish --workspaces --access public && npm publish --access public" }, "dependencies": {