Align with spec #3002: optional clientInfo, serverInfo in result _meta (#3143)

This commit is contained in:
Max 2026-07-23 12:00:36 +01:00 • committed by GitHub
commit 837ef904f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)