UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

23 lines • 1.01 kB
import type { McpServerDeclaredConfig } from "../config-schema.ts"; import type { McpLogger } from "../log.ts"; import { McpOAuthProvider } from "./oauth-provider.ts"; import { McpRefreshManager } from "./oauth-refresh.ts"; export type ServerAuthMode = "none" | "bearer" | "oauth"; export interface ServerAuthDeps { serverName: string; config: McpServerDeclaredConfig; agentDir?: string; env?: Record<string, string | undefined>; logger?: McpLogger; redirectUrl?: string | URL; onRedirect?: (url: URL) => void | Promise<void>; } export interface ServerAuthPlan { mode: ServerAuthMode; provider?: McpOAuthProvider; refresh?: McpRefreshManager; } export declare function resolveAuthMode(config: McpServerDeclaredConfig): ServerAuthMode; export declare function resolveServerAuth(deps: ServerAuthDeps): ServerAuthPlan; export declare function detectLiteralBearerWarnings(serverName: string, config: McpServerDeclaredConfig): string[]; //# sourceMappingURL=context.d.ts.map