Prepare release machinery for v2 pre-releases (#2831)

This commit is contained in:
Max 2026-06-11 09:03:27 +01:00 • committed by GitHub
commit e196857bc9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -59,7 +59,7 @@ async def run():
# Read a resource (greeting resource from mcpserver_quickstart)
resource_content = await session.read_resource("greeting://World")
content_block = resource_content.contents[0]
if isinstance(content_block, types.TextContent):
if isinstance(content_block, types.TextResourceContents):
print(f"Resource content: {content_block.text}")
# Call a tool (add tool from mcpserver_quickstart)