Skip to content

fix(debugging): Clarify debug attach PID mode#430

Merged
cameroncooke merged 1 commit into
mainfrom
cameroncooke/fix/debug-attach-pid-schema
May 26, 2026
Merged

fix(debugging): Clarify debug attach PID mode#430
cameroncooke merged 1 commit into
mainfrom
cameroncooke/fix/debug-attach-pid-schema

Conversation

@cameroncooke
Copy link
Copy Markdown
Collaborator

Clarify the valid debug_attach_sim attach modes so MCP clients can avoid invalid PID attach calls.

The tool already supported PID attach, but the public schema did not make it clear that bundleId and pid are mutually exclusive or that waitFor only applies to bundle-id attach. This updates the field descriptions and rejects pid + waitFor: true during parameter validation before LLDB is invoked.

This keeps the PID attach path explicit for agents trying to connect to an already-running simulator process without restarting the app.

Fixes #417

Document the valid debug_attach_sim attach modes in the public schema and
reject pid attach calls that set waitFor to true before invoking LLDB.

Fixes #417
Co-Authored-By: OpenAI Codex <noreply@openai.com>
@cameroncooke cameroncooke marked this pull request as ready for review May 26, 2026 20:08
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 26, 2026

Open in StackBlitz

npm i https://pkg.pr.new/xcodebuildmcp@430

commit: 327902e

@cameroncooke cameroncooke merged commit ae1bfe9 into main May 26, 2026
41 checks passed
@cameroncooke cameroncooke deleted the cameroncooke/fix/debug-attach-pid-schema branch May 26, 2026 20:20
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.

Clarify debug_attach_sim argument combinations for PID attach

1 participant