-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Description
API Spec link
API Spec version
2025-05-15-preview
Describe the bug
The Azure AI Agents SDK streaming response fails with a "server_error" and message "Sorry, something went wrong" for an agent with a MCP server configured. The run creation call completes but the streaming response terminates without providing any run steps or assistant messages. The run status shows as "failed" with a last_error containing code "server_error".
Expected behavior
The streaming response should successfully return run steps and assistant messages, or provide a more specific error message indicating what went wrong. The run should complete successfully or fail with actionable error details.
Actual behavior
Issue started occurring suddenly around 4pm yesterday after working consistently before.
Reproduction Steps
Steps to reproduce the behavior:
- Create an AI agent with MCP (Model Context Protocol) server binding using Azure AI Agents SDK
- Create a new thread using the Azure AI Foundry API
- Add a message to the thread using the thread messages endpoint
- Create a run on the thread with the bound agent
- Initialize streaming response to monitor the run progress
- Observe that the stream immediately terminates with server_error
- Check run status - shows as "failed" with generic "Sorry, something went wrong." message
Environment
macOS (not applicable - this is a Node.js/TypeScript project, not .NET)
IDE and version:
Visual Studio Code
Additional Environment Details:
Runtime: Node.js
Package Manager: Yarn
Azure AI Agents SDK Version: 1.2.0-beta.2
Project Type: Frontend UI application
API Version: 2025-05-15-preview