Symptom
An AutoGen agent calls an MCP tool with the right query, but the call fails with 'unhandled errors in a TaskGroup (1 sub-exception)'.
Evidence what you'll see
- The model's tool call looks correct
- The same MCP server works from other frameworks
- Error text hides the real cause
Cause
AutoGen passed unset optional parameters to the MCP server as explicit values, which the server rejected, and the error wasn't formatted clearly.
Fix steps
0 of 1 done
Your check marks stay in this browser only.
Verify the fix worked
- Run the same tool call again and confirm it returns a result.
Sources and credit
Summarized in our own words from these public reports. Credit goes to their authors.
Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change
Hit an error we don't cover? Submit it