Skip to content

chore(mcp): migrate packages/loopover-mcp from plain .js to real TypeScript #7291

Description

@JSONbored

Problem (corrected 2026-07-19)

packages/loopover-mcp has 6 plain .js files with no .d.ts declarations at all -- unlike
packages/loopover-miner (which at least has a hand-maintained .d.ts per file, tracked
separately in #7290), this package has zero compiler-verified types on any of its source.

Correction to this issue's original scope: it previously said this was "small enough to be one
reviewable PR." That was wrong -- a real line-count check shows the six files are wildly uneven:

  • lib/cli-error.js -- 27 lines
  • lib/format-table.js -- 58 lines
  • lib/redact-local-path.js -- 58 lines
  • lib/telemetry.js -- 68 lines
  • lib/local-branch.js -- 592 lines
  • bin/loopover-mcp.js -- 6,594 lines

bin/loopover-mcp.js alone is larger than packages/loopover-miner's entire remaining migration
combined. This needs the same phased treatment #7290 already uses, not a single PR.

Proposal

Convert to real .ts source compiled via tsc, mirroring packages/loopover-engine/src/**'s
already-100%-TypeScript precedent. Phased by file size, smallest first:

Deliverables

Test Coverage Requirements

No behavior change from this migration alone. Existing tests must continue to pass unmodified.

Expected Outcome

packages/loopover-mcp's source is real, compiler-verified TypeScript instead of untyped plain JS.

Links & Resources

Metadata

Metadata

Assignees

Labels

gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.gittensor:priorityMaintainer-selected Gittensor priority — scores a 1.5x multiplier.maintainer-onlyOwner-only work — yields no Gittensor points.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions