Repository navigation
Remove the experimental MCP Apps transport - #1465
Merged
Merged
Conversation
The inline MCP App was opt-in, Codex's default handoff opens the page in its browser pane, and the experiment's own probe no longer passed. It still had to follow every change to delivery, anchoring and the runtime, including a comments-only snapshot that was a second rendering of the page. Removed: `leaf mcp` and the Codex plugin's MCP server registration; the `mcp_page`/`mcp_server`/`mcp_app` modules and their contract; the `ui://` resource and its build; the probe and experiment captures; the `mcp` and `@modelcontextprotocol/ext-apps` dependencies; their tests. Code that existed only for it goes too: admission's `capture_anchors` recapture, the export's `embedding`/`inline_css_assets` helpers (the export keeps the inliner, now `AssetInliner`, which the delivery tests call), the frameable-server branch of `frame_ancestors_policy`, and `run_async` in the test support. `notes/mcp-apps/PROJECT.md` keeps what experiment 56 found and how to rebuild on the direct-resource design, from `a8ed55e68`. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…_close capture_anchor's prefix/suffix matching and Delivery.body_end had one producer each, the removed recapture and the MCP page-ready script; the sample child's frame policy moves onto SampleEndpoint. Prose that described the recapture, and the MCP note's rebuild pointer, are corrected. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # skills/leaf/scripts/leaf/mcp-app.md # skills/leaf/scripts/leaf/mcp_server.py # skills/leaf/scripts/leaf/structure.py # tests/shift_watch.js # tests/test_mcp_app.py # tests/test_revision_delivery.py
leaf-agent
approved these changes
Sep 30, 2026
leaf-agent
pushed a commit
that referenced
this pull request
Oct 12, 2026
Code-quality survey item F17. The event endpoint read a browser retry's attempt in `_accepted_retry` before admission, merging the stored comment anchor into the retry first, and `append_admitted` read it again under the same lease, and the append a third time. The anchor merge answered an enrichment only the MCP Apps transport made, removed in #1465. `append_admitted` now returns `(record, appended)`, so the endpoint gates the nudge and the thread-title request on whether this request appended, and answers `AttemptConflict` with the same 409. The endpoint stamps the author once, before validation, and `browser_command_error` no longer restates the rule. Attempt identity is derived from the append envelope, `$events.ownership.derived`, author and publication; events.md and the registry description stop saying `browser_discard` shapes it, and both name `post_reply`'s looser CLI retry rule. Also: the stale `append_admitted` docstring about `contract_writer` exiting (gone since #2328), and presence reads the claim's id and turn fields directly, since `readable_claim` always supplies them. No user-visible behavior changes. > _This was written by Claude Code on behalf of max-sixty_ Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.
Leaf's MCP Apps transport was an opt-in experiment. Codex's default handoff opens the page in its browser pane instead, and the experiment's own probe had stopped passing. It still had to follow every change to delivery, anchoring and the runtime. Every Codex install started
leaf mcpand showed the model aleaf_presenttool. Its comments-only snapshot was a second rendering of the page, which every thread and anchoring change also had to update. This removes the transport. A rebuild would start from the experiment's direct-resource design rather than from this code.Removed
leaf mcpand the Codex plugin'smcpServersregistration.mcp_page.py,mcp_server.py,mcp_app.pyandmcp-app.md.ui://resource (skills/leaf/mcp-app/) and its build (build/mcp-app/,build_mcp_app).notes/mcp-apps/.mcpPython dependency and the@modelcontextprotocol/ext-appsJS dependency, from both lockfiles and the browser build manifest.page_serverfixture andrun_async.Code that existed only for it
capture_anchors). No remaining writer asked for that, sinceleaf thread opencaptures before it writes.capture_anchor's prefix/suffix matching goes with it; its only caller was that re-capture.embedding,inline_css_assetsand_file_reader. It keeps its inliner, renamedAssetInlinerbecause the delivery tests call it.Delivery.body_endandSourceDocument.body_close. They existed only to inject the MCP page-ready script.frame_ancestors_policyis always sent, and a sample'sframe-ancestors 'self'is now a class attribute onSampleEndpoint.Docs
References,
AGENTS.md,build/AGENTS.md,scripts/AGENTS.md,validation.md,events.md,TODO.mdand the notes are updated to match.notes/mcp-apps/PROJECT.mdnow records:a8ed55e68;TODO.mdkeeps one entry to rebuild it.Tests
wt hook pre-mergepassed locally before main was merged in. That covers 1418 tests plus the browser and worker gates. The merge conflicts with #1456, which touched the deleted MCP files and the frame-policy comment, are resolved by keeping the deletions and taking main's text.🤖 Generated with Claude Code