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.
What stays
Section titled “What stays”- Port 4100, for the API and the OPA endpoint — and now also for MCP, on
/mcp. - The image roles.
apiis a synonym ofserver;worker,webandalldo not change;mcpruns MCP alone,eodia-mcp, onMCP_PORT(4200 by default), relaying to the API atAPI_URL— exactly what themcpservice of a 0.6 compose file expects. - The job queue, in a
workerservice (withINPROCESS_WORKER: '0') as in the 0.6 compose file, or in the server withINPROCESS_WORKER: "1". - The environment variables, including
API_PORTandAPI_HOST(default:4100,0.0.0.0). - The public MCP address:
https://bi.example.com/mcp.
What can be simplified
Section titled “What can be simplified”None of the following is required.
-
The
mcpservice becomes optional, since the server already serves/mcp. To do without it, remove it from the compose file (and from Caddy’sdepends_on), removeMCP_URL: http://mcp:4200from thewebservice, and send/mcpto the server:handle /mcp* {reverse_proxy mcp:4200 {reverse_proxy api:4100 {flush_interval -1}} -
So does the
workerservice: withINPROCESS_WORKER: "1", the server runs the job queue itself. Keep theworkerservice if you prefer to separate the two. -
The repository’s compose file,
docker-compose.prod.yml, takes this shape: aserverservice (API, OPA, MCP and job queue),web, Trino callinghttp://server:4100/internal/opa/${OPA_SECRET}, and Caddy sending/api/*and/mcp*toserver:4100. If you switch to it, take theCaddyfilethat goes with it too.
After removing services, restart the stack with --remove-orphans to delete their old
containers.
What changes
Section titled “What changes”- In
allmode, the supervisor starts two processes,serverandweb, instead of four; the job queue runs in the server andWITH_MCPis no longer read. MCP no longer has a port of its own there: it answers on/mcp, ports 3100 and 4100. A client that targetedhttp://host:4200/mcpmoves tohttp://host:4100/mcp. - MCP over stdio. A client that ran
apps/mcp/src/server.ts --stdionow uses theeodia-mcp --stdiobinary, with the sameEODIA_URLandEODIA_TOKEN: see MCP server.
Upgrading
Section titled “Upgrading”-
Back up the catalog, and keep
SECRET_KEYwith 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 -
Pin the version:
IMAGE=eodia/insights:0.7.1, thendocker compose -f docker-compose.prod.yml pull— or rebuild the image from thev0.7.1tag (docker compose -f docker-compose.prod.yml build). -
Restart the stack:
Fenêtre de terminal docker compose -f docker-compose.prod.yml up -d
Checking
Section titled “Checking”-
The server answers.
https://bi.example.com/api/healthreturns{"ok":true,"trino":true};"trino": falsemeans the server cannot reach Trino. -
Trino reaches the server. Replace
apiwith 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/healthdocker 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.
-
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.localsees filtered rows and masked e-mails. -
MCP answers: an MCP client connects to
https://bi.example.com/mcpwith its token.
What’s new in 0.7
Section titled “What’s new in 0.7”- 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.