mirror of
https://github.com/langgenius/dify.git
synced 2026-06-26 06:41:10 +08:00
Merge b76f884f0a into 4f4ac27de2
This commit is contained in:
commit
1ec2bfa331
@ -1292,8 +1292,8 @@ class ToolMCPListAllApi(Resource):
|
||||
def get(self, tenant_id: str):
|
||||
with sessionmaker(db.engine).begin() as session:
|
||||
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