Claude Code
3 min
configure the claude code cli https //docs claude com/en/docs/claude code to use the litmus mcp server over sse 1\ run the server docker run d name litmus mcp server \\ p 8000 8000 \\ ghcr io/litmusautomation/litmus mcp server\ latest 2\ create or edit / claude/mcp json run claude code from a directory that has access to a config file at / claude/mcp json { "mcpservers" { "litmus mcp server" { "type" "sse", "url" "http //localhost 8000/sse", "headers" { "edge url" "${edge url}", "edge api client id" "${edge api client id}", "edge api client secret" "${edge api client secret}", "nats source" "${nats source}", "nats port" "${nats port 4222}", "nats user" "${nats user}", "nats password" "${nats password}", "influx host" "${influx host}", "influx port" "${influx port 8086}", "influx db name" "${influx db name tsdata}", "influx username" "${influx username}", "influx password" "${influx password}" } } } } the ${var} syntax reads from your shell environment, so you can keep secrets out of the config file by exporting them before launching claude code 3\ verify inside claude code, ask the agent to list available tools you should see the full litmus tool set (devicehub, nats, influxdb, digital twins, lem, etc ) if you don't, check docker logs litmus mcp server for sse connection attempts curl http //localhost 8000/health returns {"status" "ok"} the headers in mcp json resolve to non empty values ( echo "$edge url" ) reference anthropic model context protocol in claude code https //docs anthropic com/en/docs/agents and tools/mcp headers reference #