Skip to content

refactor(cli): extract service layer for MCP reuse#32

Closed
Telvary wants to merge 1 commit into
MaximeGaudin:mainfrom
Telvary:feat/service-layer-pr1
Closed

refactor(cli): extract service layer for MCP reuse#32
Telvary wants to merge 1 commit into
MaximeGaudin:mainfrom
Telvary:feat/service-layer-pr1

Conversation

@Telvary

@Telvary Telvary commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Extracts read/write business logic from CLI command handlers into crates/void-cli/src/service/ (reads.rs, writes.rs).
  • CLI commands become thin wrappers that delegate to the service layer and handle formatting/printing.
  • Pure refactor — no user-facing behavior change, no new dependencies. Prepares for the MCP server in follow-up PRs.

Deferred to later PRs: void mcp subcommand, rmcp/schemars deps, MCP read/write tools, run tool, triage_inbox prompt, remote-mode write guards, MCP docs/tests.

Test plan

  • ./scripts/check.sh passes (fmt, clippy, tests)
  • CHANGELOG.md updated under [Unreleased] (internal service layer entry)
  • Docs updated — N/A (no behavior or flag changes)

Made with Cursor

Prepares for the MCP server by moving business logic out of command handlers into service/reads and service/writes, with CLI commands as thin wrappers. No user-facing behavior change.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Telvary Telvary requested a review from MaximeGaudin as a code owner June 22, 2026 21:01
@Telvary Telvary closed this by deleting the head repository Jun 22, 2026
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