DualSPHysics MCP

v0.2.0
io.github.vegetableno1/dualsphysics Checked 3 days ago Published 2 months ago

Agent toolchain for the DualSPHysics SPH solver: case creation, runs, post-processing, validation.

Values you need

VariableWhat it is
DSPH_GENCASEoptional Path to the GenCase_linux64 executable (auto-discovered if unset)
DSPH_SOLVERoptional Path to the DualSPHysics CPU solver executable (auto-discovered if unset)
DSPH_PARTVTKoptional Path to the PartVTK_linux64 executable (auto-discovered if unset)
DSPH_MEASURETOOLoptional Path to the MeasureTool_linux64 executable (auto-discovered if unset)
DSPH_JOBS_DIRoptional Directory for simulation job outputs (defaults to ./jobs)
DSPH_OMP_THREADSoptional OpenMP threads for the CPU solver (defaults to CPU count)

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add dualsphysics -- uvx dualsphysics-mcp==0.2.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "dualsphysics": {
      "args": [
        "dualsphysics-mcp==0.2.0"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "dualsphysics": {
      "args": [
        "dualsphysics-mcp==0.2.0"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "dualsphysics": {
      "args": [
        "dualsphysics-mcp==0.2.0"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.dualsphysics]
command = "uvx"
args = ["dualsphysics-mcp==0.2.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: check_environment, create_case, edit_case, describe_case, gencase, run_case, job_status, partvtk, ….
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json