Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/sap_cloud_sdk/agentgateway/_customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,16 +689,12 @@ async def get_mcp_tools_customer(

Returns:
List of MCPTool objects from all servers.

Raises:
AgentGatewaySDKError: If integrationDependencies is empty.
"""
dependencies = credentials.integration_dependencies

if not dependencies:
raise AgentGatewaySDKError(
"integrationDependencies is empty in credentials — no MCP servers configured."
)
logger.debug("integrationDependencies is empty in credentials — no MCP servers configured.")
return []

logger.info("Discovering tools from %d MCP server(s)", len(dependencies))

Expand Down
Loading