Skip to content

fix(mcp): fix index check and remove dead metrics module#8

Merged
prosdev merged 2 commits into
mainfrom
fix/mcp-install-check
Mar 31, 2026
Merged

fix(mcp): fix index check and remove dead metrics module#8
prosdev merged 2 commits into
mainfrom
fix/mcp-install-check

Conversation

@prosdev

@prosdev prosdev commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fixed dev mcp install failing with "Repository not indexed" after successful indexing — was checking for a stale LanceDB vectors directory instead of metadata.json
  • Removed dead metrics module — MetricsStore, analytics, collector, schema, types, and service were write-only with no consumers after removing dev stats and dashboard
  • Dropped better-sqlite3 native dependency (-36 transitive packages, -2,400 lines)

Test plan

  • dev setup — Antfly starts correctly
  • dev index — indexes 340 files, 2,214 components in ~3s
  • dev mcp install — succeeds (was failing before this fix)
  • dev search "hybrid search" — returns results
  • dev map --depth 2 — shows codebase structure
  • pnpm build — all 8 packages build
  • pnpm test — 1,568 tests pass, 0 failures
  • pnpm typecheck — clean

prosdev and others added 2 commits March 30, 2026 20:04
MCP install/start checked for a local `vectors` directory (LanceDB
artifact) that no longer exists with Antfly. Switch to metadata.json.

Remove the entire metrics module (MetricsStore, analytics, collector,
schema, types, service) — it was write-only with no consumers after
removing `dev stats` and the dashboard. Drops better-sqlite3 native
dependency (-36 transitive packages, -2400 lines).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@prosdev prosdev merged commit 4639c52 into main Mar 31, 2026
1 check passed
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