Skip to main content

mcp-dd-simulation

MCP Server for DD Unity 6-DOF ballistic simulation.

通过 MCP 协议调用 DD_Unity.exe 弹道仿真引擎,支持 Claude Code、Claude Desktop 等任何兼容 MCP 的 AI 客户端。

前置条件

  1. 将 DD_Unity.exe 放在本地(需包含 --run-once 模式)
  2. 设置环境变量 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.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yudeshi1314520-mcp-dd-simulation 0.1.3
File Size Uploaded
yudeshi1314520_mcp_dd_simulation-0.1.3.tar.gz 63.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yudeshi1314520-mcp-dd-simulation 0.1.3
File Interpreter ABI Platform
yudeshi1314520_mcp_dd_simulation-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 70.0 kB

Release files / yudeshi1314520_mcp_dd_simulation-0.1.3.tar.gz

Download URL yudeshi1314520_mcp_dd_simulation-0.1.3.tar.gz
Size 63.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0f60c85637af25c75420aac4b4929a99900ae752b9be6a8b08946718576c7c3c
BLAKE2b-256 checksum
How to use checksums
6979752e3401f48cfd9cfd122b88b915ea32da8c1bb151194e4800aa0f45204f
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.3-py3-none-any.whl

Download URL yudeshi1314520_mcp_dd_simulation-0.1.3-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b851891630856fa58b5832845706056c2e5ba0005322adfe90cc288c349aad8
BLAKE2b-256 checksum
How to use checksums
3177b2a10b516d2e1f97616df6b44fafe8dea23b893452fc42b61d5ea88af510
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 history Release notifications | RSS feed

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.4

2 release files

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page