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.0

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

Built distribution (wheel)

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

Release files / yudeshi1314520_mcp_dd_simulation-0.1.0-py3-none-any.whl

Download URL yudeshi1314520_mcp_dd_simulation-0.1.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
716307fb536ef5f9f7a51ab2b6c43294057fe90bc881707580a65735c53b28cd
BLAKE2b-256 checksum
How to use checksums
ea075ab5b41de238c1d1f3f1a72db3cc51400ae949f8cef224b4915ba1bd65f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

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

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

This release

0.1.0 This release

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