modelcontextprotocol / modelcontextprotocol/servers
Add deterministic capability exposure ordering in initialization responses
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 90.5k
- Forks
- 11.7k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 5
Description
Problem
Capability ordering in initialization responses can vary, producing snapshot churn and non-reproducible handshakes for clients/tests.
Why now
Reference servers should provide stable protocol surfaces and deterministic initialization behavior.
Expected behavior
Equivalent configurations produce byte-stable capability ordering in initialization responses.
Acceptance criteria
- Capability exposure ordering is deterministic across runs.
- Existing capability semantics unchanged.
- Tests assert stable init response ordering for equivalent config.
Evidence packet
- Commit under test: 04cce79b4c2bbaa313095e9c2a466381f5fd1e64
- Runtime environment: macOS Darwin 25.3.0 arm64, Node 22.19.0
- Minimal repro:
- Start server repeatedly with same config.
- Capture init response capability sections.
- Expected: stable deterministic ordering.
- Actual: ordering may vary and cause churn.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the initialization response construction and the code that assembles its capability sections. Reproduce the issue by starting the server repeatedly with the same configuration and comparing captured responses. Done means equivalent configurations produce stable capability ordering while existing capability semantics remain unchanged, with a test asserting the ordering.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100