use result.object otherwise CallToolResult not scriptable (#3753)

This commit is contained in:
Justin Quick (C4ADS) 2026-04-03 10:17:53 -04:00 committed by GitHub
commit 927a03bee1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -119,7 +119,7 @@ async def main():
# Test the protected tool
result = await client.call_tool("get_user_info")
print(f"GitHub user: {result['github_user']}")
print(f"GitHub user: {result.data['github_user']}")
if __name__ == "__main__":
asyncio.run(main())