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

@ -62,13 +62,14 @@ async def test_add_html_resource_serves_ui_resource_at_app_mime_type() -> None:
result = await client.read_resource("ui://clock/app.html")
assert result == snapshot(
ReadResourceResult(
_meta={"io.modelcontextprotocol/serverInfo": {"name": "clock", "version": ""}},
contents=[
TextResourceContents(
uri="ui://clock/app.html",
mime_type="text/html;profile=mcp-app",
text="<title>Clock</title>",
)
]
],
)
)
assert isinstance(result.contents[0], TextResourceContents)