Interface MCPServerManager

interface MCPServerManager {
    addOrUpdateServer(description): void;
    callTool(serverName, toolName, arg_string): Promise<objectOutputType<extendShape<{}, {}>, ZodTypeAny, "passthrough"> | objectOutputType<extendShape<{}, {}>, ZodTypeAny, "passthrough">>;
    getServerNames(): Promise<string[]>;
    getStartedServers(): Promise<string[]>;
    getTools(serverName): Promise<objectOutputType<extendShape<extendShape<{}, {}>, {}>, ZodTypeAny, "passthrough">>;
    removeServer(name): void;
    startServer(serverName): Promise<void>;
    stopServer(serverName): Promise<void>;
}

Implemented by

Methods

  • Parameters

    • serverName: string
    • toolName: string
    • arg_string: string

    Returns Promise<objectOutputType<extendShape<{}, {}>, ZodTypeAny, "passthrough"> | objectOutputType<extendShape<{}, {}>, ZodTypeAny, "passthrough">>

  • Parameters

    • serverName: string

    Returns Promise<objectOutputType<extendShape<extendShape<{}, {}>, {}>, ZodTypeAny, "passthrough">>