cesium-mcp-dev

v1.139.2
io.github.gaopengbin/cesium-mcp-dev Checked 9 hours ago Published 8 months ago

CesiumJS API docs, code generation and development tools for IDE AI assistants.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

cesium_api_lookup

查询 Cesium API 文档。输入类名或关键词,返回对应的 API 描述、构造参数、常用方法和示例代码。

ParameterTypeDescription
query *stringCesium 类名或关键词,如 "Viewer"、"Entity"、"Color"、"flyTo"
categorystring查询类别

cesium_code_gen

根据自然语言描述生成 Cesium 代码片段。支持常见场景:视图控制、图层加载、Entity 创建、样式设置等。

ParameterTypeDescription
description *string用自然语言描述需要实现的功能,如 "创建一个红色的点标记在天安门"
languagestring代码语言

cesium_entity_builder

交互式构建 Cesium Entity 配置。选择 Entity 类型(point/billboard/label/polyline/polygon/model),返回完整的 Entity JSON 配置和创建代码。

ParameterTypeDescription
type *stringEntity 图形类型
colorstring颜色(CSS 格式)
namestringEntity 名称
positionobject位置(经纬度)
sizenumber尺寸(像素或米)