From 68ef1f9f5222d543370627bdac092ff0efa793b3 Mon Sep 17 00:00:00 2001 From: Justin Spahr-Summers Date: Fri, 8 Nov 2024 16:12:55 +0000 Subject: [PATCH 1/2] Prevent new server code from returning `toolResult` This doesn't impact the ability of clients to handle it (see `Client.callTool`), but does make it a type error to return the old format. This will make it easier to catch sites that haven't been updated. --- src/types.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 1d147aa..61f20da 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1061,7 +1061,6 @@ export const ServerResultSchema = z.union([ ListResourceTemplatesResultSchema, ReadResourceResultSchema, CallToolResultSchema, - CompatibilityCallToolResultSchema, ListToolsResultSchema, ]); From e8a8273438774a0a464333fd963b5a1e57755659 Mon Sep 17 00:00:00 2001 From: Justin Spahr-Summers Date: Fri, 8 Nov 2024 16:13:14 +0000 Subject: [PATCH 2/2] Preemptive version bump --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index c266bf3..fe1f978 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@modelcontextprotocol/sdk", - "version": "0.3.2", + "version": "0.3.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@modelcontextprotocol/sdk", - "version": "0.3.2", + "version": "0.3.3", "dependencies": { "content-type": "^1.0.5", "raw-body": "^3.0.0", diff --git a/package.json b/package.json index 9d55b1a..d561dd9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@modelcontextprotocol/sdk", - "version": "0.3.2", + "version": "0.3.3", "description": "Model Context Protocol implementation for TypeScript", "type": "module", "main": "./dist/index.js",