Prepare release machinery for v2 pre-releases (#2831)
This commit is contained in:
parent
6d0c160113
commit
e196857bc9
1 changed files with 188 additions and 62 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue