Skip to content

feat: make MCP workspaces request-stateless - #230

Merged
ejgallego merged 11 commits into
mainfrom
codex/workspace-followups
Aug 12, 2026
Merged

feat: make MCP workspaces request-stateless#230
ejgallego merged 11 commits into
mainfrom
codex/workspace-followups

Conversation

@ejgallego

@ejgallego ejgallego commented Aug 11, 2026

Copy link
Copy Markdown
Owner

This PR makes Lean Beam's local MCP application state request-stateless ahead of the 2026-07-28 wire-protocol update. Every workspace-bound tool now carries an explicit typed local workspace descriptor, so unrelated requests no longer depend on a mutable default workspace, startup root, Roots negotiation, or prior initialization call.

  • Canonical roots lazily select private broker caches, and lean_drop_workspace is idempotent cache eviction that invalidates only that runtime’s handles.
  • The current 2025-11-25 handshake remains in place; server/discover, per-request protocol metadata, modern result envelopes, and request-scoped logging remain follow-up work.
  • This removes obsolete MCP init/list/root code, separates legacy protocol state from application cache state, closes descriptor schemas and decoding, and adds multi-root isolation and lifecycle regression coverage.

@ejgallego
ejgallego force-pushed the codex/workspace-followups branch from 4313da1 to 7fa6014 Compare August 11, 2026 20:14
@ejgallego
ejgallego force-pushed the codex/workspace-followups branch from 7e751c4 to 452ed22 Compare August 11, 2026 21:44
@ejgallego
ejgallego marked this pull request as ready for review August 12, 2026 17:27
@ejgallego
ejgallego merged commit a5fc584 into main Aug 12, 2026
25 of 29 checks passed
@ejgallego
ejgallego deleted the codex/workspace-followups branch August 12, 2026 17:30
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