Eclipse Ditto

v0.1.1
io.github.nagarjunr/eclipse-ditto Checked 11 hours ago Published 4 months ago

MCP server for the Eclipse Ditto digital twin HTTP API (things, policies, connections, more).

Values you need

VariableWhat it is
DITTO_BASE_URLrequired Base URL of the Ditto HTTP API, e.g. http://localhost:8080
DITTO_USERNAMEoptional Basic auth username for the Things/Policies/Messages/Search API
DITTO_PASSWORDoptional secret Basic auth password for the Things/Policies/Messages/Search API
DITTO_BEARER_TOKENoptional secret Bearer token, used instead of Basic auth for the same API
DITTO_DEVOPS_USERNAMEoptional Basic auth username for the separate DevOps/Connections realm
DITTO_DEVOPS_PASSWORDoptional secret Basic auth password for the separate DevOps/Connections realm

PyPI (uvx) discovery passed

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

Run in a terminal
claude mcp add eclipse-ditto -e 'DITTO_BASE_URL=<DITTO_BASE_URL>' -- uvx eclipse-ditto-mcp-server==0.1.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "eclipse-ditto": {
      "args": [
        "eclipse-ditto-mcp-server==0.1.1"
      ],
      "command": "uvx",
      "env": {
        "DITTO_BASE_URL": "<DITTO_BASE_URL>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "eclipse-ditto": {
      "args": [
        "eclipse-ditto-mcp-server==0.1.1"
      ],
      "command": "uvx",
      "env": {
        "DITTO_BASE_URL": "<DITTO_BASE_URL>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "DITTO_BASE_URL",
      "id": "ditto-base-url",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "eclipse-ditto": {
      "args": [
        "eclipse-ditto-mcp-server==0.1.1"
      ],
      "command": "uvx",
      "env": {
        "DITTO_BASE_URL": "${input:ditto-base-url}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.eclipse-ditto]
command = "uvx"
args = ["eclipse-ditto-mcp-server==0.1.1"]
env = { "DITTO_BASE_URL" = "<DITTO_BASE_URL>" }

For AI agents

  1. Ask the user for: DITTO_BASE_URL. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: list_things, count_things, get_things, get_thing, put_thing, patch_thing, delete_thing, get_thing_policy_id, ….
  5. 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