From 405fb3e18cfd27ddb53cc5507b74d2278932cd94 Mon Sep 17 00:00:00 2001 From: Justin Spahr-Summers Date: Thu, 7 Nov 2024 13:38:01 +0000 Subject: [PATCH] `CallToolResult.isError` should be optional --- mcp_python/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcp_python/types.py b/mcp_python/types.py index 4e8071918..ffcf75e00 100644 --- a/mcp_python/types.py +++ b/mcp_python/types.py @@ -641,7 +641,7 @@ class CallToolResult(Result): """The server's response to a tool call.""" content: list[TextContent | ImageContent | EmbeddedResource] - isError: bool + isError: bool = False class ToolListChangedNotification(Notification):