cesium-mcp-dev 1.139.0 → 1.139.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # cesium-mcp-dev
2
2
 
3
+ **English** | [中文](README.zh-CN.md)
4
+
3
5
  > MCP Server for IDE AI assistants -- Cesium API documentation, code generation, and Entity builder.
4
6
 
5
7
  [![npm version](https://img.shields.io/npm/v/cesium-mcp-dev.svg)](https://www.npmjs.com/package/cesium-mcp-dev)
@@ -0,0 +1,106 @@
1
+ # cesium-mcp-dev
2
+
3
+ [English](README.md) | **中文**
4
+
5
+ > 为 IDE AI 助手提供的 MCP 服务器 — Cesium API 文档查询、代码生成和 Entity 构建器。
6
+
7
+ [![npm version](https://img.shields.io/npm/v/cesium-mcp-dev.svg)](https://www.npmjs.com/package/cesium-mcp-dev)
8
+ [![license](https://img.shields.io/npm/l/cesium-mcp-dev.svg)](LICENSE)
9
+
10
+ ## 简介
11
+
12
+ `cesium-mcp-dev` 帮助 AI 编程助手(GitHub Copilot、Cursor、Claude Code 等)编写更好的 CesiumJS 代码——通过 MCP 协议提供 API 文档查询、代码片段生成和 Entity 配置构建功能。
13
+
14
+ ```
15
+ IDE AI 助手 <--MCP stdio--> cesium-mcp-dev --> API 文档、代码片段、Entity 配置
16
+ ```
17
+
18
+ ## 安装与运行
19
+
20
+ ```bash
21
+ npx cesium-mcp-dev
22
+ ```
23
+
24
+ ## IDE 配置
25
+
26
+ ### VS Code (Copilot)
27
+
28
+ 在 `.vscode/mcp.json` 中:
29
+
30
+ ```json
31
+ {
32
+ "servers": {
33
+ "cesium-dev": {
34
+ "command": "npx",
35
+ "args": ["cesium-mcp-dev"]
36
+ }
37
+ }
38
+ }
39
+ ```
40
+
41
+ ### Cursor
42
+
43
+ 在 `.cursor/mcp.json` 中:
44
+
45
+ ```json
46
+ {
47
+ "mcpServers": {
48
+ "cesium-dev": {
49
+ "command": "npx",
50
+ "args": ["cesium-mcp-dev"]
51
+ }
52
+ }
53
+ }
54
+ ```
55
+
56
+ ### Claude Desktop
57
+
58
+ ```json
59
+ {
60
+ "mcpServers": {
61
+ "cesium-dev": {
62
+ "command": "npx",
63
+ "args": ["cesium-mcp-dev"]
64
+ }
65
+ }
66
+ }
67
+ ```
68
+
69
+ ## MCP 工具 (3)
70
+
71
+ ### `cesium_api_lookup`
72
+
73
+ 按类名、方法或属性查询 Cesium API 文档。
74
+
75
+ ```
76
+ 输入: "Viewer"
77
+ 输出: 构造函数签名、属性、方法和使用示例
78
+ ```
79
+
80
+ **覆盖的类**: Viewer, Entity, Camera, Cartesian3, Color, GeoJsonDataSource, ImageryLayer, Cesium3DTileset, Material, ScreenSpaceEventHandler, flyTo, setView(12 个类)
81
+
82
+ ### `cesium_code_gen`
83
+
84
+ 根据自然语言描述生成 Cesium 代码。
85
+
86
+ ```
87
+ 输入: "在天安门广场添加一个红色点标记"
88
+ 输出: 可直接使用的完整 TypeScript 代码片段
89
+ ```
90
+
91
+ **内置片段**: 飞行到位置、添加标记、加载 GeoJSON、绘制折线、绘制多边形、加载 3D Tiles、切换底图、点击处理器、截图、热力图、轨迹动画(11 个场景)
92
+
93
+ ### `cesium_entity_builder`
94
+
95
+ 通过指定类型和属性交互式构建 Entity 配置。
96
+
97
+ ```
98
+ 输入: type: "polygon", position: {lon: 116.4, lat: 39.9}, color: "#ff6600"
99
+ 输出: 包含材质、样式和地面贴合的完整 Entity 定义
100
+ ```
101
+
102
+ **支持类型**: point, billboard, label, polyline, polygon, model, ellipse, box(8 种类型)
103
+
104
+ ## 许可证
105
+
106
+ MIT
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "cesium-mcp-dev",
3
- "version": "1.139.0",
3
+ "version": "1.139.2",
4
4
  "description": "Cesium MCP for Development — IDE AI 助手的 Cesium API 文档查询与代码生成",
5
+ "mcpName": "io.github.gaopengbin/cesium-mcp-dev",
5
6
  "type": "module",
6
7
  "main": "./dist/index.js",
7
8
  "types": "./dist/index.d.ts",
@@ -33,6 +34,18 @@
33
34
  "tsx": "^4.0.0",
34
35
  "typescript": "^5.0.0"
35
36
  },
37
+ "keywords": [
38
+ "cesium",
39
+ "mcp",
40
+ "model-context-protocol",
41
+ "gis",
42
+ "ai-agent",
43
+ "cesiumjs",
44
+ "code-generation",
45
+ "api-docs",
46
+ "ide",
47
+ "developer-tools"
48
+ ],
36
49
  "repository": {
37
50
  "type": "git",
38
51
  "url": "https://github.com/gaopengbin/cesium-mcp.git",