Agent FixboardAgentFixboard

MCP tool errors show up as a list of empty {} objects

When an MCP tool raises, the agent receives a list of empty objects. The report shows that list as [{}, {}, {}, {}] repeated for the length of the real error, instead of the exception text.

From GitHub

microsoft/autogen

Difficulty
Easy
Time
~5 min
Steps
2
Fixed in
python-v0.5.7
Last checked

Verified fix: PR #6482 merged on . Fixed in python-v0.5.7 (first published release whose tag contains the merge commit). Last checked .

Symptom

When an MCP tool raises, the agent receives a list of empty objects. The report shows that list as [{}, {}, {}, {}] repeated for the length of the real error, instead of the exception text.

Evidence what you'll see

  • The workbench casts the exception to a string. The report's example of that string is unhandled errors in a TaskGroup.
  • return_value_as_string walks that string. A character is not TextContent or EmbeddedResource, so each character becomes {}.

Why it happens

The text from MCP's _format_errors is a normal exception. StaticWorkbench catches it and turns it into a plain string. The MCP adapter then serializes that string as if it were a list of content objects. A string's items are characters, and a character is not a content object, so the agent sees one {} per character and never sees the sentence underneath.

Affected versions

Package Python Extensions (autogen-ext). The library version in the report is Python dev (main branch). The Python version and the operating system were left as None.

Fix steps

0 of 2 done

Your check marks stay in this browser only.

How to check it worked

  • Call an MCP tool that raises. The agent should receive the exception text, not a list of {}.

If it still fails

  • The linked issue does not describe another path. The same wrapped sentence, unhandled errors in a TaskGroup, is the subject of issue #6096.

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