mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-21 02:40:14 +01:00
🕒 feat: Add Configurable MCP Server Timeouts (#6199)
This commit is contained in:
parent
c8f7588164
commit
780fdf743a
4 changed files with 8 additions and 2 deletions
|
|
@ -43,12 +43,14 @@ export class MCPConnection extends EventEmitter {
|
|||
private isInitializing = false;
|
||||
private reconnectAttempts = 0;
|
||||
iconPath?: string;
|
||||
timeout?: number;
|
||||
|
||||
constructor(serverName: string, private readonly options: t.MCPOptions, private logger?: Logger) {
|
||||
super();
|
||||
this.serverName = serverName;
|
||||
this.logger = logger;
|
||||
this.iconPath = options.iconPath;
|
||||
this.timeout = options.timeout;
|
||||
this.client = new Client(
|
||||
{
|
||||
name: 'librechat-mcp-client',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue