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)
| 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. |
| 352 | func 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 |