fix: Increased connection timeout for MCP client

This commit is contained in:
samanhappy
2025-04-08 12:42:29 +08:00
parent b1443787ca
commit 8c7fffbb77
4 changed files with 11 additions and 8631 deletions

View File

@@ -90,7 +90,7 @@ export const initializeClientsFromSettings = (): ServerInfo[] => {
},
},
);
client.connect(transport).catch((error) => {
client.connect(transport, { timeout: 120000 }).catch((error) => {
console.error(`Failed to connect client for server ${name} by error: ${error}`);
const serverInfo = getServerInfoByName(name);
if (serverInfo) {