MCP App for generating Cesium views.
video-clip.mp4
Read more about MCP Apps in https://blog.modelcontextprotocol.io/posts/2026-01-26-mcp-apps/.
- OpenAI gpt-5.2-codex model. Other compatible LLMs and models can also be used.
- MCP Apps compatible client like Basic Host.
Create .env file based on .env.example and fill required CESIUM_TOKEN, OPENAI_URL and OPENAI_KEY values.
Optionally change OPENAI_MODEL if different LLM Model is required.
Change HOST_URL to the public domain value if hosting publicly. This is required for CSP.
pnpm install
pnpm run buildpnpm startGenerate and execute code from description
Shows a Cesium viewer generated from provided description.
Input:
descriptionViewer generation request
The codegen server works with MCP clients that support MCP Apps like Claude Desktop.
MCP App can be tested using Basic Host. Set HOST_URL value in SERVERS environment variable to connect Basic Host to Codegen MCP Server.
An <iframe> generated for MCP App can be used directly without MCP infrastructure like embedding in web pages. Just open the {HOST_URL}/iframe?description={description} url and put the viewer description in {description} query parameter.
Try these simple commands with your AI client:
"Orbit the great pyramid"
"Fly from Chicago to New York"
"Fly from Chicago to New York with plane"
"Cesium man on top of mount Everest"
"Tour of Paris"
"With day night switch"
Interested in contributing? Please read CONTRIBUTING.md. We also ask that you follow the Code of Conduct.
Apache 2.0. See LICENSE.