MCP spec conformance: 5 requirements violated (via @hasmcp/mcp-spec-test) — spec 2025-11-25
Maintainer thường phản hồi trong vòng 5 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- docker, python
- Lĩnh vực
- api, backend, testing-qa
Hướng nghiên cứu
Bắt đầu với ví dụ weather-server-python và chạy lệnh @hasmcp/mcp-spec-test được báo cáo trên weather.py bằng --spec-version 2025-11-25. Kiểm tra phản hồi tools/list và đường dẫn tuần tự hóa công cụ của máy chủ, sau đó chạy lại bộ kiểm thử tính tuân thủ và xác nhận rằng năm lỗi được báo cáo, bao gồm cả việc liệt kê công cụ của SDK chính thức, đã được giải quyết.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Running the black-box @hasmcp/mcp-spec-test conformance suite against the weather-server-python example in this repo, this time pinned to the older spec revision (2025-11-25) that the server also negotiates, 5 conformance checks fail. The core issue is that tools/list returns a JSON-RPC "Handler returned an invalid result" error, which in turn breaks pagination (nextCursor), the schema check on CallToolResult, and a version-less request; an official-SDK client also fails to list tools against this server. This is a separate report from the one filed for the 2026-07-28 revision, since the failure set is materially different under this revision. It may be an example-server bug in how tools are serialized, or an environment quirk of the test container — happy to have this closed if it's a false positive.
Conformance report
MCP 2025-11-25 conformance report
Verdict: not conformant — 5 requirements violated.
| Target | sh -c '\[ -d /tmp/qr \] || git clone --depth 1 https://github.com/modelcontextprotocol/quickstart-resources /tmp/qr; cd /tmp/qr/weather-server-python && uv run weather.py' |
| Transport | stdio |
| Revision tested | 2025-11-25 |
| Revisions supported | 2026-07-28, 2025-11-25 |
| Passed | 13 |
| Failed | 5 |
| Not verified | 2 |
| Recommended, not met | 1 |
| Cases applied | 20 |
| Duration | 8434ms |
| Generated | 2026-08-24T09:29:48.223Z |
| Tool | @hasmcp/mcp-spec-test 0.1.1 |
Failed (5)
the server deviates from the spec here
Capability methods
- tools/list returns schema-conformant tools
tools/list unexpected JSON-RPC error: {"code":-32603,"message":"Handler returned an invalid result"} - tools/call returns a schema-conformant CallToolResult
tools/list unexpected JSON-RPC error: {"code":-32603,"message":"Handler returned an invalid result"} - following nextCursor terminates and does not repeat a page
page 1: a cursor the server issued was refused: {"code":-32603,"message":"Handler returned an invalid result"}
Version negotiation
- a request with no version at all is served on the default
a version-less tools/list must be served, not refused: {"code":-32603,"message":"Handler returned an invalid result"}
Official SDK interop
- a stock official-SDK client can list tools
MCP error -32603: Handler returned an invalid result
Not verified (2)
skipped; a skip is not a pass
Capability methods
- prompts/get returns messages with a role and content
target advertises the prompts capability but lists no prompts - resources/read returns contents for every sampled resource
target lists no resources to read
Recommended, not met (1)
the spec says SHOULD here, so this is not a conformance failure
Capability methods
- an invalid cursor is rejected with the wrong code
the spec recommends -32602 (Invalid params); got -32603 (Handler returned an invalid result)
Passed (13)
checked and conformant
Capability methods
- tools/call on an unknown tool is an error, not a crash
- prompts/list returns schema-conformant prompts
- resources/list returns schema-conformant resources
- resources/templates/list returns schema-conformant templates
- resources/read on an unknown uri is an error
- an invalid pagination cursor is rejected (SHOULD)
server/discover
- the suite is reading a schema that matches the features it selected
Version negotiation
- initialize returns the schema-required fields
- the handshake settles on the revision under test
- an unsupported version offered at the handshake is refused or downgraded, not echoed
Official SDK interop
- the official SDK does not yet implement the newest revision
- a stock official-SDK client completes the handshake
- the handshake settles on a revision inside the supported window
How to reproduce
With Docker:
docker pull hasmcp/mcp-spec-test:latest
docker run --rm hasmcp/mcp-spec-test -c "sh -c '[ -d /tmp/qr ] || git clone --depth 1 https://github.com/modelcontextprotocol/quickstart-resources /tmp/qr; cd /tmp/qr/weather-server-python && uv run weather.py'" --spec-version 2025-11-25
Without Docker (npx):
npx @hasmcp/mcp-spec-test@latest -c "sh -c '[ -d /tmp/qr ] || git clone --depth 1 https://github.com/modelcontextprotocol/quickstart-resources /tmp/qr; cd /tmp/qr/weather-server-python && uv run weather.py'" --spec-version 2025-11-25
This issue was generated by an automated MCP spec conformance sweep across public MCP server repos. If this doesn't apply here (e.g. an environment artifact of the test container), feel free to close it.
- Ngôn ngữ chính
- TypeScript
- Star
- 1.2k
- Fork
- 692
- Merge trung bình
- 2 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 21
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc 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/quickstart-resources
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 76/100
modelcontextprotocol/quickstart-resources#233 · 1 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
modelcontextprotocol/quickstart-resources#199 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
modelcontextprotocol/quickstart-resources#190 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
modelcontextprotocol/quickstart-resources#46 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Support for recurring tool callsĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
modelcontextprotocol/quickstart-resources#29 ·
Maintainer thường phản hồi trong vòng 5 ngày
Tất cả issue của modelcontextprotocol/quickstart-resources
Issue tương tự
-
nextjs-tracking
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
cloudflare/vinext#3887 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
apache/rocketmq-dashboard#6331 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
bug cache clinical-safety P1-critical
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
juspay/blend-design-system#1788 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Analytics] Add Focus Time-Block Efficiency Ratio Calculator in src/lib/focus/efficiency-ratio.tsĐang mởanalytics beginner friendly community contributions-welcome enhancement good first issue hacktoberfest help wanted up-for-grabs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày