-
Notifications
You must be signed in to change notification settings - Fork 193
Description
The MCP server created in challenge 4 is unusable as-is, because it cannot successfully list its tools to clients.
We've tested this behavior with MCP.Playground and ChatGPT (in Developer mode, add a custom app).
In both clients, the call to tools/list times out.
The issue seems to be the APIM inbound processing policy defined in challenge 4.
According to this thread:
Avoid accessing the context.Response.Body in your policies, as this can trigger response buffering that interferes with the streaming behavior required by MCP servers.
If we remove the Process Claim Upload tool from the MCP server, it works fine in both MCP.Playground and ChatGPT. Both can see the remaining Process Claim Base64 tool.
Is there a way to fix the FastAPI implementation so there's no more need for the inbound policy?