Skip to content

feat(registry): the drift check fails on an MCP port two tools name - #788

Merged
leemour merged 2 commits into
mainfrom
feat/registry-unique-ports
Nov 28, 2026
Merged

leemour merged 2 commits into
mainfrom
feat/registry-unique-ports

Conversation

@leemour

@leemour leemour commented Nov 28, 2026

Copy link
Copy Markdown
Member

Why

The Desktop integration audit (NEED-2918 B) found that nothing checks MCP ports across tools before release. A WireCat CLI now names its MCP port in its manifest (WireCatLabs/cli-base#739), and Desktop takes it from there (WireCatLabs/wirecat-desktop#501). Desktop notices a clash only at runtime and then refuses the tool's answer.

What

  • manifestPortProblems in scripts/official-tools.ts, run by pnpm registry:drift. It fails when a manifest's desktop.mcpServer.port is outside 8700 to 8769, or when another manifest, the list's mcpPort or Desktop's catalog gives that port to another tool.
  • A tool Desktop does not have yet, whose manifest names a port, no longer needs an mcpPort in registry/official.json.
  • docs/REVIEWING.md says both.

Testing

  • vitest run scripts/official-tools.test.ts: 14 passed, with a new test for each clash and for the committed manifests.
  • biome passes on both files.

🤖 Generated with Claude Code

leemour and others added 2 commits November 28, 2026 06:32
A WireCat CLI now names its MCP port in its own manifest
(desktop.mcpServer.port, cli-base#739), and Desktop takes it from there
(wirecat-desktop#501). Desktop checks for a clash only at runtime, and
then refuses the answer. The drift check now fails first, when a
manifest's port is outside 8700 to 8769, or another manifest, the list's
mcpPort or Desktop's catalog gives it to another tool. A tool whose
manifest names a port no longer needs an mcpPort in official.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The drift check on main has failed since 2026-11-25: registry/official-manifests.json
was behind nine releases, and gcal's accountRemove line no longer differs.
pnpm registry:official, and that line removed. The check passes locally.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leemour
leemour merged commit df48961 into main Nov 28, 2026
3 checks passed
@leemour
leemour deleted the feat/registry-unique-ports branch November 28, 2026 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant