@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
32 lines • 1.5 kB
TypeScript
import type { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { ServerConnection } from "./connection.ts";
import type { ServerConnectionOptions } from "./connection-types.ts";
import type { SharedMcpConnection } from "./shared-connection.ts";
/** Session view: only the host can renew/dispose the physical connection. */
export declare class SharedMcpLease extends ServerConnection {
#private;
readonly owner: object;
readonly key: string;
readonly options: ServerConnectionOptions;
readonly shared: SharedMcpConnection;
get requestLifetimeSignal(): AbortSignal;
constructor(shared: SharedMcpConnection, options: ServerConnectionOptions, owner: object, key: string);
get state(): import("./connection-types.ts").ServerConnectionState;
get generation(): number;
get lastError(): Error | undefined;
get client(): Client;
connect(): Promise<Client>;
renew(): Promise<Client>;
bumpGeneration(): Promise<void>;
catalog(): Promise<import("./catalog-cache.ts").McpCachedServerCatalog>;
getRootPid(): number | null;
refreshCapturedDiagnostics(): void;
markDegraded(error: Error): void;
markSuspended(error?: Error): void;
markNeedsAuth(error?: Error): void;
markNeedsClientRegistration(error?: Error): void;
onStateChange(listener: Parameters<ServerConnection["onStateChange"]>[0]): () => void;
disable(): Promise<void>;
dispose(): Promise<void>;
}
//# sourceMappingURL=shared-lease.d.ts.map