MCP tool listing hangs indefinitely when server is unresponsive
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
Describe the Bug
Issue
When listing MCP tools, if the MCP server is unresponsive or is throwing some error, session.initialize()
gets stuck indefinitely/keeps retrying instead of failing fast.
Likely cause: session.initialize() in /agentgateway/_lob.py (lines 350
and 482) has no deadline at the MCP protocol level. While self._config.timeout
(default 60 s) is passed down to httpx.AsyncClient, it only bounds individual
HTTP chunk reads — SSE keep-alives from the server continuously reset this timer,
so the call never actually times out.
Steps to Reproduce
Try listing tools from an MCP server that isn't working or is unreachable. The AGW client keeps retrying until the upstream request times out
Expected Behavior
It should retry once or twice and then error out
Screenshots
No response
Used Versions
https://github.tools.sap/agent-extensibility/extensibility-agent/blob/main/requirements.txt
Code Examples
# Your code here
Stack Trace
No response
Log File
Log file
...Affected Development Phase
Development
Impact
Blocked
Timeline
This is a requirement for EAC
- Vorherrschende Sprache
- Python
- Sterne
- 29
- Forks
- 45
- Ø Merge
- 2 T. 4 Std.
- Gemergte PRs (30 T.)
- 51
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus SAP/cloud-sdk-python
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 15/100
SAP/cloud-sdk-python#474 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Relax opentelemetry-api cap (~=1.44.0) to allow 1.45.2 (fixes CVE-2026-114603 / GHSA-xcq7-p3pf-p88h)Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 64/100
SAP/cloud-sdk-python#472 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
SAP/cloud-sdk-python#456 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 65/100
SAP/cloud-sdk-python#452 ·
Maintainer antworten meist innerhalb von 1 Tag
-
How/Whether langgraph-checkpoint-hana would be supported by sap-cloud-sdk?Evtl. vergeben @gpretto hat das vor 3 Tagen übernommen. Offenquestion
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 15/100
SAP/cloud-sdk-python#427 · 2 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in SAP/cloud-sdk-python
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
deepchem/deepchem#5289 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 75/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 60/100
UKGovernmentBEIS/inspect_evals#2892 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Versioning docs: say that no output from the 0.46 warning check means nothing is affectedEvtl. vergeben @grelinfo hat das heute übernommen. Offendocumentation priority:low size:S
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
alphacrack/readme2demo#293 ·