<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ashish Kurumeti</title>
    <description>The latest articles on DEV Community by Ashish Kurumeti (@kuruash).</description>
    <link>https://dev.to/kuruash</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4238357%2F2aa17945-8b72-4e0c-963b-5ed472de4856.png</url>
      <title>DEV Community: Ashish Kurumeti</title>
      <link>https://dev.to/kuruash</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kuruash"/>
    <language>en</language>
    <item>
      <title>I Built an Open-Source Tool to Test What Happens When MCP Servers Fail</title>
      <dc:creator>Ashish Kurumeti</dc:creator>
      <pubDate>Wed, 11 Nov 2026 05:39:14 +0000</pubDate>
      <link>https://dev.to/kuruash/i-built-an-open-source-tool-to-test-what-happens-when-mcp-servers-fail-g1g</link>
      <guid>https://dev.to/kuruash/i-built-an-open-source-tool-to-test-what-happens-when-mcp-servers-fail-g1g</guid>
      <description>&lt;p&gt;I've been spending a lot of time exploring MCP servers and AI agents lately.&lt;/p&gt;

&lt;p&gt;One thing that caught my attention: &lt;strong&gt;we spend a lot of time testing whether tools work, but what about when they don't?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What happens when an MCP tool crashes? When it receives invalid arguments? When a protected endpoint receives an unauthorized request?&lt;/p&gt;

&lt;p&gt;And more importantly, does the server actually report those failures correctly?&lt;/p&gt;

&lt;p&gt;That's what led me to build &lt;strong&gt;MCP Verdict&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Imagine an MCP tool fails internally but returns something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"isError"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"content"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"text"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"text"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Operation failed"&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The message says the operation failed, but the MCP response reports success.&lt;/p&gt;

&lt;p&gt;That inconsistency can cause problems for clients and agents relying on the tool's result.&lt;/p&gt;

&lt;p&gt;And it's exactly the kind of behavior that's worth testing before deploying an MCP server.&lt;/p&gt;

&lt;h2&gt;
  
  
  Introducing MCP Verdict
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/kuruash/mcp-verdict" rel="noopener noreferrer"&gt;MCP Verdict&lt;/a&gt; is an open-source Python CLI that lets developers define expected MCP server behavior and check what actually happens.&lt;/p&gt;

&lt;p&gt;Instead of writing separate scripts for every failure scenario, you describe your expectations in YAML.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;server&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;command&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;python&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;examples/basic_stdio/server.py&lt;/span&gt;

&lt;span class="na"&gt;tool&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ping&lt;/span&gt;
  &lt;span class="na"&gt;arguments&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="na"&gt;expected&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;success&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mcp-verdict check --config verdict.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;MCP Verdict connects to the server, executes the tool, and checks whether the actual result matches your expectation.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it supports
&lt;/h2&gt;

&lt;p&gt;The first release includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;STDIO and Streamable HTTP&lt;/strong&gt; — Test real MCP servers using the official Python SDK.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tool outcome checks&lt;/strong&gt; — Verify success and expected tool errors using MCP's &lt;code&gt;isError&lt;/code&gt; field.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HTTP security checks&lt;/strong&gt; — Test selected authentication and authorization responses, including HTTP 401 and 403.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;YAML configuration&lt;/strong&gt; — Define repeatable checks with configurable timeouts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;JSON reporting&lt;/strong&gt; — Generate structured results for automated workflows.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CI-friendly exit codes&lt;/strong&gt; — Distinguish PASS, FAIL, and execution ERROR.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Testing incorrect error reporting
&lt;/h2&gt;

&lt;p&gt;Here's another example.&lt;/p&gt;

&lt;p&gt;Suppose a tool is expected to return an MCP tool error, but instead reports success.&lt;/p&gt;

&lt;p&gt;MCP Verdict can detect that mismatch:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;known-failure: FAIL: Expected tool_error, observed success
Summary: 0 passed, 1 failed
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the behavior I find most interesting: &lt;strong&gt;testing not just whether an MCP tool works, but whether it fails correctly.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;MCP Verdict v0.1.0 is now available on PyPI.&lt;/p&gt;

&lt;p&gt;Requires Python 3.11 or 3.12.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install mcp-verdict
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Verify the installation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mcp-verdict --help
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For runnable examples, clone the repository:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/kuruash/mcp-verdict.git
&lt;span class="nb"&gt;cd&lt;/span&gt; mcp-verdict
mcp-verdict check --config examples/basic_stdio/verdict.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The repository also includes calculator, intentional error-handling, and local HTTP security examples.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;p&gt;Building this made me appreciate how much work goes into handling the unhappy paths of software.&lt;/p&gt;

&lt;p&gt;Connecting to a server is one thing. Handling timeouts, unexpected disconnects, malformed responses, authentication failures, and cleanup reliably is a different challenge.&lt;/p&gt;

&lt;p&gt;I also learned a lot about Python packaging, GitHub Actions, testing with real subprocesses, and publishing through PyPI Trusted Publishing.&lt;/p&gt;

&lt;p&gt;There's still plenty to improve. MCP Verdict isn't a comprehensive MCP security scanner, and it doesn't attempt to audit arbitrary OAuth/JWT implementations.&lt;/p&gt;

&lt;p&gt;For now, the goal is simple: make failure scenarios reproducible and help developers catch regressions.&lt;/p&gt;

&lt;h2&gt;
  
  
  I'd love some feedback
&lt;/h2&gt;

&lt;p&gt;If you're building or maintaining MCP servers, I'd love to know:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What's the most frustrating failure scenario you've encountered while testing an MCP server?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I'm especially interested in edge cases that MCP Verdict doesn't handle yet.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/kuruash/mcp-verdict" rel="noopener noreferrer"&gt;https://github.com/kuruash/mcp-verdict&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;PyPI: &lt;a href="https://pypi.org/project/mcp-verdict/" rel="noopener noreferrer"&gt;https://pypi.org/project/mcp-verdict/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Issues, feedback, and contributions are welcome!&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>opensource</category>
      <category>testing</category>
    </item>
  </channel>
</rss>
