Skip to content

docs(acceptance): MCP broker DCR client — Plan / Interface - #1260

Merged
jhrozek merged 1 commit into
mainfrom
plan-only/mcp-broker-dcr-client
Sep 8, 2026
Merged

jhrozek merged 1 commit into
mainfrom
plan-only/mcp-broker-dcr-client

Conversation

@jhrozek

@jhrozek jhrozek commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Summary

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 (authserver.OAuth2UpstreamRunConfig.DCRConfig) so
an 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: Split but landed implementation
directly, 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.

Development stage

  • Plan / Interface — behavioral and exact-interface contract; no implementation

Contract linkage

  • Acceptance plan: docs/acceptance/mcp-broker-dcr-client.md
  • Human decisions resolved and recorded: Yes (3/3, all checked with recorded decisions)
  • Plan / Interface PR: this PR
  • Approved commit baseline: n/a until merged
  • Combined/exemption rationale: n/a (Split)

Interface conformance

Exact interface contract under review (full detail in the plan's own
Interface contract section):

  • gRPC/protobuf: none.
  • Exported Go APIs: permconfig.MCPOAuthClientProfile gains a dcr variant + new MCPDCRClientProfile; mcpbroker.ToolHiveOAuth and toolhive_construction.go's toolHiveUpstream gain DCR conversion (a restructuring of its previously-unconditional ClientID-required guard, not just an additive field).
  • Tool schemas: none.
  • CLI/config: new mcp.servers[].auth.oauth.client.mode: dcr with dcr: {discovery_url} (discovery-URL-only for v1) and a required explicit upstream: {mode: oauth2, ...} (a bare issuer is rejected for dcr at config-validation time, since ToolHive's library has no DCR-on-OIDC-upstream path). Mirrored in the Helm chart schema/templates and internal/configgen's generated reference.
  • Events/persistence: none — DCR credentials live entirely in ToolHive's own existing storage.
  • Security/authority: DCR client identity is minted by the upstream at registration time rather than operator-asserted; HTTPS-only, no private-IP/insecure-HTTP escape hatch, matching the existing OAuth invariant.
  • Compatibility/migration: additive only; preregistered/cimd unchanged.

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_endpoint alternative
to discovery_url.

Issue relationship

No tracking issue yet.

Type of change

  • Behavioral/interface plan
  • Documentation/process

Test plan

Baseline checks

  • Acceptance-plan checker (bash .claude/skills/to-acceptance-plan/scripts/check-acceptance-plan.sh docs/acceptance/mcp-broker-dcr-client.md)
  • Markdown changed: docs generation/link checks (ADR-uniqueness/stale-slug Go tests; matlatl check . --strict — 0 broken links/anchors/orphans/unreachable)
  • Linting/tests — no code in this PR, plan/docs only

Changes

File Change
docs/acceptance/mcp-broker-dcr-client.md New acceptance plan (2 scenarios, 8 ACs, 3 resolved Human decisions)
docs/adr/0314-mcp-broker-dcr-client.md New ADR
docs/acceptance/README.md, docs/adr/README.md Index entries

User-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.

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]>
@jhrozek
jhrozek merged commit a6796cc into main Sep 8, 2026
26 checks passed
@jhrozek
jhrozek deleted the plan-only/mcp-broker-dcr-client branch September 8, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant