This commit is contained in:
parent
3a6f2996cd
commit
837ef904f8
2 changed files with 1757 additions and 567 deletions
|
|
@ -38,4 +38,4 @@ async def call_tool(ctx: ServerRequestContext, params: CallToolRequestParams) ->
|
|||
)
|
||||
|
||||
|
||||
server = Server("Bookshop", on_list_tools=list_tools, on_call_tool=call_tool)
|
||||
server = Server("Bookshop", version="2.0.0", on_list_tools=list_tools, on_call_tool=call_tool)
|
||||
|
|
|
|||
|
|
@ -16,4 +16,5 @@ async def main() -> None:
|
|||
|
||||
async with Client(mcp, mode="2026-07-28", prior_discover=saved) as client:
|
||||
print(client.protocol_version)
|
||||
print(client.server_info.name)
|
||||
if client.server_info is not None:
|
||||
print(client.server_info.name)
|
||||
|
|
|
|||
Loading…
Reference in a new issue