🚮 fix: Remove Filtering Logic Before MCP Initialization (#9149)

This commit is contained in:
Danny Avila 2025-08-19 11:03:11 -04:00 committed by GitHub
parent 2a0a8f6beb
commit 822e2310ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 27 deletions

View file

@ -14,22 +14,6 @@ async function initializeMCPs(app) {
return;
}
/** Servers filtered with `startup: false` */
const filteredServers = {};
for (const [name, config] of Object.entries(mcpServers)) {
if (config.startup === false) {
logger.info(`Skipping MCP server '${name}' due to startup: false`);
continue;
}
filteredServers[name] = config;
}
if (Object.keys(filteredServers).length === 0) {
logger.info('[MCP] No MCP servers to initialize (all skipped or none configured)');
return;
}
logger.info('Initializing MCP servers...');
const mcpManager = await createMCPManager(mcpServers);
try {