Skip to content

[Task]: Canonical MCP tool surface has no single source of truth — drift across 3 hand-maintained spots #352

Closed

Description

@sumithr

Source: PR #344 (#145), corroborated by #342 (#148).

Adding an MCP tool requires hand-editing three silently-coupled spots plus the generated snapshot: installer.REQUIRED_TOOL_NAMES (+ its count assertion in test_installer_verify), the exact-set assertion in test_server, and the auto-derived e2e count — only the tools/list snapshot has a generator. The test_server header comment is already wrong on main ("21 atomic + 14 skill = 35" while 25 atomic are registered → 39).

Fix: derive REQUIRED_TOOL_NAMES (and the count assertions) from the live build_mcp_server() registry so there is one source of truth and the three hand-maintained spots can't drift.

Activity

  1. added
    bug
    priority: next
    on Jun 4, 2026
  2. sumithr commented on Jun 5, 2026

    @sumithr
    OwnerAuthor

    Backlog refinement note (2026-06-05): ready as a concrete drift-prevention bug fix.

    Problem: the canonical MCP tool list is hand-maintained in multiple places, and at least one count/comment already drifted from the live server registry.
    Expected outcome: derive installer verification names and count assertions from build_mcp_server() or a single generated registry source.
    Scope: installer required-tool verification, server tests, e2e count assertions, and snapshot regeneration only where the source of truth requires it.
    Acceptance criteria: adding/removing a tool requires changing one registry source; tests fail clearly on real tool surface drift; stale hand-written counts/comments disappear; current tool snapshot remains intentional.
    Test plan: installer verify tests, server tool-list tests, tools/list snapshot test, and the smallest e2e count check covering the derived source.
    Boundary: do not change tool behavior or descriptions while fixing registry ownership.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-taskbugpriority: nexttooling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions