Repository navigation
app: let bundled MCP servers load their own frameworks - #3423
Merged
ashhart merged 3 commits intoNov 18, 2026
Merged
Conversation
This was referenced Nov 15, 2026
Owner
|
Thanks @AIFlowML. Only a command that is exactly an app's Nothing more is needed from you. It's in our landing queue.
|
1 task done
ashhart
force-pushed
the
aiflow/fix-3267-mcp-app-bundle
branch
from
November 18, 2026 17:01
3f7f70f to
53af98c
Compare
Owner
|
Thank you @AIFlowML. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
joshuaswarren
pushed a commit
to joshuaswarren/TensorFold
that referenced
this pull request
Nov 19, 2026
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.
What this changes
MCP servers shipped inside macOS apps can abort before the MCP handshake: the sandbox permits
Contents/MacOS, while dyld needs the app's siblingContents/Frameworksdirectory. This lets the selected executable read its own app'sContents, including bundled frameworks and resources. The bundle stays read-only, and unrelated app bundles remain inaccessible.The regression builds a tiny native app bundle with an
@rpathdylib and launches it through the real MCP sandbox. Before the fix, dyld reportsfile system sandbox blocked open(); after it, the library loads and arguments containing spaces stay intact. Negative controls require an actual permission-denied result, so a timeout or launch error cannot produce a false pass. Passing an app path as an ordinary argument does not grant access to its bundle.964174ea05879e6dde1de1198a3aae3ef8b46a3b; two commits covering the fix and its permission-boundary tests, ending at3f7f70f24ddaa8873f16dbba7e6c3f92020832bd.atc overlap --json: the existing post-rebase scan is retained on this unchanged head; broad coverage is explicitly incomplete (PR/file/time limits). Supplemental coverage at 2026-11-16T09:22:11.895781+00:00 inspected all 416 open PRs, with complete file pagination and previous filenames for 37 large/renamed PRs. Real merge checks against current main, the other 13 contribution heads and overlapping external fix(studio): open the model picker from Planning only #3357, app: pin nested repositories and refuse unprotected worktrees in the Linux sandbox #3364 and fix(app): don't open a blank Thread view for a missing ticket thread #3393 all pass (238/238 checks across this portfolio). Our own cumulative composition passes 36/36 focused files. No known conflicts; future upstream changes require a fresh check.Checks on this head
Verified 16 November 2026, 16:25 Asia/Bangkok. Base for this PR:
e7e24243d63e232b05d4892df4fa01c9a2d6c70b. The published head is unchanged. Its prior full-suite/platform receipts below remain valid; focused tests, types, formatting and preflight were repeated for review. Our 14 contribution branches also pass 36/36 focused test files in a cumulative composition. This is a focused compatibility run, not a full combined-suite result.3f7f70f24ddaa8873f16dbba7e6c3f92020832bd.python3 tools/pr_check.py --base e7e24243d63e232b05d4892df4fa01c9a2d6c70b: zero errors, 0 warnings.node node_modules/jiti/lib/jiti-cli.mjs electron/agent/mcp-app-bundle.test.ts: passes on Apple M5 Max / 128 GB, macOS 27.2, Xcode 27.2, Node 22.23.3. The native C fixture is reached by the standard app runner and loads a sibling dylib through@rpathinsidesandbox-exec. Arguments and paths with spaces remain intact; resource reads pass; bundle writes and unrelated bundle reads fail as expected.Library not loaded: @rpath/libfixture.dylibandfile system sandbox blocked open(). After the fix it exits zero and printsloaded 42.node node_modules/jiti/lib/jiti-cli.mjs electron/agent/mcp-client.test.ts: passes.node node_modules/jiti/lib/jiti-cli.mjs src/lib/plugin-library.test.ts: passes.npm test, npm 10.9.8: 855/856 test files pass; one failure inelectron/agent/sandbox-git-control.test.tsatgit commit still works. That same failure was reproduced on an untouched detached checkout of base3a56d4eb922467685ca73f7487bb5cacd35b63a3with the same dependencies and runtime. The new test ran without skipping. This full run preceded the rebase and final negative-control test hardening; upstream's intervening commits did not change any app file, and the final hardening changes no production behavior.npm run typecheck,npm run build,npm run verify:mobile: pass. Mobile verification includes lock validation, security dependency tests, TypeScript and lint.python3 tools/pr_check.py --base upstream/main: zero errors, zero warnings;git diff --check HEAD^passes. Publication-tree and outgoing author/committer inspection pass.success; Zig format:success; No GPU:success. All 12 applicable upstream checks passed on this head. The two scheduled nightly jobs were skipped.Receipt
n/a: desktop MCP process launch permissions do not change native inference, model arithmetic, sampling or GPU kernels.
.app/Contents/MacOSexecutable.Checklist
Igor Lessio - AIFLOW LABS