Skip to content

Commit 68ef1f9

Browse files
committed
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.
1 parent 9334495 commit 68ef1f9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,6 @@ export const ServerResultSchema = z.union([
10611061
ListResourceTemplatesResultSchema,
10621062
ReadResourceResultSchema,
10631063
CallToolResultSchema,
1064-
CompatibilityCallToolResultSchema,
10651064
ListToolsResultSchema,
10661065
]);
10671066

0 commit comments

Comments
 (0)