feat(docker): run datahub-ai-service in quickstart and datahub-dev
Stack. This is one PR in a series that adds a built-in MCP server to DataHub Core. It is based on na--ai-service-image-ci (the previous PR in the stack); review only its own commit. This PR changes GMS, the frontend, Docker or CI, not only the new Python packages. Everything user-facing is behind a GMS feature flag, MCP_SERVER_ENABLED, off by default (added in #21349).
Stack so far:
- #21332
- #21333
- #21334
- #21335
- #21336
- #21337
- #21338
- #21339
- #21340
- #21341
- #21342
- #21343
- #21344
- #21345
- #21346
- #21347
- #21348
- #21349
- #21350
- #21351
- #21352 ā this PR
- #21353
- #21435
- #21436
- #21437
- #21438
- #21439
- #21440
- #21441
- #21442
- #21443
- #21444
- #21445
- #21447
- #21501
- #21502
- #21503
- #21504
- #21505
- #21506
- #21507
- #21508
- #21509
- #21510
- #21511
- #21512
What this does
Quickstart profiles now start datahub-ai-service, and the frontend proxies
http://localhost:9002/mcp to it, so an MCP client needs only the URL (no
token while GMS auth is off).
The plain quickstart profile leaves it out for now: datahub docker quickstart runs that profile with the latest release's images, and no
release has published datahub-ai-service yet, so pulling it would stop the
whole stack from starting. It joins that profile once a release ships the
image. The other quickstart profiles (smoke tests, run-quickstart.sh) and
the debug profiles run it.
- docker/profiles/docker-compose.ai.yml: the service publishes 9005 on the
host's loopback only; remote clients go through the frontend. No
depends_on (it answers 503 until GMS is up) and no compose healthcheck
(the image has one). It trusts X-Forwarded-Host only from the frontend. - The frontend gets DATAHUB_AI_SERVICE_URL=http://datahub-ai-service:9005.
- Debug profiles (all but debug-min) run the checkout's datahub-ai-service and
datahub-core-mcp-tools sources over the installed packages, so a restart picks
up changes; the image builds with the other Python services. - generateQuickstartComposeConfig keeps the DATAHUB_MAPPED_AI_PORT,
DATAHUB_AI_MCP_ENABLED and DATAHUB_AI_IMAGE overrides, and the
quickstart compose check fails if any user override is lost. - The image joins the release bake (multi-arch, tagged and published with
the other images) and every quickstart config whose compose profile runs
it. CI's image plan builds it when packages/datahub-ai-service,
packages/datahub-core-mcp-tools, docker/datahub-ai-service, metadata-ingestion
or the shared uv/SSL snippets change, and otherwise reuses the quickstart
tag. The security scan covers it like the other images. - datahub-dev: DATAHUB_MAPPED_AI_PORT in the slot port table (and so in
remote tunnels); changes under either package rebuild only
datahub-ai-service (rebuild ai). AGENTS.md maps both packages to the
container.
Tested with datahub-dev on a local OSS instance (GMS auth off): the service
comes up healthy from the compose file, and through the frontend legacy
and modern MCP clients call get_me with no token as the system user; a
foreign Host/Origin gets 403, ?token= 400 and OPTIONS 405.
Testing
datahub-dev start brought the service up healthy from compose on the OSS instance; through :14002/mcp legacy + modern clients called get_me with no token; 403 / 400 / 405 checks; datahub-dev unit tests (26); resolver scenario tests (58); quickstart compose check.
Checklist
- The PR conforms to DataHub's Contributing Guideline (particularly PR Title Format)
- Tests for the changes have been added/updated (if applicable)
- Docs related to the changes have been added/updated (if applicable). The MCP docs come later in the stack.
- For any breaking change/potential downtime/deprecation/big changes an entry has been made in Breaking Changes. The release notes come later in the stack.
š¤ Generated with Claude Code