Skip to content

Commit a622630

Browse files
committed
rollback minor change in list_mcp_tool
1 parent 112e7d8 commit a622630

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/sap_cloud_sdk/agentgateway/agw_client.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -400,10 +400,9 @@ async def list_mcp_tools(
400400
auth = await self.get_user_auth(user_token, app_tid)
401401
else:
402402
auth = await self.get_system_auth(app_tid=app_tid)
403-
tools = await get_mcp_tools_customer(
403+
return await get_mcp_tools_customer(
404404
credentials, auth.access_token, self._config.timeout
405-
)
406-
return tools
405+
)
407406

408407
# LoB flow - requires tenant_subdomain
409408
if app_tid:
@@ -414,10 +413,9 @@ async def list_mcp_tools(
414413
auth = await self.get_user_auth(user_token)
415414
else:
416415
auth = await self.get_system_auth()
417-
tools = await get_mcp_tools_lob(
416+
return await get_mcp_tools_lob(
418417
tenant, auth.access_token, self._config.timeout
419418
)
420-
return tools
421419

422420
except AgentGatewaySDKError:
423421
# Re-raise SDK errors as-is

0 commit comments

Comments
 (0)