This commit is contained in:
Saoud Rizwan
2024-12-11 14:12:11 -08:00
parent d05033909b
commit f5ace866e8
4 changed files with 9 additions and 6 deletions

View File

@@ -470,7 +470,9 @@ export class McpHub {
): Promise<McpToolCallResponse> {
const connection = this.connections.find((conn) => conn.server.name === serverName)
if (!connection) {
throw new Error(`No connection found for server: ${serverName}`)
throw new Error(
`No connection found for server: ${serverName}. Please make sure to use MCP servers available under 'Connected MCP Servers'.`,
)
}
return await connection.client.request(
{