Skip to content

Add env parameter to XcodeBuildMCP launch tools for passing environment variables#203

Open
kamal wants to merge 1 commit intocameroncooke:mainfrom
kamal:add-env-var-support
Open

Add env parameter to XcodeBuildMCP launch tools for passing environment variables#203
kamal wants to merge 1 commit intocameroncooke:mainfrom
kamal:add-env-var-support

Conversation

@kamal
Copy link

@kamal kamal commented Feb 6, 2026

Summary

  • Add env parameter to launch_app_sim, launch_app_logs_sim, and launch_app_device tools so environment variables can be passed to launched apps
  • Add normalizeSimctlChildEnv utility (mirrors existing normalizeTestRunnerEnv) that auto-prefixes keys with SIMCTL_CHILD_
  • For physical devices, passes env vars as --environment-variables KEY=VALUE flags to devicectl

Motivation

Launching apps against staging/dev environments requires passing environment variables to the app process. Previously this meant falling back to raw simctl commands (SIMCTL_CHILD_X=1 xcrun simctl launch ...). Now all three launch tools accept an env parameter directly.

@cameroncooke
Copy link
Owner

Thanks for this, will look at this shortly

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 6, 2026

Open in StackBlitz

npm i https://pkg.pr.new/cameroncooke/XcodeBuildMCP/xcodebuildmcp@203

commit: 9c58546

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.

2 participants