Skip to content

docs(mcp): platform-integrator runbook for delegated consent (auth gate)#342

Merged
initializ-mk merged 1 commit into
mainfrom
docs/mcp-delegated-consent-platform
Jul 19, 2026
Merged

docs(mcp): platform-integrator runbook for delegated consent (auth gate)#342
initializ-mk merged 1 commit into
mainfrom
docs/mcp-delegated-consent-platform

Conversation

@initializ-mk

Copy link
Copy Markdown
Contributor

What

Adds docs/mcp/delegated-consent.md — a platform-integrator runbook for switching MCP human-in-the-loop consent from DEFER to the #330 auth-required gate.

Written in response to a platform-team request: "how do we deploy type: user MCP servers and manage the approvals?" The existing configuration.md gate section covers the concept + config fields; this new doc is the operational how-to for the managing platform (a distinct audience), so it links rather than duplicates.

Contents

  • DEFER vs the auth gate — a comparison table so integrators migrate only the MCP-consent case and keep DEFER for per-action approval.
  • Deploy configauth.type: user + ref, platform.token_endpoint, required: false, and the runtime invariants.
  • Detection — task status → auth-required, the mcp_auth_required audit event (with the real field shape), the 10-minute default deadline.
  • Resume — authenticated POST /mcp/consent {subject, server, granted}, the 200/404/400/409 codes, the grant-before-granted:true ordering, and the no-token contract.
  • Embedding — the SetConsentDeliverer seam for push delivery.
  • Durable custody — the SubjectTokenStore swap for cross-replica grants.
  • Migration checklist.

Verification

  • Every relative link + the configuration.md anchor resolve (checked against the filesystem).
  • All field names, endpoints, status codes, and audit-event strings traced to forge-cli/runtime/mcp_authgate.go, forge-core/types/config.go, and forge-core/auth/middleware.go.
  • Docs-only; no code touched.

Add docs/mcp/delegated-consent.md — the operational guide for a managing
platform to switch MCP human-in-the-loop consent from DEFER to the #330
auth-required gate. Covers the DEFER-vs-gate distinction, the type: user
forge.yaml deploy config, detecting a parked call (task auth-required +
mcp_auth_required audit event), and driving resume via authenticated
POST /mcp/consent {subject, server, granted} — including the
grant-before-resume ordering and the no-token contract.

Complements the existing configuration.md concept section (linked, not
duplicated); linked from the MCP index Related docs.
@initializ-mk
initializ-mk merged commit 89a85cd into main Jul 19, 2026
10 checks passed
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