blender-optics-simulator

v0.24.4
io.github.emircbngl/blender-optics-simulator Checked 16 hours ago Published 4 months ago

Build, align & render a real optical bench in Blender; drivable by an AI agent over MCP.

Starts only with mcp<2 (written for an older SDK); the install commands pin it.

Values you need

VariableWhat it is
OPTICS_BRIDGE_PORToptional TCP port of the add-on's localhost bridge inside Blender (Optics > Simulation > Start MCP Bridge). Default: 9765
OPTICS_BRIDGE_HOSToptional Host of the add-on bridge. Default: 127.0.0.1

PyPI (uvx) discovery passed

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

Run in a terminal
claude mcp add blender-optics-simulator -- uvx --with 'mcp<2' blender-optics-mcp==0.24.4
Add to claude_desktop_config.json
{
  "mcpServers": {
    "blender-optics-simulator": {
      "args": [
        "--with",
        "mcp<2",
        "blender-optics-mcp==0.24.4"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "blender-optics-simulator": {
      "args": [
        "--with",
        "mcp<2",
        "blender-optics-mcp==0.24.4"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "blender-optics-simulator": {
      "args": [
        "--with",
        "mcp<2",
        "blender-optics-mcp==0.24.4"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.blender-optics-simulator]
command = "uvx"
args = ["--with", "mcp<2", "blender-optics-mcp==0.24.4"]

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: capabilities, get_state, build_example, trace_beam, diagnose, propose_corrections, inspect_beam, inspect_element, ….
  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