Type Alias: McpAuthInfo
type McpAuthInfo = AuthInfo & {
claims: JWTPayload;
issuer: string;
subject: string;
};
The MCP SDK's AuthInfo, extended with the guarantees mcp-auth provides after successful JWT
verification:
issuer: the verifiedissclaim — always the configured trusted authorization serversubject: the verifiedsubclaim, identifying the end user or client (required, per RFC 9068)claims: the full verified JWT payload for access to any custom claims
Type declaration
claims
claims: JWTPayload;
The full verified JWT payload.
issuer
issuer: string;
The issuer of the token (the iss claim).
subject
subject: string;
The subject of the token (the sub claim), typically the user ID.