mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
🚌 fix: MCP Runtime Errors while Initializing (#9046)
* chore: Remove eslint-plugin-perfectionist from dependencies
* 🚌 fix: MCP Runtime Errors while Initializing
* chore: Bump @librechat/api version to 1.3.1
* chore: import order
* chore: import order
This commit is contained in:
parent
3eb6debe6a
commit
e6cebdf2b6
10 changed files with 52 additions and 112 deletions
|
|
@ -14,7 +14,7 @@ async function initializeMCPs(app) {
|
|||
return;
|
||||
}
|
||||
|
||||
// Filter out servers with startup: false
|
||||
/** Servers filtered with `startup: false` */
|
||||
const filteredServers = {};
|
||||
for (const [name, config] of Object.entries(mcpServers)) {
|
||||
if (config.startup === false) {
|
||||
|
|
@ -41,7 +41,7 @@ async function initializeMCPs(app) {
|
|||
return;
|
||||
}
|
||||
|
||||
const mcpTools = mcpManager.getAppToolFunctions();
|
||||
const mcpTools = mcpManager.getAppToolFunctions() ?? {};
|
||||
await setCachedTools({ ...cachedTools, ...mcpTools }, { isGlobal: true });
|
||||
|
||||
const cache = getLogStores(CacheKeys.CONFIG_STORE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue