chore: include pre-built dist for github install

This commit is contained in:
Robin Mordasiewicz
2026-03-14 04:56:50 +00:00
parent a7f0a4cf46
commit bce8ff3a75
1011 changed files with 150081 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
import type { OAuthTokenData } from "./storage";
import type { OAuthServerMetadata } from "./discovery";
import type { ClientCredentials } from "./dcr";
import { buildAuthorizationUrl, generateCodeChallenge, generateCodeVerifier, startCallbackServer } from "./oauth-authorization-flow";
export type McpOAuthProviderOptions = {
serverUrl: string;
clientId?: string;
scopes?: string[];
};
export declare class McpOAuthProvider {
private readonly serverUrl;
private readonly configClientId;
private readonly scopes;
private storedCodeVerifier;
private storedClientInfo;
private callbackPort;
constructor(options: McpOAuthProviderOptions);
tokens(): OAuthTokenData | null;
saveTokens(tokenData: OAuthTokenData): boolean;
clientInformation(): ClientCredentials | null;
redirectUrl(): string;
saveCodeVerifier(verifier: string): void;
codeVerifier(): string | null;
redirectToAuthorization(metadata: OAuthServerMetadata): Promise<{
code: string;
}>;
login(): Promise<OAuthTokenData>;
}
export { generateCodeVerifier, generateCodeChallenge, buildAuthorizationUrl, startCallbackServer };