Skip to content

Documentation / @agentick/mcp / OAuthCallbackServerOptions

Interface: OAuthCallbackServerOptions ​

Defined in: client/oauth-callback-server.ts:29

Properties ​

errorHtml? ​

optional errorHtml: string | (error) => string

Defined in: client/oauth-callback-server.ts:48

Custom HTML to serve on error (e.g., missing code param). Default: a simple error page.


host? ​

optional host: string

Defined in: client/oauth-callback-server.ts:33

Host to bind to. Default: "127.0.0.1".


path? ​

optional path: string

Defined in: client/oauth-callback-server.ts:35

Path to listen on for the callback. Default: "/callback".


port? ​

optional port: number

Defined in: client/oauth-callback-server.ts:31

Port to listen on. 0 = random available port. Default: 0.


successHtml? ​

optional successHtml: string | (serverName?) => string

Defined in: client/oauth-callback-server.ts:43

Custom HTML to serve after successful authorization. Receives the server name for personalization. Default: a simple "Authorization complete" page.


timeout? ​

optional timeout: number

Defined in: client/oauth-callback-server.ts:37

Timeout in ms to wait for the callback. Default: 300_000 (5 min).

Released under the ISC License.