fix!: modify console API /workspaces/current/tools/mcp to return provider ID

This commit is contained in:
Thomas KT Chan 2026-01-30 18:30:21 +08:00
parent 4346f61b0c
commit b76f884f0a
No known key found for this signature in database

View File

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