🔧 fix: Handle Missing MCP Config Gracefully in Config/Plugin Routes (#9438)

* 🛠️ fix: Update Plugins and Config Routes to Handle No MCP Config

* refactor: Rename cachedMCPPlugins to mcpPlugins for clarity in PluginController
This commit is contained in:
Danny Avila 2025-09-03 11:58:39 -04:00 committed by GitHub
parent df17582103
commit 23bd4dfbfd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 42 additions and 12 deletions

View file

@ -125,6 +125,9 @@ router.get('/', async function (req, res) {
payload.mcpServers = {};
const getMCPServers = () => {
try {
if (appConfig?.mcpConfig == null) {
return;
}
const mcpManager = getMCPManager();
if (!mcpManager) {
return;