MCP server (uigraph-mcp)
The MCP server is optional. It is not part of the compose stack; it ships as the uigraph/uigraph-mcp image and is run separately. When you deploy it, give it these variables. The four URLs are required and have no defaults; the server exits if any is missing.
| Variable | Required | Description |
|---|---|---|
UIGRAPH_API_URL | Yes | In-network base URL of uigraph-api (e.g. http://uigraph-api:8080). |
UIGRAPH_GATEWAY_URL | Yes | In-network base URL of uigraph-gateway (e.g. http://uigraph-gateway:8080), used to convert diagrams to Mermaid. |
UIGRAPH_FRONTEND_URL | Yes | Base URL of the UIGraph frontend, used for the login broker. |
UIGRAPH_MCP_PUBLIC_URL | Yes | Public base URL of this MCP server, used to build the auth callback. |
PORT | No | HTTP listen port. Defaults to 8080. |
MCP_SERVER_NAME | No | MCP server name. Defaults to uigraph-mcp. |
MCP_SERVER_VERSION | No | MCP server version. Defaults to 0.1.0. |
Once the server is running, clients connect to it through the @uigraph/mcp proxy.