Skip to content

Documentation / @agentick/mcp / DefaultOAuthProviderOptions

Interface: DefaultOAuthProviderOptions

Defined in: client/oauth.ts:178

Properties

clientMetadata?

optional clientMetadata: object

Defined in: client/oauth.ts:184

Custom client metadata. Defaults to a public native client.


onAuthorizationNeeded()?

optional onAuthorizationNeeded: (url) => void | Promise<void>

Defined in: client/oauth.ts:191

Called when the user needs to authorize in a browser. If not provided, logs the URL and the caller must handle it.

Parameters

url

URL

Returns

void | Promise<void>


redirectUrl?

optional redirectUrl: string | URL

Defined in: client/oauth.ts:186

Custom redirect URL. Defaults to http://127.0.0.1:0/callback.


serverName

serverName: string

Defined in: client/oauth.ts:180

Server name (used for logging and token namespace).


serverUrl

serverUrl: string

Defined in: client/oauth.ts:182

Server URL (used for default client metadata).

Released under the ISC License.