AxMCPOAuthOptions Generated TypeScript API reference. typescript api api/reference build/apidocs/Interface.AxMCPOAuthOptions.md interface AxMCPOAuthOptions

AxMCPOAuthOptions

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/mcp/oauth/types.ts#L12

Properties

PropertyTypeDescription
clientId?string-
clientSecret?string-
onAuthCode?(authorizationUrl: string) => Promise<{ code: string; redirectUri?: string; }>-
redirectUri?string-
scopes?string[]-
selectAuthorizationServer?(issuers: string[], resourceMetadata: unknown) => string | Promise<string>-
ssrfProtection?AxMCPSSRFProtectionOptionsSSRF protection for OAuth discovery, registration, and token URLs supplied by MCP servers and authorization metadata. Enabled by default.
tokenStore?object-
tokenStore.clearToken?(key: string) => void | Promise<void>-
tokenStore.getToken(key: string) => | null | AxMCPTokenSet | Promise<null | AxMCPTokenSet>-
tokenStore.setToken(key: string, token: AxMCPTokenSet) => void | Promise<void>-
Docs