mirror of
https://github.com/langgenius/dify.git
synced 2026-06-26 14:51:13 +08:00
fix!: modify console API /workspaces/current/tools/mcp to return provider ID
This commit is contained in:
parent
4346f61b0c
commit
b76f884f0a
@ -1145,8 +1145,8 @@ class ToolMCPListAllApi(Resource):
|
||||
|
||||
with Session(db.engine) as session, session.begin():
|
||||
service = MCPToolManageService(session=session)
|
||||
# Skip sensitive data decryption for list view to improve performance
|
||||
tools = service.list_providers(tenant_id=tenant_id, include_sensitive=False)
|
||||
# for_list=True so "id" is the provider UUID, usable for detail/update/delete APIs
|
||||
tools = service.list_providers(tenant_id=tenant_id, for_list=True, include_sensitive=False)
|
||||
|
||||
return [tool.to_dict() for tool in tools]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user