Add direct-mode bundle support for AI Gateway mcp_service - #6633
Open
alex-khakhlyuk wants to merge 5 commits into
Open
alex-khakhlyuk wants to merge 5 commits into
alex-khakhlyuk wants to merge 5 commits into
Conversation
alex-khakhlyuk
force-pushed
the
aigov-dabs-mcp-service
branch
from
September 11, 2026 13:29
88d488b to
c7cd499
Compare
Contributor
Approval status: pending
|
Collaborator
Integration test reportCommit: 0dbe249
|
| reason: id_field | ||
| - field: mcp_service_id | ||
| reason: id_field | ||
| ignore_remote_changes: |
alex-khakhlyuk
force-pushed
the
aigov-dabs-mcp-service
branch
from
September 14, 2026 12:11
0a2dc6f to
f792041
Compare
Second of a stacked split of #6410 (databricks/cli), stacked on the model_service PR. Adds the direct-engine bundle resource for the AI Gateway MCP service securable (mcp_services): config/resource + dresources CRUD, testserver, acceptance (basic + remote-delete + bind) and an invariant config, plus registration and regenerated schema. All SDK struct literals set every field to satisfy exhaustruct; mcp_services added to the TF-lifecycle ignore list and the statemgmt full-resource-coverage fixtures. Direct engine only. Co-authored-by: Isaac <no-reply@databricks.com>
Adds a Cloud=true lifecycle test for mcp_services, matching model_services and model_provider_services. An MCP service must point at a pre-existing UC connection hosting the MCP server (config.source_connection), and there is no bundle `connections` resource to deploy it as a dependency, so the script creates a bearer-auth connection out-of-band on cloud (guarded by CLOUD_ENV) and tears it down via trap. Bearer auth with a placeholder host avoids the OAuth/DCR reachability probe the backend runs at create time for MCP connections. The mock testserver doesn't validate source_connection, so the connection is only created on the real-workspace run. basic and remote-delete opt out with Cloud=false (they inspect the recorded request stream / use a fixed out-of-band delete that can't run on cloud). Co-authored-by: Isaac <no-reply@databricks.com>
Follow-up to the mcp_service support, mirroring #6654 for model_services now that #6618 enabled it. Added catalog.McpService to apitypes.yml so the generator reads field behaviors from the response type (config.* paths), removed the hand-written config.source_connection.is_deleted override from resources.yml, and regenerated resources.generated.yml. The suppression is unchanged, just auto-derived from the OpenAPI schema instead of hand-listed. Co-authored-by: Isaac <no-reply@databricks.com>
…t_tag) Main upgraded databricks-sdk-go v0.177 -> v0.178, which is the GA-sync SDK that dropped `owner` (now effective_owner only) and the request_tag rate-limit feature from the AI Gateway securable types. Adapted the mcp_service resource to v0.178: removed the stale Owner field from mcpServiceBody, and regenerated the schema/validation/refschema/pydabs outputs. RATE_LIMIT_KEY_REQUEST_TAG (and the request_tag_key/value fields) are now absent from mcp_services and model_services alike, matching the v0.178 spec. Co-authored-by: Isaac <no-reply@databricks.com>
alex-khakhlyuk
force-pushed
the
aigov-dabs-mcp-service
branch
from
September 14, 2026 16:52
e801c3f to
6ad6378
Compare
…test
The earlier cloud test created a metastore-level UC connection out-of-band,
which failed in CI: the deco service principal lacks metastore CREATE
CONNECTION, and under `bash -euo pipefail` the suppressed failure aborted the
script before deploy ("No active deployment found to destroy!").
Switch to a SCHEMA-SCOPED connection (parent schemas/main.default), which needs
only schema-level privileges the deploy SP already has. Schema-level connections
can't set is_mcp_connection (metastore-only), but the mcp_service accepts a
plain HTTP connection as its source_connection (validated end to end against a
staging workspace: create schema-scoped connection -> deploy -> no-drift plan ->
destroy). The reference uses the 3-part form connections/{catalog}.{schema}.{name}.
Also adds temporary debug output around `connections create` (silent on success;
prints the error on failure) so a CI failure surfaces the real cause instead of
being swallowed. Remove once the cloud run is confirmed green.
Co-authored-by: Isaac <no-reply@databricks.com>
alex-khakhlyuk
force-pushed
the
aigov-dabs-mcp-service
branch
from
September 14, 2026 19:21
b0fb58b to
0dbe249
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Second of a stacked split of #6410 (databricks/cli), stacked on the model_service PR. Adds the direct-engine bundle resource for the AI Gateway MCP service securable (mcp_services): config/resource + dresources CRUD, testserver, acceptance (basic + remote-delete + bind) and an invariant config, plus registration and regenerated schema. All SDK struct literals set every field to satisfy exhaustruct; mcp_services added to the TF-lifecycle ignore list and the statemgmt full-resource-coverage fixtures. Direct engine only.
Changes
Why
Tests