Repository navigation
test(smoke): MCP through the frontend's /mcp route - #21353
Conversation
PR SummaryOverview Quickstart CI/smoke turns on Server/packaging tweaks for that path: Reviewed by Cursor Bugbot for commit 66f9777. 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 (
Selected scopes (81 files or classes, 378 tests)
Add the commit |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6c43062. Configure here.
6c43062 to
aa97685
Compare
2b8bcd6 to
78cc2b3
Compare
Smoke tests for datahub-ai-service behind the frontend, in whichever GMS auth mode the stack runs (read from GMS /config): - Legacy (initialize first) and modern stateless clients list tools and call get_me, acting as the admin with a PAT when auth is on and as the system user when it is off. - Auth on: no token or a garbage one gets 401 with WWW-Authenticate. - Auth off: no token is needed, and a request with a foreign Host and Origin (DNS rebinding) gets 403. A small requests-based JSON-RPC client handles both protocol families and JSON or SSE responses, so the suite needs no new dependency. Ran locally against a datahub-dev OSS instance with GMS auth off and on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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--quickstart-ai-service(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
Smoke tests for datahub-ai-service behind the frontend, in whichever GMS
auth mode the stack runs (read from GMS /config):
call get_me, acting as the admin with a PAT when auth is on and as the
system user when it is off.
Origin (DNS rebinding) gets 403.
A small requests-based JSON-RPC client handles both protocol families and
JSON or SSE responses, so the suite needs no new dependency.
Ran locally against a datahub-dev OSS instance with GMS auth off and on.
Testing
Ran against the datahub-dev OSS instance with GMS auth off (4 pass, 1 skip) and on (4 pass, 1 skip).
Checklist
🤖 Generated with Claude Code