Skip to content

Commit 405fb3e

Browse files
committed
CallToolResult.isError should be optional
1 parent 5587c02 commit 405fb3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp_python/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ class CallToolResult(Result):
641641
"""The server's response to a tool call."""
642642

643643
content: list[TextContent | ImageContent | EmbeddedResource]
644-
isError: bool
644+
isError: bool = False
645645

646646

647647
class ToolListChangedNotification(Notification):

0 commit comments

Comments
 (0)