Documentation / @agentick/mcp / OAuthCallbackServer
Class: OAuthCallbackServer
Defined in: client/oauth-callback-server.ts:93
Constructors
Constructor
new OAuthCallbackServer(
opts?):OAuthCallbackServer
Defined in: client/oauth-callback-server.ts:105
Parameters
opts?
Returns
OAuthCallbackServer
Properties
serverName?
optionalserverName:string
Defined in: client/oauth-callback-server.ts:103
The server name, set by the caller for the success page.
Methods
start()
start():
Promise<URL>
Defined in: client/oauth-callback-server.ts:118
Start the callback server. Returns the redirect URL to use in the OAuth provider.
Returns
Promise<URL>
stop()
stop():
Promise<void>
Defined in: client/oauth-callback-server.ts:151
Stop the callback server and clean up.
Returns
Promise<void>
waitForCode()
waitForCode():
Promise<string|undefined>
Defined in: client/oauth-callback-server.ts:139
Wait for the authorization code. Resolves when the callback is received, or undefined if the timeout elapses or the server is stopped.
Returns
Promise<string | undefined>