@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
23 lines • 1.49 kB
TypeScript
import type { ExtensionAPI, ExtensionUIContext } from "../../types.ts";
import type { ToolSearchService } from "../tool-search/service.ts";
import type { ResolvedMcpConfig } from "./config-schema.ts";
import type { McpSessionRegistration } from "./expose/session.ts";
import type { McpConnectionEntry } from "./service-types.ts";
import type { McpRequestOrigin } from "./request-origin.ts";
type McpToolRegistrar = Pick<ExtensionAPI, "getActiveTools" | "setActiveTools" | "registerTool">;
export interface McpServiceDirectToolRegistrationOptions {
readonly requestOrigin?: (entry: McpConnectionEntry, caller?: {
readonly sessionManager?: object;
}) => McpRequestOrigin;
readonly bindPresentation?: (ui: ExtensionUIContext) => void;
readonly refreshActiveSetWhenEmpty?: boolean;
readonly onRegistered?: (entry: McpConnectionEntry, identity: string) => void;
readonly isCurrent?: (entry: McpConnectionEntry) => boolean;
readonly contextRequired?: boolean;
readonly sessionManager?: object;
readonly servesSession?: (sessionManager: object | undefined) => boolean;
readonly publishCurrent?: () => Promise<void>;
}
export declare function registerMcpServiceDirectTools(pi: McpToolRegistrar, config: ResolvedMcpConfig, entries: Iterable<McpConnectionEntry>, toolSearchService: ToolSearchService, options?: McpServiceDirectToolRegistrationOptions): Promise<McpSessionRegistration | undefined>;
export {};
//# sourceMappingURL=service-register.d.ts.map