Skip to content

refactor(mcp): decompose TokenZeroEngine impl into engine_* modules#5

Open
AdityaVG13 wants to merge 2 commits into
mainfrom
refactor/mcp-engine-decomposition
Open

refactor(mcp): decompose TokenZeroEngine impl into engine_* modules#5
AdityaVG13 wants to merge 2 commits into
mainfrom
refactor/mcp-engine-decomposition

Conversation

@AdityaVG13

@AdityaVG13 AdityaVG13 commented Jun 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • Split tokenzero-mcp/src/lib.rs (2487→144 lines) into config.rs + nine engine_* modules
  • Shard tests.rs (3387 lines) into tests/{edit,read,search,session,jsonrpc,...}.rs + support.rs mirroring engine layout
  • Add scripts/split_mcp_tests.py for reproducible isomorphic test splits

Test plan

  • cargo test -p tokenzero-mcp — 156 tests pass
  • cargo clippy -p tokenzero-mcp --all-targets -- -D warnings
  • python3 scripts/check_module_boundaries.py

Demonolith skill

  • EXP-008 + EXP-002 SEAM_CONFIRMED (30-round convergence)

Decompose the 2.5k-line lib.rs facade into config.rs plus engine_* modules
(read, edit, search, shell, fetch, session, etc.) so each concern stays under
the module boundary ceiling. Env toggles and ServeFlight move to config.rs.
Split 111 integration tests and shared support helpers into thematic
modules (edit, read, search, session, jsonrpc, etc.) with scripts/split_mcp_tests.py.
All 156 tokenzero-mcp tests pass unchanged.
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