ℹ️ fix: Add back Removed Icons for MCP Servers in Tools Dialog (#8636)

* Bug: Fix icons for MCP servers

* Add `OPENAI_API_KEY` to `jestSetup.js` to fix tests
This commit is contained in:
Sebastien Bruel 2025-07-24 13:41:06 +09:00 committed by GitHub
parent 0aafdc0a86
commit 283c9cff6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 93 additions and 2 deletions

View file

@ -253,16 +253,17 @@ function convertMCPToolsToPlugins(functionTools, customConfig) {
const parts = toolKey.split(Constants.mcp_delimiter);
const serverName = parts[parts.length - 1];
const serverConfig = customConfig?.mcpServers?.[serverName];
const plugin = {
name: parts[0], // Use the tool name without server suffix
pluginKey: toolKey,
description: functionData.description || '',
authenticated: true,
icon: undefined,
icon: serverConfig?.iconPath,
};
// Build authConfig for MCP tools
const serverConfig = customConfig?.mcpServers?.[serverName];
if (!serverConfig?.customUserVars) {
plugin.authConfig = [];
plugins.push(plugin);