McpAuthenticator
Interface: McpAuthenticator
Defined in: packages/mcp/src/auth.ts:10
Resolve the caller of an MCP HTTP request.
Implementations throw WebdaError.Unauthorized to reject the request.
Configure a service implementing it through the McpService authenticator
parameter; see McpOAuthAuthenticator for the OAuth bearer-token implementation.
Methods
authenticate()
authenticate(
ctx):Promise<Session>
Defined in: packages/mcp/src/auth.ts:15
Parameters
ctx
WebContext
the HTTP request context
Returns
Promise<Session>
the caller session
resourceMetadataUrl()?
optionalresourceMetadataUrl(ctx):string
Defined in: packages/mcp/src/auth.ts:21
Parameters
ctx
WebContext
the HTTP request context
Returns
string
the absolute protected resource metadata URL advertised in the WWW-Authenticate challenge, if any