UNPKG

@code-yeongyu/senpi

Version:

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

20 lines • 1.18 kB
import type { Client } from "@modelcontextprotocol/sdk/client/index.js"; import { type McpClock } from "../wrap.ts"; export declare const MAX_MCP_MRTR_ROUNDS = 8; /** Local dispatch guard survives SDK object spreads but is never JSON serialized. */ export declare const modernDispatchGuard: unique symbol; export interface ModernProtocolState { privateForms?: boolean; legacyFormEligible?: boolean; version?: string; legacy?: boolean; resolveStdioDiagnostics?: (modern: boolean) => void; activateRequests?: () => void; } export type MrtrClock = McpClock; export declare const isModernMcpClient: (client: Client) => boolean; export declare const legacyMcpFormsAdvertised: (client: Client) => boolean | undefined; export declare function getModernDispatchGuard(params: unknown): ((credential?: string) => void) | undefined; /** One instance-local adapter. Captured SDK requests retain ID allocation; the caller supplies its era's result contract. */ export declare function installModernRequestAdapter(client: Client, protocol: ModernProtocolState, clock?: MrtrClock, readCredential?: () => string | undefined): void; //# sourceMappingURL=request.d.ts.map