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.
This commit is contained in:
Justin Spahr-Summers 2024-11-08 16:12:55 +00:00
commit 68ef1f9f52
No known key found for this signature in database

View file

@ -1061,7 +1061,6 @@ export const ServerResultSchema = z.union([
ListResourceTemplatesResultSchema,
ReadResourceResultSchema,
CallToolResultSchema,
CompatibilityCallToolResultSchema,
ListToolsResultSchema,
]);