AgentFixboard

MCP tool calls fail with 'unhandled errors in a TaskGroup'

An AutoGen agent calls an MCP tool with the right query, but the call fails with 'unhandled errors in a TaskGroup (1 sub-exception)'.

From GitHub

microsoft/autogen

Difficulty
Easy
Time
~5 min
Steps
1
Fixed in
python-v0.5.1
Last checked

Verified fix: PR #6125 merged on . Fixed in python-v0.5.1 (first stable release containing the merge commit). Last checked .

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