Skip to content

refactor(server): integrate session MCP command stack#893

Merged
boudra merged 11 commits into
mainfrom
integration-session-mcp-command-stack
May 27, 2026
Merged

refactor(server): integrate session MCP command stack#893
boudra merged 11 commits into
mainfrom
integration-session-mcp-command-stack

Conversation

@boudra

@boudra boudra commented May 10, 2026

Copy link
Copy Markdown
Collaborator

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:

  • ea1390f9 Extract permission response command
  • 30a5acc6 Extract create agent command
  • fee2f4e8 Extract agent lifecycle commands
  • 46794fac refactor(server): extract worktree archive command
  • c494969b refactor(server): share worktree create list commands

Intent

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.

@boudra boudra force-pushed the integration-session-mcp-command-stack branch from 760671c to e75e898 Compare May 16, 2026 03:06
@boudra boudra marked this pull request as ready for review May 16, 2026 09:01
@boudra boudra force-pushed the integration-session-mcp-command-stack branch from d8ca821 to bfd6e3a Compare May 16, 2026 14:46
@boudra boudra force-pushed the integration-session-mcp-command-stack branch 2 times, most recently from 44d16b4 to 76f6945 Compare May 27, 2026 03:40
boudra added 11 commits May 27, 2026 12:50
After the rebase, MCP `update_agent` was returning `success: false` for empty/no-op calls (no name, no labels, no settings). Origin/main returned `success: true` unconditionally. The audit flagged the change as out of scope for this stack — restore the old behavior at the MCP boundary.

Session WS path keeps its accepted/rejected semantics (it surfaces an error when nothing was provided so the client can prompt the user).
@boudra boudra force-pushed the integration-session-mcp-command-stack branch from 76f6945 to b950153 Compare May 27, 2026 05:52
@boudra boudra merged commit 5696cdb into main May 27, 2026
14 checks passed
@boudra boudra deleted the integration-session-mcp-command-stack branch May 27, 2026 14:43
boudra added a commit that referenced this pull request May 27, 2026
Files added by upstream PRs (#893, #1147, #1154) referenced the pre-split
shared/ paths that this branch moves into @getpaseo/protocol. Redirect
those imports to the protocol package so typecheck stays green after the
rebase.
boudra added a commit that referenced this pull request May 27, 2026
Files added by upstream PRs (#893, #1147, #1154) referenced the pre-split
shared/ paths that this branch moves into @getpaseo/protocol. Redirect
those imports to the protocol package so typecheck stays green after the
rebase.
boudra added a commit that referenced this pull request May 27, 2026
Files added by upstream PRs (#893, #1147, #1154) referenced the pre-split
shared/ paths that this branch moves into @getpaseo/protocol. Redirect
those imports to the protocol package so typecheck stays green after the
rebase.
boudra added a commit that referenced this pull request May 27, 2026
* Extract client SDK package

* Polish SDK client identity defaults

* Build client before dependent CI jobs

* Restore daemon client server export

* Extract protocol and client SDK packages

* Fix provider override schema validation

* Fix app test daemon client imports

* Simplify workspace build targets

* Fix CLI test server build bootstrap

* Run SDK package tests in CI

* Fix rebase package split drift

* Restore lockfile registry metadata

* Update SDK config test for prompt default

* Move terminal stream router test to client package

* Fix rebase drift for protocol imports

* Fix SDK agent capability fixture

* Restore legacy server client exports

* Fix server export compatibility test

* Advertise custom mode icon client capability

* Remove server daemon-client exports

* Format rebased mode control import

* Fix rebase drift for protocol imports

Files added by upstream PRs (#893, #1147, #1154) referenced the pre-split
shared/ paths that this branch moves into @getpaseo/protocol. Redirect
those imports to the protocol package so typecheck stays green after the
rebase.
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