Repository navigation
feat(mcp): keep the MCP server off until MCP_SERVER_ENABLED is set - #21349
Conversation
PR SummaryOverview GMS now exposes the flag in
Tests cover the resolver, GMS config servlet, feature gate behavior, and config parsing; the new flag is registered in the properties classification test. Reviewed by Cursor Bugbot for commit edd5c90. Bugbot is set up for automated code reviews on this repo. Configure here. |
Smart test selectionpytest smoke testsMode: shadow. The selection below is computed but not applied; this PR still runs the default matrix (
Medium confidence: a wrong tag means tests are skipped, so check the tags above against what this PR touches. Selected scopes (6 files or classes, 54 tests)
Add the commit |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
✅ Meticulous spotted 0 visual differences across 932 screens tested: view results. Meticulous evaluated ~18 hours of user flows which tested 100% of the executable lines edited in your PR. Expected differences? Click here. Last updated for commit |
CI's package check compares find_packages with find_namespace_packages, and the gql directory had no __init__.py. Make it a package and declare its .gql files as its own package data. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Installing metadata-ingestion and the two packages from source resolves their build requirements from the configured index. In CI that index needs the netrc secret, which only the lock install step mounted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
FastMCP 4.2.5 serves subscriptions/listen, and on the 2026-07-28 protocol the SDK advertises listChanged whenever that handler is registered, overriding the notification options. Drop the handler: the server never sends change notifications, and an in-process bus can't reach clients on another replica. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
master now adds its own placeholder right after __SYSTEM_CLIENT_SECRET__. Keeping ours one line further down lets both changes merge without a conflict. The replacements are independent, so their order doesn't matter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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(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:
What this does
DataHub's built-in MCP server stays off until it is released. One GMS feature
flag, MCP_SERVER_ENABLED (featureFlags.mcpServerEnabled), default false,
controls both the backend and the UI:
authentication.enabled, and in the app config's feature flags.
answers 404 (mcp_disabled) on /mcp while it is off. /health stays up. A GMS
from before the flag doesn't report it; that pairing is deliberate, so MCP
stays on there. An unreadable /config gives a 503, like the other checks
that need GMS.
the MCP settings page and home page module while it is off.
The datahub-ai-service container can still run with the flag off; it serves
only /health until the flag is turned on and GMS restarts.
Testing
Python tests for both packages (the gate: 404 while off, on for a GMS without the flag, 503 when /config can't be read); AppConfigResolverTest and ConfigServletTest. Checked live with the flag off (/mcp 404) and on.
Checklist
🤖 Generated with Claude Code