@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
12 lines • 954 B
TypeScript
import type { OAuthDiscoveryState, OAuthServerInfo } from "@modelcontextprotocol/sdk/client/auth.js";
import type { McpStoredAuth } from "./token-store.ts";
export declare function canonicalAuthorizationServerIssuer(issuer: string): string;
/**
* Whether a stored discovery record carries its own evidence for the authorization server it names (senpi#4924):
* that server's metadata, the MCP server's protected-resource metadata naming it, or the MCP server's own origin
* (the SDK's legacy root fallback). A bare URL from anywhere else would send the SDK to an unverified server.
*/
export declare function discoveryNamesItsServer(state: OAuthDiscoveryState, serverUrl: string): boolean;
export declare function validatedAuthorizationServerIssuer(info: OAuthServerInfo, serverName: string): string;
export declare function credentialsMatchIssuer(record: McpStoredAuth | undefined, issuer: string): boolean;
//# sourceMappingURL=oauth-issuer.d.ts.map