Skip to content

fix(mcp): align registry changes output schema - #366

Merged
JSONbored merged 2 commits into
mainfrom
codex/propose-fix-for-registry-output-schema
Jun 4, 2026
Merged

fix(mcp): align registry changes output schema#366
JSONbored merged 2 commits into
mainfrom
codex/propose-fix-for-registry-output-schema

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Motivation

  • The MCP registryChangesOutputSchema declared field names (previous, current, added, removed, changed, warnings) that do not match the actual RegistryChangeReport returned by buildRegistryChangeReport, causing schema-aware MCP clients to reject or drop the real diff payload.

Description

  • Update registryChangesOutputSchema in src/mcp/server.ts to advertise the actual fields returned: currentSnapshotId, previousSnapshotId, addedRepos, removedRepos, changedRepos, and summary.
  • Add regression coverage to test/unit/mcp-output-schemas.test.ts to assert the tool gittensory_get_registry_changes exposes the corrected schema properties and no longer advertises the stale names.
  • Seed two registry snapshots in the added test helper and assert the MCP tool call returns schema-valid structuredContent containing addedRepos, removedRepos, changedRepos, currentSnapshotId, previousSnapshotId, and summary.
  • Files changed: src/mcp/server.ts and test/unit/mcp-output-schemas.test.ts.

Testing

  • Ran TypeScript typecheck with npm run typecheck and it succeeded.
  • Ran the focused unit test with npm test -- --run test/unit/mcp-output-schemas.test.ts --reporter=verbose and all tests passed (9/9).

Codex Task

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 4, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
gittensory-ui 3cd4de5 Commit Preview URL

Branch Preview URL
Jun 04 2026, 10:41 AM

@github-actions github-actions Bot added the bug label Jun 4, 2026
@dosubot dosubot Bot added the size:S label Jun 4, 2026
@JSONbored JSONbored self-assigned this Jun 4, 2026
@JSONbored
JSONbored merged commit ecb379b into main Jun 4, 2026
8 checks passed
@JSONbored
JSONbored deleted the codex/propose-fix-for-registry-output-schema branch June 4, 2026 10:43
@github-project-automation github-project-automation Bot moved this from Todo to Done in gittensory - v1 roadmap Jun 4, 2026
@github-actions github-actions Bot mentioned this pull request Jun 4, 2026
12 tasks
@JSONbored JSONbored added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier.

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant