Skip to main content

Litmus Edge

Litmus does not host this server. You run their container, and Willow calls it over streamable HTTP at /mcp. The Litmus Edge card with the Official badge fills in http://localhost:8000/mcp. That address is on the computer's loopback interface, so Willow marks the server Local and reaches it through @mcp-s/mcp on each person's machine. See Quick Launch and Local MCP.

The server is stateless. Every call reads the Litmus Edge URL and an OAuth2 API client from request headers. The card leaves those as {{edgeUrl}}, {{clientId}}, and {{clientSecret}}. They are not fields on the card until you turn on setup keys. See Headers Reference.

Run the server​

On the computer that will run the container:

docker run -d --name litmus-mcp-server -p 8000:8000 ghcr.io/litmusautomation/litmus-mcp-server:latest

The image is built for linux/amd64. On ARM64, add --platform linux/amd64. Litmus's ARM example uses the main tag.

Streamable HTTP is http://<host>:8000/mcp. Port 9000 is the container's local web console. It has no login. Willow uses port 8000.

When other machines call the server, put TLS in front of port 8000. See HTTPS Deployment.

API client​

In Litmus Edge, open System → Access Control and create an OAuth2 API client. Keep the client ID and secret. The Edge URL includes https://.

Connect in Willow​

  1. Go to MCP Servers → + Add MCP server, open the Litmus Edge card with the Official badge, and click + Use.
  2. The URL is already http://localhost:8000/mcp. Leave Run locally on each person's machine on when that computer runs the container. For one shared container, open MCP configuration on the Setup tab and set url to https://<host>/mcp. Turn Local MCP off. On a server that already exists, that switch is Settings → Proxy configuration → Local MCP.
  3. Keep Personal API keys.
  4. Turn on Enable Setup Keys. Add three keys. The identifier has to match the header placeholder:
    • Display name Edge URL, identifier edgeUrl
    • Display name Client ID, identifier clientId
    • Display name Client secret, identifier clientSecret
  5. Leave the headers as the card filled them in. EDGE_URL is {{edgeUrl}}, EDGE_API_CLIENT_ID is {{clientId}}, and EDGE_API_CLIENT_SECRET is {{clientSecret}}.
  6. Assign groups and Publish.

A local server also needs Node.js on that computer, so Willow's local client can start with npx. See Local MCP.

Each person​

When the server is local, the container is running on that computer. When it is shared, that computer can open the URL in MCP configuration.

Connect to the server and paste the Edge URL (with https://), the client ID, and the client secret. Everyone can paste the same API client, or each person can use their own.

Live values, time series, and Edge Manager​

The card sends the three Edge headers. Litmus reads any other credential from headers on the same request. See Headers Reference.

  • A NATS subscription needs a token from System → Access Control → Tokens, sent as NATS_USER and NATS_PASSWORD. Litmus derives the broker from EDGE_URL when NATS_SOURCE is omitted. Set NATS_SOURCE (IP only, no scheme) when the broker is on another address. Listing topic names does not need the token.
  • Time series needs DataHub credentials in INFLUX_USERNAME and INFLUX_PASSWORD. Allow port 8086/TCP under System → Network → Firewall, and make InfluxDB reachable from the MCP server. Litmus derives the host from EDGE_URL when INFLUX_HOST is omitted.
  • Litmus Edge Manager calls need EDGE_MANAGER_URL (with https://) and EDGE_API_TOKEN.

Add those headers under MCP configuration. Use a {{placeholder}} and a setup key with the same identifier when each person pastes the value.

Troubleshooting​

Willow asks for one API key. Enable Setup Keys is off, so Willow asks for a single key and leaves EDGE_URL, EDGE_API_CLIENT_ID, and EDGE_API_CLIENT_SECRET unfilled. Turn it on and add edgeUrl, clientId, and clientSecret.

The gateway cannot open the server. url is still http://localhost:8000/mcp while the container runs somewhere else, or Local MCP is on for a shared host. Set url to the address that reaches the container. For a shared server, turn Local MCP off.

Docker cannot start the image on ARM64. The image is linux/amd64. Add --platform linux/amd64 to the docker run command.

Additional resources​