Skip to content

sap-cloud-sdk>=0.43.0 is incompatible with mcp>=2.0.0 — MCP tools silently fail to load #274

Description

@stefan-reichenbach

Describe the Bug

sap-cloud-sdk versions >=0.43.0 access InitializeResult.serverInfo (camelCase) inagent.py. mcp 2.0.0 renamed this attribute to server_info (snake_case), causing an AttributeError that is caught silently per-server. The result is that 0 MCP tools are loaded for any connected MCP server — the agent LLM receives an empty tool list and responds with "tool not available" for every prompt that requires an MCP-backed tool.

The failure is particularly hard to diagnose because:

  • Network calls to the MCP server succeed (no connectivity error)
  • No exception propagates to the caller
  • The agent appears healthy but produces no tool-based output

Steps to Reproduce

  1. Create an agent using sap-cloud-sdk>=0.43.0 and mcp>=2.0.0
  2. Register any MCP server
  3. Send a prompt that requires a tool call
  4. Observe that the LLM reports the tool is unavailable / no tools were found

Expected Behavior

MCP tools load correctly and are available to the LLM regardless of the mcp package version.

Screenshots

No response

Used Versions

  • Python version: 3.12
  • SAP Cloud SDK for Python version: 0.43.x
  • mcp package version: 2.0.0

Code Examples

# Your code here

Stack Trace

AttributeError: 'InitializeResult' object has no attribute 'serverInfo'.
Did you mean: 'server_info'?

(Raised during MCP server initialization; caught silently.)

Log File

Log file ...

Affected Development Phase

Development

Impact

Blocked

Timeline

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions