Repository navigation
docs(acceptance): MCP broker DCR client — Plan / Interface - #1260
Merged
Merged
Conversation
Plan/Interface contract for a third mcp.servers[].auth.oauth.client.mode (dcr), exposing ToolHive's existing RFC 7591 Dynamic Client Registration upstream-client support so an operator can point mecak8s at a protected MCP upstream without a preregistered client or a hosted CIMD document. Split delivery per ADR 0306: this is the Plan / Interface PR only, no implementation. All 3 Human decisions are resolved and recorded. Co-Authored-By: Claude Sonnet 5 <[email protected]>
8 of 10 tasks
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.
Summary
Plan/Interface contract for a third
mcp.servers[].auth.oauth.client.mode(
dcr), exposing ToolHive's existing RFC 7591 Dynamic Client Registrationupstream-client support (
authserver.OAuth2UpstreamRunConfig.DCRConfig) soan operator can point mecak8s at a protected MCP upstream (e.g. a
ToolHive-hosted connector gateway) whose authorization server supports DCR,
without hand-registering a client or hosting a CIMD document.
This PR is plan + ADR only, split out from #1244 per review feedback
(JAORMX's blocker):
the original PR declared
Delivery: Splitbut landed implementationdirectly, skipping the required separate Plan/Interface review for
substantive interface- and security-bearing work (new operator config
surface + a new OAuth/DCR trust relationship). This PR is that missing
first step. #1244 will be rebased onto this PR's merged commit and reopened
as the Implementation PR once this one lands.
docs/acceptance/mcp-broker-dcr-client.mddocs/adr/0314-mcp-broker-dcr-client.md— reconciles this with ADR 0219/0220's prior DCR exclusion (that exclusion targeted the go-sdk's non-durable per-flow DCR; ToolHive'spkg/auth/dcrresolver has its own durable registration cache, which is the gate 0219/0220 said was missing)Development stage
Contract linkage
docs/acceptance/mcp-broker-dcr-client.mdInterface conformance
Exact interface contract under review (full detail in the plan's own
Interface contract section):
permconfig.MCPOAuthClientProfilegains adcrvariant + newMCPDCRClientProfile;mcpbroker.ToolHiveOAuthandtoolhive_construction.go'stoolHiveUpstreamgain DCR conversion (a restructuring of its previously-unconditionalClientID-required guard, not just an additive field).mcp.servers[].auth.oauth.client.mode: dcrwithdcr: {discovery_url}(discovery-URL-only for v1) and a required explicitupstream: {mode: oauth2, ...}(a bareissueris rejected fordcrat config-validation time, since ToolHive's library has no DCR-on-OIDC-upstream path). Mirrored in the Helm chart schema/templates andinternal/configgen's generated reference.preregistered/cimdunchanged.Deferred (see plan's Human decisions + Out of scope): DCR initial-access-token
support (confirmed with ToolHive this is a clean scope cut, not a
caching-gap workaround), and an explicit
registration_endpointalternativeto
discovery_url.Issue relationship
No tracking issue yet.
Type of change
Test plan
Baseline checks
bash .claude/skills/to-acceptance-plan/scripts/check-acceptance-plan.sh docs/acceptance/mcp-broker-dcr-client.md)matlatl check . --strict— 0 broken links/anchors/orphans/unreachable)Changes
docs/acceptance/mcp-broker-dcr-client.mddocs/adr/0314-mcp-broker-dcr-client.mddocs/acceptance/README.md,docs/adr/README.mdUser-facing change
None yet — this is the design/interface contract only; implementation follows in a separate PR once this merges.
Special notes for reviewers
The already-implemented (but not-yet-properly-sequenced) code lives in
#1244, which will be rebased onto this PR's merged commit and reopened as
the Implementation PR referencing this one, per the review feedback there.