From 68ef1f9f5222d543370627bdac092ff0efa793b3 Mon Sep 17 00:00:00 2001 From: Justin Spahr-Summers Date: Fri, 8 Nov 2024 16:12:55 +0000 Subject: [PATCH] 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 1d147aa9..61f20da7 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1061,7 +1061,6 @@ export const ServerResultSchema = z.union([ ListResourceTemplatesResultSchema, ReadResourceResultSchema, CallToolResultSchema, - CompatibilityCallToolResultSchema, ListToolsResultSchema, ]);