feat(registry): add verification record, fix registry schema drift#10
Merged
Conversation
The on-disk registry.json uses {schema_version, apis} but RegistryIndex's
JSON tags read {version, entries}, so FetchIndex/LoadCachedIndex parsed the
real catalog to an empty index -- mint registry list/search/install silently
returned zero entries. Map the tags to the canonical on-disk keys so mint
parses the real shape; the in-memory Version/Entries field names are unchanged.
Add an optional Verification block (tier, verified_at, verifier_version,
failure_code, notes) to RegistryEntry per ADR-179/180, and a round-trip test
against the real mcp-registry/registry.json (skips when the sibling checkout is
absent) plus an always-on golden sample covering the verification record.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The on-disk
registry.jsonuses{schema_version, apis}, but mint'sRegistryIndexJSON tags read{version, entries}. As a resultFetchIndex/LoadCachedIndexparsed the real catalog into an empty index, somint registry list/search/installsilently returned zero entries against the live registry.Changes
RegistryIndexJSON tags to the canonical on-disk keys (schema_version→Version,apis→Entries). The in-memory field names (Version/Entries) are unchanged — this is the low-risk adapter, not a struct-shape change.Verificationblock (tier,verified_at,verifier_version,failure_code,notes) toRegistryEntryper ADR-179/180.mcp-registry/registry.json(skips when the sibling checkout is absent; setMINT_REGISTRY_FILEto force), plus an always-on golden sample covering the verification record.Verification
go test ./...green (full suite).No entries found; this branch → 2,582 entries, andregistry search stripereturns results.Paired with sirerun/mcp-registry (schema + backfill of all 2,582 entries to
tier: t1).