From 882a56e6b57979e56b883a10edf4f41ecd3e97a9 Mon Sep 17 00:00:00 2001 From: BillionClaw Date: Wed, 18 Mar 2026 20:09:17 +0800 Subject: [PATCH] fix(mcp): sync workflow description to MCP server on update When updating an MCP server configuration, the description was not syncing from the updated workflow description unless explicitly cleared. This fix ensures that when a user updates their workflow description and then updates the MCP server, the MCP server description reflects the current workflow description unless an explicit custom description is provided. Fixes #33626 --- api/controllers/console/app/mcp_server.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/controllers/console/app/mcp_server.py b/api/controllers/console/app/mcp_server.py index 4b20418b53..64c8358ae5 100644 --- a/api/controllers/console/app/mcp_server.py +++ b/api/controllers/console/app/mcp_server.py @@ -102,11 +102,11 @@ class AppMCPServerController(Resource): if not server: raise NotFound() - description = payload.description - if description is None or not description: - server.description = app_model.description or "" + # Always sync description from app model unless explicitly provided + if payload.description: + server.description = payload.description else: - server.description = description + server.description = app_model.description or "" server.name = app_model.name