File tree Expand file tree Collapse file tree
src/sap_cloud_sdk/agentgateway Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments