Conformance tests for tool-schema handling across the SDK surface

Offen
#3,239 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
api, testing

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
13.8k
Forks
2.5k
Ø Merge
6 T. 23 Std.
Gemergte PRs (30 T.)
2

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus modelcontextprotocol/typescript-sdk

Alle Issues in modelcontextprotocol/typescript-sdk

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.