This commit is contained in:
Thomas 2026-06-26 00:13:17 +08:00 committed by GitHub
commit 1ec2bfa331
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]