refactor(server): integrate session MCP command stack#893
Open
boudra wants to merge 7 commits into
Open
Conversation
This was referenced May 10, 2026
760671c to
e75e898
Compare
d8ca821 to
bfd6e3a
Compare
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
Integration PR for the Session/MCP command-boundary refactor stack. This is intentionally held as a draft until after the current stable release ships.
Included stack:
ea1390f9Extract permission response command30a5acc6Extract create agent commandfee2f4e8Extract agent lifecycle commands46794facrefactor(server): extract worktree archive commandc494969brefactor(server): share worktree create list commandsIntent
Session and the Agent MCP server are both entrypoints into the same daemon operations. This stack moves overlapping business orchestration into shared command modules so the entrypoints stay as transport adapters and stop drifting.
Release posture
Do not merge before the stable release. Keep this PR open as the single integration branch, then merge it once the release bug work is done and stable has shipped.
Verification
Each stacked PR/agent ran targeted tests plus format/typecheck/lint for its slice. CI should be the final gate for this integration branch.