Skip to content

Conversation

@ochafik
Copy link
Contributor

@ochafik ochafik commented Jan 23, 2026

Summary

  • Replace complex / slow reverse geocoding w/ map screenshot in updateModelContext call when the camera moves
  • Remove rounded corners from the map container CSS (can't seem to make inner iframe truly transparent, makes night mode weird)

Changes

Removed rounded corners

  • Removed border-radius: .75rem and overflow: hidden from #cesiumContainer

Added screenshot to model context

  • When the camera stops moving, the map canvas is captured as a base64 PNG
  • The image is only computed and included if the host supports image content blocks (updateModelContext.image capability)
  • Screenshot is sent alongside the existing text content describing the location

…nded corners

- Remove border-radius and overflow: hidden from cesiumContainer CSS
- Capture map canvas as base64 PNG and include in updateModelContext
- Only include image if host supports image content blocks
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 23, 2026

Open in StackBlitz

@modelcontextprotocol/ext-apps

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/ext-apps@340

@modelcontextprotocol/server-basic-react

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-basic-react@340

@modelcontextprotocol/server-basic-vanillajs

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-basic-vanillajs@340

@modelcontextprotocol/server-budget-allocator

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-budget-allocator@340

@modelcontextprotocol/server-cohort-heatmap

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-cohort-heatmap@340

@modelcontextprotocol/server-customer-segmentation

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-customer-segmentation@340

@modelcontextprotocol/server-map

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-map@340

@modelcontextprotocol/server-pdf

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-pdf@340

@modelcontextprotocol/server-scenario-modeler

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-scenario-modeler@340

@modelcontextprotocol/server-shadertoy

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-shadertoy@340

@modelcontextprotocol/server-sheet-music

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-sheet-music@340

@modelcontextprotocol/server-system-monitor

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-system-monitor@340

@modelcontextprotocol/server-threejs

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-threejs@340

@modelcontextprotocol/server-transcript

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-transcript@340

@modelcontextprotocol/server-video-resource

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-video-resource@340

@modelcontextprotocol/server-wiki-explorer

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-wiki-explorer@340

commit: 622eb20

@ochafik ochafik force-pushed the ochafik/map-server-screenshot branch from 923b7ca to e558674 Compare January 24, 2026 00:10
- Scale down to max 256px (longest dimension)
- Use PNG for better quality with map graphics
@ochafik ochafik force-pushed the ochafik/map-server-screenshot branch from e558674 to d6db0c4 Compare January 24, 2026 00:19
@ochafik ochafik marked this pull request as ready for review January 24, 2026 00:35
@ochafik ochafik changed the title feat(map-server): add screenshot to updateModelContext and remove rounded corners feat(map-server): add screenshot to updateModelContext and remove reverse geocode + rounded corners Jan 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants