Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@pcarleton
Copy link
Member

@pcarleton pcarleton commented Nov 21, 2025

Summary

This PR adds several improvements to the conformance test suite:

  1. Retry limit test & negative test - Added test scenario for infinite retry behavior and a broken client implementation for negative testing

  2. Suite options for server command - Added --suite flag with options:

    • active (default): Runs only active scenarios, excluding pending ones
    • all: Runs all scenarios including pending
    • pending: Runs only pending scenarios to check if they've been fixed
  3. Updated pending scenarios list - Moved elicitation scenarios to pending while waiting for the schema fix in Make mode in elicitation backwards compatible modelcontextprotocol#1863

  4. Auth scope test improvements - Fixed WWW-Authenticate header handling in scope scenarios

  5. Lefthook configuration - Made dependency installs optional in local lefthook hooks

Usage

# Run active scenarios (default)
npm start -- server --url http://localhost:3000/mcp

# Run all scenarios including pending
npm start -- server --url http://localhost:3000/mcp --suite all

# Run only pending scenarios to check if fixes landed
npm start -- server --url http://localhost:3000/mcp --suite pending

Test plan

  • Build succeeds
  • Tests pass
  • Verify suite options work as expected with a running server

🤖 Generated with Claude Code

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 21, 2025

Open in StackBlitz

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

commit: f19de47

Copy link
Collaborator

@felixweinberger felixweinberger left a comment

Choose a reason for hiding this comment

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

I think there might be some changes unrelated to the PR description in this PR?

Comment on lines +426 to +432
* Scenario 5: Client implements retry limits for scope escalation
*
* Tests that clients SHOULD implement retry limits to avoid infinite
* authorization loops when receiving repeated 403 insufficient_scope errors.
* The server always returns 403 with the same scope requirement, and clients
* should stop retrying after a reasonable number of attempts (3 or fewer).
*/
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this here intentionally? Seems unrelated to adding the CLI option, looks like an entirely new scenario

Comment on lines +16 to +19
/**
* Broken client that retries auth infinitely without any retry limit.
* BUG: Does not implement retry limits, causing infinite auth loops.
*/
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this file intentionally included?

@pcarleton pcarleton changed the title Add suite options to server command and update pending scenarios Add sep-835 limit retry scenario, add suite options to server command and update pending scenarios Nov 21, 2025
Copy link
Collaborator

@felixweinberger felixweinberger left a comment

Choose a reason for hiding this comment

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

Actually never mind looks like the description does call out some additional changes unrelated to suite options

@pcarleton
Copy link
Member Author

thanks, the description was not very good, just fixed it and the title

@pcarleton pcarleton merged commit b64e054 into main Nov 21, 2025
8 checks passed
@pcarleton pcarleton deleted the pcarleton/sep-coverage branch November 21, 2025 16:49
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.

3 participants