Repository navigation
feat(mcp): take every target app key in open_session's app - #2364
Merged
Merged
Conversation
Contributor
🟢 e2e web: 95 passedAll 95 tests in 43 files
Tested by e2e 0.25.0 · 1m 7s · web · run artifacts |
Contributor
🟢 e2e web agent: 34 passed36 agent steps · 26 replayed from cache · 27 model calls · 140.5k tokens (94% cached) · $0.0059 All 34 tests in 5 files
Tested by e2e 0.25.0 · 1m 31s · web · run artifacts |
Contributor
🟢 e2e android agent: 20 passed24 agent steps · 15 replayed from cache · 39 model calls · 238.1k tokens (88% cached) · $0.0129 All 20 tests in 1 file
Tested by e2e 0.25.0 · 5m 21s · android-emulator · run artifacts |
Contributor
🟢 e2e ios: 67 passed, 1 skippedAll 68 tests in 8 files
Tested by e2e 0.25.0 · 7m 55s · ios-simulator · run artifacts |
Contributor
🟢 e2e ios agent: 21 passed, 1 skipped25 agent steps · 12 replayed from cache · 58 model calls · 409.3k tokens (84% cached) · $0.0257 All 22 tests in 1 file
Tested by e2e 0.25.0 · 7m 51s · ios-simulator · run artifacts |
Contributor
🟢 e2e android: 68 passed, 1 skippedAll 69 tests in 8 files
Tested by e2e 0.25.0 · 10m 41s · android-emulator · run artifacts |
Real-server test opens on a fake device engine package and reads what init received. Drops the session-host test that passed on main. open_session's app description names desktop.
The app schema is loose now: url, bundleId and appPath stay described, any other key goes to resolveConfig, which checks it as a config target's.
…-session-launch-arguments # Conflicts: # docs/reference/mcp.mdx
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 27, 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
open_session'sapptakes every key a config target'sappdoes, for a session opened withengineand no config file:open_session { engine: "@e2e-dev/desktop", app: {bundleId: "com.example.app", launchArguments: ["--profile-directory=Profile 1"]} }launchArguments,permissions,linkBase,identity,environment,command, andreadyUrlall work, and so will any keyTargetAppgains later.Why
The
appschema listed onlyurl,bundleId, andappPath, solaunchArgumentsfailed withUnrecognized keyand a config-less session could not launch its app with arguments, for example a browser's profile flag. Listing one more key would leave the next one to fail the same way.How it works
appschema is a loose object (packages/e2e/src/mcp/session.ts).url,bundleId, andappPathstay described as hints for the agent; other keys pass through.EngineSession.appis an unchecked record (packages/e2e/src/mcp/config.ts).loadEngineConfigalready hands it toresolveConfig, socheckTargetApprefuses unknown keys with a did-you-mean, checks every field, and calls the engine'svalidateApp, exactly as for a config file. No second validator in the MCP layer.docs/reference/mcp.mdxpoints at the config reference instead of listing keys.A typo's error changes from zod's
Unrecognized keyto the config's:app.commandis reachable from the tool call now. A config-less session already imports any installed package the call names, so this adds no new trust boundary.Issue
From a teammate's findings report on the desktop engine; no GitHub issue.
Verified
Ran it locally: yes
e2e mcpfrom the built checkout over stdio, driven by a small MCP client script in a scratch directory with no config file, at 5b85b32:session.appto the engine is unchanged.mcp-server.test.tsopens on a fake device engine package withlaunchArgumentsandpermissionsand reads back the app itsinitreceived, then getsINVALID_CONFIGfor a misspelled key, a bad permission state, a dashed argument name, and a nested argument value, and for both argument forms on@e2e-dev/web.pnpm build,pnpm check,pnpm docs:check, andmcp-server.test.ts(15 passed) at 5b85b32. The fulle2epackage suite was last run at b520b7f.