Skip to content

[MCP] Render full MCP errors to the model - #5298

Merged
gpeal merged 1 commit into
mainfrom
gpeal/mcp-error-rendering
Oct 17, 2025
Merged

gpeal merged 1 commit into
mainfrom
gpeal/mcp-error-rendering

Conversation

@gpeal

@gpeal gpeal commented Oct 17, 2025

Copy link
Copy Markdown
Contributor

Previously, the model couldn't see why MCP tool calls failed, many of which were the model using the parameters incorrectly. A common failure is the model stringifying the json for the notion-update-page tool which it then couldn't correct.

I want to do some system prompt massaging around this as well. However, it is crucial that the model sees the error so it can fix it.

Before:
CleanShot 2025-10-17 at 13 02 36

After:
CleanShot 2025-10-17 at 13 01 18

🎉
CleanShot 2025-10-17 at 13 09 30

Fixes #4707

@gpeal
gpeal merged commit 6b0c486 into main Oct 17, 2025
@gpeal
gpeal deleted the gpeal/mcp-error-rendering branch October 17, 2025 21:47
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

support for streamable HTTP MCP servers not working properly

3 participants