Skip to content

feat!: drop web UI and REST API — MCP stdio only#3

Merged
bntvllnt merged 3 commits intomainfrom
feat/mcp-only
Mar 3, 2026
Merged

feat!: drop web UI and REST API — MCP stdio only#3
bntvllnt merged 3 commits intomainfrom
feat/mcp-only

Conversation

@bntvllnt
Copy link
Owner

@bntvllnt bntvllnt commented Mar 3, 2026

Summary

  • Strip Next.js app router, React components, Express server, REST API, Playwright E2E tests, and HTTP MCP transport
  • Package is now a pure MCP stdio analysis engine — 81 files changed, 7161 lines deleted
  • Core pipeline (parser → graph → analyzer → MCP) entirely preserved, zero regressions

What changed

Deleted (~40 files): app/, components/, hooks/, lib/, e2e/, public/, config files (next.config.ts, postcss.config.mjs, playwright.config.ts), HTTP MCP transport, web-specific test suites

Modified (~15 files):

  • src/cli.ts — removed --port, browser mode; kept --mcp as backward-compat no-op
  • src/server/graph-store.ts — stripped to MCP-needed exports only
  • package.json — removed 20 deps (next, react, three, tailwind, playwright, etc.)
  • tsconfig.json — removed JSX, DOM, Next.js plugin
  • eslint.config.js — removed React/Next.js overrides
  • README.md, CLAUDE.md, docs/ — rewritten for MCP-only architecture
  • Test files — removed web-specific test blocks, updated setGraph signatures

Unaffected: src/parser/, src/graph/, src/analyzer/, src/mcp/index.ts, src/types/, src/persistence/, src/search/, src/impact/, src/process/, src/community/

Breaking changes

  • Browser mode removed (was default npx codebase-intelligence ./src)
  • REST API removed (13 endpoints)
  • --port flag removed
  • --mcp flag kept as no-op for backward compatibility with existing .mcp.json configs

Test plan

  • pnpm lint — passes (no references to deleted dirs)
  • pnpm typecheck — passes (no React/Next.js type errors)
  • pnpm build — produces only dist/ (no .next/)
  • pnpm test — 131 passed, 3 todo, 0 failures
  • All 15 MCP tools verified functional
  • No orphan imports referencing deleted files
  • Code review: WARNINGS_ONLY (zero blockers)

Strip Next.js app router, React components, Express server, REST API,
Playwright E2E tests, and HTTP MCP transport. Package is now a pure
MCP stdio analysis engine.

- Delete app/, components/, hooks/, lib/, e2e/, public/ directories
- Delete next.config.ts, postcss.config.mjs, playwright.config.ts
- Simplify cli.ts: remove --port, browser mode, keep --mcp as no-op
- Strip graph-store.ts to MCP-needed exports only
- Remove 20 deps (next, react, three, tailwind, playwright, etc.)
- Remove JSX, DOM, Next.js plugin from tsconfig
- Update README, CLAUDE.md, docs for MCP-only architecture
- Remove web-specific test suites, update remaining tests

Core pipeline (parser → graph → analyzer → MCP) unchanged.
All 131 tests pass. All quality gates green.

BREAKING CHANGE: browser mode and REST API removed.
--mcp flag kept as backward-compatible no-op.
@bntvllnt bntvllnt self-assigned this Mar 3, 2026
bntvllnt added 2 commits March 3, 2026 17:31
- Add tests/mcp-tools.test.ts: 47 tests covering all 15 MCP tools,
  2 prompts, 3 resources via Client + InMemoryTransport
- Add tests/graph-store.test.ts: 5 tests for full graph-store coverage
- Configure vitest coverage: v8 provider, 80% thresholds, exclude
  cli.ts and types/
- Add .github/workflows/ci.yml: lint/typecheck/build/test on PRs,
  Node 18/20/22 matrix, auto-publish to npm on v* tags

Coverage: 64.95% → 96.3% statements, 85.47% branch, 98.18% functions
@bntvllnt bntvllnt merged commit 584227e into main Mar 3, 2026
4 checks passed
@bntvllnt bntvllnt deleted the feat/mcp-only branch March 3, 2026 16:40
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