MCPcopy Create free account
hub / github.com/docker/docker-agent / WithUnmanagedOAuthRedirectURI

Function WithUnmanagedOAuthRedirectURI

pkg/runtime/runtime.go:352–356  ·  view source on GitHub ↗

WithUnmanagedOAuthRedirectURI configures the redirect_uri the runtime advertises when running MCP server OAuth flows in unmanaged mode (i.e. when WithManagedOAuth(false) is set). When set, docker-agent generates state + PKCE + DCR in-process and emits an elicitation carrying the `authorize_url` + `s

(uri string)

Source from the content-addressed store, hash-verified

350// When empty, the runtime falls back to the legacy unmanaged contract
351// where the client performs the OAuth flow and returns an access token.
352func WithUnmanagedOAuthRedirectURI(uri string) Opt {
353 return func(r *LocalRuntime) {
354 r.unmanagedOAuthRedirectURI = uri
355 }
356}
357
358// WithNonInteractive marks the runtime as headless (e.g., MCP serve mode).
359// When set, blocking operations like elicitation requests are automatically

Callers 1

runtimeForSessionMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected