This commit is contained in:
parent
3a6f2996cd
commit
837ef904f8
1 changed files with 1757 additions and 567 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue