Conformance tests for tool-schema handling across the SDK surface

Đang mở
#3,239 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

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
35/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ệ
typescript
Lĩnh vực
api, testing

Hướng nghiên cứu

Read the TypeScript SDK’s schema serialization and deserialization paths across protocol versions, then identify the existing test entry points for tool schemas. Try the linked corpus with those conversion functions using runCorpus() and profileConverter(). Done means a shared regression suite checks schema fidelity and reports dropped or changed constraints with useful counterexamples.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

The MCP ecosystem keeps running into schema-fidelity questions: what a client declares vs. what a server/provider actually enforces. We packaged a small corpus + checker (schema-conformance on npm) that flags dropped/changed constraints with JSON paths and generates concrete counterexample values.

If the SDK team ever wants a shared regression suite for schema serialization/deserialization across protocol versions, this might save everyone a bespoke test suite. runCorpus() self-checks the corpus; profileConverter() audits any conversion function.

Repo: https://github.com/Kopachelli/schema-conformance — MIT, zero deps.

Ngôn ngữ chính
TypeScript
Star
13.8k
Fork
2.5k
Merge trung bình
6 ngày 23 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của modelcontextprotocol/typescript-sdk

Tất cả issue của modelcontextprotocol/typescript-sdk

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.