Skip to content

Fix build_device next step suggesting unsupported --device-id flag#300

Merged
cameroncooke merged 1 commit intogetsentry:mainfrom
trmquang93:fix/287-remove-device-id-from-build-device-next-steps
Apr 26, 2026
Merged

Fix build_device next step suggesting unsupported --device-id flag#300
cameroncooke merged 1 commit intogetsentry:mainfrom
trmquang93:fix/287-remove-device-id-from-build-device-next-steps

Conversation

@trmquang93
Copy link
Copy Markdown
Contributor

Summary

Fixes #287

The list_devices tool included deviceId in nextStepParams for build_device, but build_device does not accept a deviceId parameter -- it builds generically for the iOS device platform without targeting a specific device.

This caused the CLI to render an invalid suggestion:

xcodebuildmcp device build --scheme "SCHEME" --device-id "DEVICE_UDID"

Running this command would fail because build does not recognize --device-id.

Changes

  • Removed deviceId from build_device entry in nextStepParams within list_devices.ts
  • Updated corresponding test assertion in list_devices.test.ts
  • build_run_device and test_device entries correctly retain deviceId since those tools require it

Test plan

  • All 104 device tool tests pass
  • Next-steps-renderer tests pass
  • Pre-commit hooks (format, lint, build, tests) pass

…etsentry#287)

The list_devices tool included deviceId in nextStepParams for
build_device, but build_device does not accept a deviceId parameter
(it builds generically for the iOS device platform). This caused the
CLI to render an invalid suggestion like:
  xcodebuildmcp device build --device-id "DEVICE_UDID"

Remove deviceId from build_device's nextStepParams. The build_run_device
and test_device entries correctly retain deviceId since those tools
require it.
@cameroncooke cameroncooke force-pushed the fix/287-remove-device-id-from-build-device-next-steps branch from 301ca03 to 3e75fb5 Compare April 26, 2026 21:38
@cameroncooke
Copy link
Copy Markdown
Collaborator

Thanks for the contribution @trmquang93. I rebased this branch onto current main (force-pushed, single commit preserved with your authorship) so it can be merged cleanly. The fix is unchanged: drop deviceId from build_device's next-step hint, with the matching test expectation update.

Appreciate you tracking this down.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 26, 2026

Open in StackBlitz

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

commit: 3e75fb5

@cameroncooke cameroncooke merged commit 13bb282 into getsentry:main Apr 26, 2026
7 of 8 checks passed
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.

[Bug]: Docs/code mismatch: device list recommends --device-id, but device build rejects it

2 participants