Surface reusable real-call collections alongside the conformance suite
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- postman, typescript
- Lĩnh vực
- backend-api-design, devtools, testing
Hướng nghiên cứu
Look at the existing conformance suite structure under conformance/scenarios/ and conformance/traceability/. Understand how MCP traffic flows are currently captured in automated tests. The goal is to design a portable collection format for real MCP calls (like initialize, tools/list, tools/call) that can be replayed manually. Start by exploring if these calls can be extracted or generated from existing scenarios. 'Done' means a proposal or implementation for a real-calls/ directory with example flows that a developer can run against a local MCP server.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Context
The MCP conformance suite already exercises real client/server interactions as part of its automated scenarios. However, the actual request/response flows are currently embedded within the suite and its library packages, which makes them difficult to inspect, reproduce, or run manually outside the automated harness.
During conformance testing, it would be useful to have a set of explicit, reusable real-call collections alongside the automated suite.
The goal is not to duplicate the conformance suite, but to make the underlying MCP traffic flows first-class artifacts that can be:
- inspected by humans,
- executed manually against a local MCP server,
- used for debugging and implementation validation,
- consumed by different clients/tools,
- and potentially generated or derived from the existing conformance scenarios.
I have tried a similar workflow while testing the Python SDK against a local MCP server and found that being able to replay concrete MCP calls directly was useful for understanding and debugging protocol behaviour. The current manual workflow, however, requires several steps and is difficult to reproduce consistently.
Proposed direction
Add a dedicated collection/artifact format containing representative real MCP calls, alongside the automated conformance tests.
For example:
conformance/
scenarios/
traceability/
real-calls/
initialize/
tools/
resources/
prompts/
elicitation/
...
Each collection could contain the actual MCP messages/flows required for a scenario, including request parameters and expected response characteristics where appropriate.
The important distinction is:
Automated conformance suite
↓
executes scenarios and validates assertions
Real-call collection
↓
surfaces the actual MCP traffic/flows
↓
human or external client can replay them
Possible formats / execution mechanisms
Postman/Newman-style collections are one possible implementation, but I don't think the proposal should be tied specifically to Postman.
The underlying collection should ideally be usable from multiple clients or execution environments, for example:
- Postman/Newman-style collection
- MCP shell / CLI
- a stateful MCP client
- a lightweight replay harness
- potentially other client implementations
This would allow the same real-call definitions to be reused without requiring every user to adopt a particular tool.
Relationship with the existing conformance suite
One question worth exploring is whether these collections should be:
- authored independently from the automated scenarios,
- generated from the existing scenarios, or
- represented in a common intermediate format from which both automated tests and human-readable/replayable calls can be produced.
Option 2 or 3 could help avoid divergence between what the conformance suite tests and what is exposed as a manual collection.
For example, if a conformance scenario produces:
initialize
↓
notifications/initialized
↓
tools/list
↓
tools/call
↓
response
the same flow could potentially be surfaced as a concrete sequence of MCP messages that a developer can inspect and replay.
This would also make the relationship between the existing traceability YAML → scenario → actual protocol traffic more visible.
Newman / Postman consideration
A Postman/Newman-style approach is attractive because collections are familiar and easy to execute, but Newman and its dependency chain have had security/vulnerability concerns.
Therefore, I would suggest evaluating alternatives rather than making Newman a hard dependency.
For example:
- a tool-neutral collection format,
- MCP-specific CLI/replay tooling,
- an MCP shell,
- or a collection format that can be imported by multiple clients.
The key requirement is the portable representation of real MCP calls, rather than Postman itself.
Why this could be useful
This would provide a middle ground between:
Unit/automated conformance testing
and
completely manual testing from scratch.
A developer implementing an MCP client/server could:
- start their local server,
- point a client/replay tool at it,
- select a conformance call collection,
- execute the real MCP interactions,
- inspect the actual traffic and responses,
- and use the same flows while debugging implementation issues.
It could also make the conformance suite easier to understand for contributors because the protocol interactions behind a scenario would be directly visible.
The intent is to complement the automated conformance suite, not replace it, by making the real protocol interactions themselves reusable and accessible.
cc @olaservo @panyam
- Ngôn ngữ chính
- TypeScript
- Star
- 127
- Fork
- 101
- Merge trung bình
- 4 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 6
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của modelcontextprotocol/conformance
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
modelcontextprotocol/conformance#315 · 1 bình luận ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
modelcontextprotocol/conformance#312 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 40/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
Tất cả issue của modelcontextprotocol/conformance
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
vercel-labs/just-bash#464 ·
-
looksLikeSlug() is ASCII-only, so non-Latin entity slugs (e.g. Korean) skip exact match and collapse Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
TanStack/tanstack.com#1293 ·