Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix(mcp): use customParams for environment settings fallback (#8814)

Coooolfanab043d45f2a4
diff --git a/src/services/mcp.ts b/src/services/mcp.ts
index 49d43f13f00..f8ecf04ac22 100644
--- a/src/services/mcp.ts
+++ b/src/services/mcp.ts
@@ -45,7 +45,7 @@ class MCPService {
const data = {
args,
- env: plugin.settings,
+ env: plugin.settings || plugin.customParams?.mcp?.env,
params: { ...plugin.customParams?.mcp, name: identifier } as any,
toolName: apiName,
};