mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 10:20:15 +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
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue