Stays MCP server

The results card

The server also offers a UI resource that a host can render for search_stays results. It is optional. A host that does not render it gets the same structuredContent and text.

Resource

URIui://nsuna/stays/v5.html
MIME typetext/html;profile=mcp-app
Declared bysearch_stays, as _meta.ui.resourceUri in tools/list
Read withresources/read (it is also in resources/list)

It is one self-contained HTML document for hosts that support MCP Apps UI resources. get_stay declares no UI of its own.

What it shows

  • Stay cards with a photo, star rating, and either the starting price or an availability label.
  • A list of destinations to choose from when the search was ambiguous.
  • A detail view with photos and the description when the user opens a card. The card calls get_stay through the host for this.
  • A View on Nsuna action that opens the stay’s customerUrl.

The card only renders tool results and calls the two tools through the host. It makes no network requests of its own.

Content security policy

The resource’s _meta.ui.csp declares no connect domains. Photos load from these resource domains, which are also the only hosts that photo URLs in tool results can use:

  • https://i.travelapi.com
  • https://cdn.nsuna.io

Versioning

The URI carries a version. tools/list advertises ui://nsuna/stays/v5.html. Hosts that cached an earlier tool descriptor can still read ui://nsuna/stays/v3.html and ui://nsuna/stays/v4.html, which return the same document. Other URIs are not served.