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.2
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.2.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yudeshi1314520_mcp_dd_simulation-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.5 kB
Release files / yudeshi1314520_mcp_dd_simulation-0.1.2.tar.gz
| Download URL | yudeshi1314520_mcp_dd_simulation-0.1.2.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e7aca6ffa0b0714208c5deceb10ccb3c64e6dd8c4454b205b3847b01ee9f2e3
|
|
BLAKE2b-256 checksum How to use checksums |
4b1615495023e10426fcbdcf70a8019f53c5da40ef6112e15ddaf3d437ecade6
|
| 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.2-py3-none-any.whl
| Download URL | yudeshi1314520_mcp_dd_simulation-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e91ba45762513c2d0eafeebc59e8f08ab51760a9221f39a1ac8ab19bc47d538c
|
|
BLAKE2b-256 checksum How to use checksums |
7451d70481a61a587cb97f990ccc055caa226c655b0ea47cf05cd87872c811ae
|
| 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}
|