Skip to content

Upgrading to 0.7

0.7 replaces the Node back end — the API, the worker and the MCP server — with a single server, eodia-server, written in Rust. It listens on the same port as the former API, 4100, and serves the API, the OPA endpoint that Trino queries, MCP on /mcp and the job queue.

For a 0.6 instance, the upgrade happens without touching the configuration: a 0.6 compose file — api, worker, web and mcp services, Trino calling http://api:4100/internal/opa/…, Caddy sending /api/* to api:4100 and /mcp* to mcp:4200 — runs as it is. Your data does not move: the catalog, permissions, sources, questions and dashboards are carried over as they are, and the server applies the catalog migrations itself when it starts.

  • Port 4100, for the API and the OPA endpoint — and now also for MCP, on /mcp.
  • The image roles. api is a synonym of server; worker, web and all do not change; mcp runs MCP alone, eodia-mcp, on MCP_PORT (4200 by default), relaying to the API at API_URL — exactly what the mcp service of a 0.6 compose file expects.
  • The job queue, in a worker service (with INPROCESS_WORKER: '0') as in the 0.6 compose file, or in the server with INPROCESS_WORKER: "1".
  • The environment variables, including API_PORT and API_HOST (default: 4100, 0.0.0.0).
  • The public MCP address: https://bi.example.com/mcp.

None of the following is required.

  • The mcp service becomes optional, since the server already serves /mcp. To do without it, remove it from the compose file (and from Caddy’s depends_on), remove MCP_URL: http://mcp:4200 from the web service, and send /mcp to the server:

    handle /mcp* {
    reverse_proxy mcp:4200 {
    reverse_proxy api:4100 {
    flush_interval -1
    }
    }
  • So does the worker service: with INPROCESS_WORKER: "1", the server runs the job queue itself. Keep the worker service if you prefer to separate the two.

  • The repository’s compose file, docker-compose.prod.yml, takes this shape: a server service (API, OPA, MCP and job queue), web, Trino calling http://server:4100/internal/opa/${OPA_SECRET}, and Caddy sending /api/* and /mcp* to server:4100. If you switch to it, take the Caddyfile that goes with it too.

After removing services, restart the stack with --remove-orphans to delete their old containers.

  • In all mode, the supervisor starts two processes, server and web, instead of four; the job queue runs in the server and WITH_MCP is no longer read. MCP no longer has a port of its own there: it answers on /mcp, ports 3100 and 4100. A client that targeted http://host:4200/mcp moves to http://host:4100/mcp.
  • MCP over stdio. A client that ran apps/mcp/src/server.ts --stdio now uses the eodia-mcp --stdio binary, with the same EODIA_URL and EODIA_TOKEN: see MCP server.
  1. Back up the catalog, and keep SECRET_KEY with the backup:

    Fenêtre de terminal
    docker compose -f docker-compose.prod.yml exec catalog pg_dump -U eodia eodia > catalog-before-0.7.sql
  2. Pin the version: IMAGE=eodia/insights:0.7.1, then docker compose -f docker-compose.prod.yml pull — or rebuild the image from the v0.7.1 tag (docker compose -f docker-compose.prod.yml build).

  3. Restart the stack:

    Fenêtre de terminal
    docker compose -f docker-compose.prod.yml up -d
  1. The server answers. https://bi.example.com/api/health returns {"ok":true,"trino":true}; "trino": false means the server cannot reach Trino.

  2. Trino reaches the server. Replace api with your service’s name if it differs:

    Fenêtre de terminal
    docker compose -f docker-compose.prod.yml exec trino curl -s http://api:4100/api/health
    docker compose -f docker-compose.prod.yml logs --since 10m trino | grep -i "OPA backend"

    The first command answers with the same JSON; the second must print nothing.

  3. Permissions apply. Sign in with an account subject to a row rule or a column mask, and open a question on the table concerned: only its rows appear, and masked columns are masked. On the demo instance, analyste@eodia.local sees filtered rows and masked e-mails.

  4. MCP answers: an MCP client connects to https://bi.example.com/mcp with its token.

  • A server rewritten in Rust. The OPA endpoint that Trino queries before every statement answers about 10 times faster (24,263 decisions per second against 2,579), and the server uses about 40 MB of memory instead of 225.
  • A custom measure in “Summarize”: an SQL expression as a measure of a visual-editor question, for anyone with SQL access to the source.
  • Customizable gauges: style (meter, half circle, ring…), thickness, color zones, scale and label.
  • Legend options: position, alignment, symbol, and whether a click hides a series.
  • Options arranged in accordions, the rarer ones folded.
  • Redesigned dashboard tabs, with a plainer underline.
  • Up-to-date dependencies: TypeScript 7, Next.js 16.4.

eodia insights is free software by Eodia.