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>; } Methods
addOrUpdateServer
- addOrUpdateServer(description): void
Returns void
callTool
- callTool(serverName, toolName, arg_string): Promise<objectOutputType<extendShape<{}, {}>, ZodTypeAny, "passthrough"> | objectOutputType<extendShape<{}, {}>, ZodTypeAny, "passthrough">>
Parameters
- serverName: string
- toolName: string
- arg_string: string
Returns Promise<objectOutputType<extendShape<{}, {}>, ZodTypeAny, "passthrough"> | objectOutputType<extendShape<{}, {}>, ZodTypeAny, "passthrough">>
getServerNames
- getServerNames(): Promise<string[]>
Returns Promise<string[]>
getStartedServers
- getStartedServers(): Promise<string[]>
Returns Promise<string[]>
getTools
- getTools(serverName): Promise<objectOutputType<extendShape<extendShape<{}, {}>, {}>, ZodTypeAny, "passthrough">>
Returns Promise<objectOutputType<extendShape<extendShape<{}, {}>, {}>, ZodTypeAny, "passthrough">>
removeServer
- removeServer(name): void
Returns void
startServer
- startServer(serverName): Promise<void>
Returns Promise<void>
stopServer
- stopServer(serverName): Promise<void>
Returns Promise<void>