feat!: drop web UI and REST API — MCP stdio only#3
Merged
Conversation
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.
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
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 suitesModified (~15 files):
src/cli.ts— removed--port, browser mode; kept--mcpas backward-compat no-opsrc/server/graph-store.ts— stripped to MCP-needed exports onlypackage.json— removed 20 deps (next, react, three, tailwind, playwright, etc.)tsconfig.json— removed JSX, DOM, Next.js plugineslint.config.js— removed React/Next.js overridesREADME.md,CLAUDE.md,docs/— rewritten for MCP-only architecturesetGraphsignaturesUnaffected:
src/parser/,src/graph/,src/analyzer/,src/mcp/index.ts,src/types/,src/persistence/,src/search/,src/impact/,src/process/,src/community/Breaking changes
npx codebase-intelligence ./src)--portflag removed--mcpflag kept as no-op for backward compatibility with existing.mcp.jsonconfigsTest plan
pnpm lint— passes (no references to deleted dirs)pnpm typecheck— passes (no React/Next.js type errors)pnpm build— produces onlydist/(no.next/)pnpm test— 131 passed, 3 todo, 0 failures