🕒 feat: Add Configurable MCP Server Timeouts (#6199)

This commit is contained in:
Kaushik Iska 2025-03-06 11:02:43 -06:00 committed by GitHub
parent c8f7588164
commit 780fdf743a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 2 deletions

View file

@ -159,7 +159,7 @@ export class MCPManager {
};
}
} catch (error) {
this.logger.warn(`[MCP][${serverName}] Not connected, skipping tool fetch`);
this.logger.warn(`[MCP][${serverName}] Error fetching tools:`, error);
}
}
}
@ -183,7 +183,7 @@ export class MCPManager {
});
}
} catch (error) {
this.logger.error(`[MCP][${serverName}] Error fetching tools`, error);
this.logger.error(`[MCP][${serverName}] Error fetching tools:`, error);
}
}
}
@ -209,6 +209,7 @@ export class MCPManager {
},
},
CallToolResultSchema,
{ timeout: connection.timeout },
);
return formatToolContent(result, provider);
}