Skip to content

Commit 975f79b

Browse files
Merge pull request #31 from modelcontextprotocol/justin/is-error-optional
`CallToolResult.isError` should be optional
2 parents 5587c02 + 405fb3e commit 975f79b

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)