Azure / Azure/azure-sdk-for-python

FastMCP + Azure Foundry: Error "ValueError" during tool call despite successful ListToolsRequest

Aperta
#45,104 3 commenti 0 reazioni 1 assegnatario Rivendicata da @lindazqli Vedi su GitHub
AI Projects bug customer-reported needs-team-attention Service Attention
Lingua principale
Python
Stelle
5.6k
Fork
3.4k
Merge medio
2g
PR unite (30g)
217

Descrizione

### Description
I’m building an MCP (Model Context Protocol) server using **fastmcp** and exposing it over SSE/HTTP for use with **Azure AI Foundry agents**.

The MCP handshake and tool discovery work (ListToolsRequest succeeds), but every tool invocation fails with a `ValueError`.

Error: "content_type='system_error' name='ValueError' text="Encountered exception: "

Image

The transport session is established (session ID logged), yet when Foundry calls a tool, FastMCP throws a `ValueError` before reaching the tool logic.

Image

---

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.