Skip to content

mcpx: docs-link guard mistakes MCP tool methods for repository paths #5211

Closed

Description

@dezren39

Problem

During triage of #2545 on fetched main (6aeb038a0cd64b5057912edac71d4c2744a8b5d6, 2026-11-03), the concrete stale references from that issue are already resolved: docs/catalogue/ exists (README added by merged PR #2567) and plugin/opencode/v2/ exists. However, cd pkgs/mcpx && go test ./internal/defaults/ -run TestEveryDocumentationLinkResolves still fails with 147 reported missing paths. The failures include protocol method names such as tools/call, tools/list, and tools/list_changed from docs/spec and docs/protocol; these are MCP method identifiers, not filesystem paths.

internal/defaults/links_test.go treats backticked strings as path references when pathShaped matches and the first component is a top-level directory (tools), so protocol identifiers become false positives. The exact three references named in #2545 do not appear in the current failure output.

Acceptance

  • The guard distinguishes protocol identifiers such as tools/call, tools/list, and tools/list_changed from repository paths.
  • It still catches genuine missing repository paths and resolves relative Markdown links.
  • go test ./internal/defaults/ -run TestEveryDocumentationLinkResolves passes in pkgs/mcpx.

Related: #2545 (the specific dangling doc references were fixed), #2534 (main-broken umbrella).

Activity

  1. added
    bugSomething isn't working
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    source/queue-workerFiled or worked by the queue/worker pilot
    priority/highImportant and time-sensitive
    queue/queuedHas a queued task in the Supabase agent queue
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    effort/sSmall: expected under 2 hours of work
    and removed
    queue/queuedHas a queued task in the Supabase agent queue
    on Nov 3, 2026
  2. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed from triage

  3. added
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 4, 2026
  4. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    Intake review

    Related: Surfaced during triage of #2545; stale references there were resolved by merged PR #2567.

    Notes: Body already carries an Acceptance section (the guard must distinguish MCP protocol identifiers like tools/call, tools/list, tools/list_changed from repository paths while still catching genuine missing paths) — no body edit this pass; the section heading is '## Acceptance' rather than '## Acceptance criteria', which is why the digest flagged it. Verified still live this run: the triage evidence in the body is from fetched main 6aeb038 (2026-11-03) with go test ./internal/defaults/ -run TestEveryDocumentationLinkResolves failing on 147 reported paths including the protocol identifiers; the #2545 references named in the body are already resolved by merged PR #2567, so this issue is only the guard's false-positive class. Labels were already complete (kind/bug, task/small-fix, priority/high, effort/s, app/mcpx) — this pass adds meta/enriched only. Suggested approach: exclude scheme-like/protocol method identifiers at the pathShaped gate or denylist the MCP method namespace in internal/defaults/links_test.go, with a regression case per identifier named in the body.

    — fleet monitor intake (protocol §5), 2026-11-03 18:12 CST run. Verified still live this run per the notes above.

  5. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 4, 2026
  6. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane code-u
    • Session / ID: task 9454
    • Found via: queue claim
    • Task: Fix the mcpx docs-link guard in pkgs/mcpx/internal/defaults/links_test.go so MCP protocol method identifiers (tools/call, tools/list, tools/list_changed) are not treated as repository paths, while genuine missing paths are still caught.
    • Expectation: effort/s; done = branch + PR with the guard fix, TestEveryDocumentationLinkResolves passing in CI.
    • Links: issue mcpx: docs-link guard mistakes MCP tool methods for repository paths #5211
  7. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  8. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

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

Metadata

Metadata

Assignees

Labels

app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)bugSomething isn't workingeffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivesource/queue-workerFiled or worked by the queue/worker pilottask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions