Skip to content

Conversation

@mikekistler
Copy link
Contributor

Motivation and Context

Prior to this change, client conformance tests could fail in expected error cases because the client exited with a non-zero exit code. This behavior should be allowed and considered as passing for expected error tests.

How Has This Been Tested?

Ran the tests locally.

Breaking Changes

No previously passing test should fail as a result of this change.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 26, 2026

Open in StackBlitz

npx https://pkg.pr.new/modelcontextprotocol/conformance/@modelcontextprotocol/conformance@123

commit: f27cd37

Copy link
Member

@pcarleton pcarleton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it, thank you! one minor nit.

for a follow-up: I'm thinking clientOutput should actually be a mandatory argument to printing the results. so we don't have to do that existence check. If we don't have an exitCode we should likely consider it a failure, but happy to tackle that separately

Co-authored-by: Paul Carleton <paulcarletonjr@gmail.com>
@mikekistler mikekistler requested a review from pcarleton January 26, 2026 17:53
@pcarleton pcarleton merged commit 0064ea0 into modelcontextprotocol:main Jan 26, 2026
4 checks passed
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.

2 participants