mirror of https://github.com/langgenius/dify.git
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
This commit is contained in:
parent
29c70736dc
commit
882a56e6b5
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue