(
serverName: string,
toolName: string,
args: unknown,
)
| 165 | } |
| 166 | |
| 167 | async callTool( |
| 168 | serverName: string, |
| 169 | toolName: string, |
| 170 | args: unknown, |
| 171 | ): Promise<unknown> { |
| 172 | const conn = this.connections.get(serverName) |
| 173 | if (!conn || conn.type !== 'connected') { |
| 174 | throw new McpConnectionError( |
| 175 | serverName, |
| 176 | `Server ${serverName} is not connected`, |
| 177 | ) |
| 178 | } |
| 179 | |
| 180 | return callMcpTool( |
| 181 | { |
| 182 | client: conn, |
| 183 | tool: toolName, |
| 184 | args: args as Record<string, unknown>, |
| 185 | signal: new AbortController().signal, |
| 186 | }, |
| 187 | this.deps, |
| 188 | ) |
| 189 | } |
| 190 | |
| 191 | on<E extends keyof McpManagerEvents>( |
| 192 | event: E, |
nothing calls this directly
no test coverage detected