UNPKG

openai-cli-unofficial

Version:

A powerful OpenAI CLI Coding Agent built with TypeScript

37 lines 925 B
import { MCPRequest, MCPResponse } from './types'; /** * 全局MCP服务管理器 * 在主进程中运行,提供内置MCP服务 */ export declare class GlobalMCPManager { private static instance; private serviceManager; private isInitialized; private constructor(); static getInstance(): GlobalMCPManager; /** * 初始化MCP服务 */ initialize(): Promise<void>; /** * 处理MCP请求 */ handleRequest(serviceName: string, request: MCPRequest): Promise<MCPResponse>; /** * 获取所有服务信息 */ getServicesInfo(): any[]; /** * 获取指定服务的工具列表 */ getServiceTools(serviceName: string): import("./types").MCPTool[]; /** * 获取所有工具列表 */ getAllTools(): any[]; /** * 检查服务是否已初始化 */ isReady(): boolean; } //# sourceMappingURL=manager.d.ts.map