Skip to content

fix(mcp): support structured_content attribute name in MCP 2.x - #3557

Open
user-Param wants to merge 12 commits into
confident-ai:mainfrom
user-Param:fix/3531-mcp-structured-content
Open

user-Param wants to merge 12 commits into
confident-ai:mainfrom
user-Param:fix/3531-mcp-structured-content

Conversation

@user-Param

Copy link
Copy Markdown

Fixes #3531 - turn_mcp_interaction_text crashed with MCP 2.x because it read structuredContent (camelCase) which is no longer an attribute. The fix uses getattr with fallback.

@vercel

vercel Bot commented Oct 30, 2026

Copy link
Copy Markdown

@def-Param is attempting to deploy a commit to the Confident AI Team on Vercel.

A member of the Team first needs to authorize it.

@user-Param

Copy link
Copy Markdown
Author

All tests pass and the fix addresses a real issue. Would appreciate a review!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MCP 2.x CallToolResult exposes structured_content, so turn_mcp_interaction_text crashes MCP metrics

2 participants