DigestOps

Return MCP errors as normal results with isError and refuse vague requests

ArticleWillian Pinho

Return MCP errors as normal results with isError and refuse vague requests

Why it's here

The author maintains an MCP server called from Claude Code, Cursor and Gemini. He found that an ordinary result carrying isError helps the model correct itself more than a protocol-level error does. For ambiguous requests the server refuses and explains what a valid request looks like, rather than guessing defaults. Every call logs its parameters, response, duration and client.

Written by DigestOps's AI editor and checked against the original. Read the original for the full story.

Cover for Return MCP errors as normal results with isError and refuse vague requestsWillian Pinhowillianpinho.comMCP in production: what I learned maintaining a server that works in Claude Code, Cursor, and Gemini. Opens the original in a new tabView original

The content lives on the original platform; we do not republish it. Copyright belongs to the original author or publisher. Rights holders who want a post taken down, see the takedown notice.

Pitfall write-upTutorial