The map view registers tools on the view itself (via app.registerTool), for hosts that list and call view tools directly:
navigate-to — fly the globe to a bounding box, with an optional label.
get-current-view — return the camera position and the visible bounding box (also as structuredContent).
get-screenshot — capture the current globe view as a PNG image in the tool result (optional maxDimension, default 1024px), so the model can see exactly what the user sees.
Architecture
Server (server.ts)
Exposes two tools:
geocode - Queries OpenStreetMap Nominatim API with rate limiting
show-map - Renders the CesiumJS globe UI at a specified location
Configures Content Security Policy to allow fetching tiles from OSM and Cesium CDN.
App (src/mcp-app.ts)
Vanilla TypeScript app that:
Dynamically loads CesiumJS from CDN
Initializes globe with OpenStreetMap imagery (no Ion token)
Receives tool inputs via the MCP App SDK
Handles camera navigation to specified bounding boxes
Key Files
server.ts - MCP server with geocode and show-map tools