Azure / Azure/azure-sdk-for-python

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

Offen
#45,104 3 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @lindazqli Auf GitHub ansehen
AI Projects bug customer-reported needs-team-attention Service Attention
Vorherrschende Sprache
Python
Sterne
5.6k
Forks
3.4k
Ø Merge
2 T. 2 Std.
Gemergte PRs (30 T.)
213

Beschreibung

### 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

---

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.