Azure / Azure/azure-sdk-for-python
FastMCP + Azure Foundry: Error "ValueError" during tool call despite successful ListToolsRequest
Aperta
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: "
The transport session is established (session ID logged), yet when Foundry calls a tool, FastMCP throws a `ValueError` before reaching the tool logic.
---
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.