mcp-dd-simulation
MCP Server for DD Unity 6-DOF ballistic simulation.
通过 MCP 协议调用 DD_Unity.exe 弹道仿真引擎,支持 Claude Code、Claude Desktop 等任何兼容 MCP 的 AI 客户端。
前置条件
- 将
DD_Unity.exe放在本地(需包含--run-once模式) - 设置环境变量
DD_UNITY_EXE_PATH指向 EXE 路径
安装
# 通过 uvx 临时运行(推荐)
uvx --from yudeshi1314520-mcp-dd-simulation mcp-dd-simulation
Claude Code 配置
在 .claude.json 或项目的 .mcp.json 中添加:
{
"mcpServers": {
"dd-simulation": {
"command": "uvx",
"args": ["--from", "yudeshi1314520-mcp-dd-simulation", "mcp-dd-simulation"],
"env": {
"DD_UNITY_EXE_PATH": "D:\\弹道联合Unity仿真\\Unity\\DD_UnityQ\\DD_app\\DD_Unity.exe"
}
}
}
}
参数
所有参数均可选,使用默认值:
| 分组 | 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|---|
| 仿真 | simTime | number | 2.0 | 仿真时长(秒) |
| 仿真 | speedUp | int | 10 | 速度倍率 |
| 仿真 | killDistance | number | 50.0 | 命中距离(m) |
| 仿真 | export_csv | bool | false | 导出 CSV |
| 物理 | Mg | number | 300.0 | 质量(kg) |
| 物理 | Sref | number | 0.10787 | 参考面积 |
| 物理 | Lref | number | 3.6 | 参考长度 |
| 物理 | XG | number | 0.5 | 重心 |
| 初始 | Vme0 | [3] | [400,0,0] | 初速 (m/s) |
| 初始 | Xme0 | [3] | [0,0,-7000] | 初始位置 (m) |
| 目标 | target_position | [3] | [80000,80000,-20000] | 目标位置 (m) |
| 目标 | target_vel | [3] | [-200,-200,0] | 目标速度 (m/s) |
| 增益 | Kp_* / Ki_* | number | 见代码 | P/I 控制器增益 |
坐标系:NED(北-东-地),X=北,Y=东,Z=下(-Z=高度)。
Metadata
Release files for yudeshi1314520-mcp-dd-simulation 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yudeshi1314520_mcp_dd_simulation-0.1.4.tar.gz | 63.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yudeshi1314520_mcp_dd_simulation-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 70.1 kB
Release files / yudeshi1314520_mcp_dd_simulation-0.1.4.tar.gz
| Download URL | yudeshi1314520_mcp_dd_simulation-0.1.4.tar.gz |
|---|---|
| Size | 63.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb330aa08f24c1079b872d1318ef68187fa314421da76638f46c77230ac34f4c
|
|
BLAKE2b-256 checksum How to use checksums |
ac2839deaee1b9a49102424824aa8ff5f9b1481aff53fd16d1ca841b9a256429
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / yudeshi1314520_mcp_dd_simulation-0.1.4-py3-none-any.whl
| Download URL | yudeshi1314520_mcp_dd_simulation-0.1.4-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
31c17a91af526b682e38161cbfa2a6bf44188fbb94bfbf29a4eb0aa53407161d
|
|
BLAKE2b-256 checksum How to use checksums |
ee59ae6b75272b0378fb077404148d486e888eeba10c07eb9ede44dc1f11dfea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|