Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

Update result printing in README example

Wei Han (Henry)f1a9778a2910
diff --git a/README.md b/README.md
index 179fe641a..33260f67a 100644
--- a/README.md
+++ b/README.md
@@ -242,7 +242,7 @@ async def main():
tools = await client.list_tools()
print(f"Available tools: {tools}")
result = await client.call_tool("add", {"a": 5, "b": 3})
- print(f"Result: {result.text}")
+ print(f"Result: {result.content[0].text}")
# Connect via SSE
async with Client("http://localhost:8000/sse") as client: