Title: [Feature]: Add tools to toggle iOS Simulator software keyboard and hardware keyboard connection · Issue #346 · getsentry/XcodeBuildMCP · GitHub
Open Graph Title: [Feature]: Add tools to toggle iOS Simulator software keyboard and hardware keyboard connection · Issue #346 · getsentry/XcodeBuildMCP
X Title: [Feature]: Add tools to toggle iOS Simulator software keyboard and hardware keyboard connection · Issue #346 · getsentry/XcodeBuildMCP
Description: Feature Description Expose the iOS Simulator's two keyboard menu actions as MCP tools: toggle_software_keyboard — equivalent to Simulator → I/O → Keyboard → Toggle Software Keyboard (⌘K). Shows/hides the on-screen software keyboard. togg...
Open Graph Description: Feature Description Expose the iOS Simulator's two keyboard menu actions as MCP tools: toggle_software_keyboard — equivalent to Simulator → I/O → Keyboard → Toggle Software Keyboard (⌘K). Shows/hid...
X Description: Feature Description Expose the iOS Simulator's two keyboard menu actions as MCP tools: toggle_software_keyboard — equivalent to Simulator → I/O → Keyboard → Toggle Software Keyboard (⌘K). Shows...
Opengraph URL: https://github.com/getsentry/XcodeBuildMCP/issues/346
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Feature]: Add tools to toggle iOS Simulator software keyboard and hardware keyboard connection","articleBody":"### Feature Description\n\nExpose the iOS Simulator's two keyboard menu actions as MCP tools:\n\n- `toggle_software_keyboard` — equivalent to `Simulator → I/O → Keyboard → Toggle Software Keyboard` (⌘K). Shows/hides the on-screen software keyboard.\n- `toggle_connect_hardware_keyboard` — equivalent to `Simulator → I/O → Keyboard → Connect Hardware Keyboard` (⇧⌘K). Toggles whether the simulator receives input from the Mac's hardware keyboard.\n\nNeither action is currently available through XcodeBuildMCP. Both are menu-level Simulator.app operations with no direct `xcrun simctl` equivalent, so an agent cannot reach them without driving Simulator.app via AppleScript/accessibility — which is exactly the kind of glue MCP should provide.\n\n### Use Cases\n\n- UI automation / UI tests where the software keyboard must be visible for `tap`-based text entry. With \"Connect Hardware Keyboard\" on (default), tapping a text field does not bring up the software keyboard, which breaks scripted flows that rely on tapping individual keys.\n- Reproducing layout bugs that only occur when the software keyboard is visible (e.g. `keyboardWillShow` adjustments, safe-area insets, scroll-to-input behavior).\n- Recording screenshots/videos that must include the software keyboard.\n- Switching a simulator between \"developer typing on Mac keyboard\" and \"end-user typing on touch keyboard\" without manually navigating menus.\n\n### Example Interactions\n\n```\nYou: Open the notes app in the booted simulator, make the software keyboard appear, and take a screenshot showing it.\nAI: (boots/focuses sim) → toggle_connect_hardware_keyboard(simulatorUuid)\n → tap on the note text field\n → screenshot()\n\nYou: I'm testing keyboardWillShow adjustments. Make sure the hardware keyboard is disconnected so the software keyboard actually appears.\nAI: toggle_connect_hardware_keyboard(simulatorUuid) if currently connected.\n\nYou: Hide the software keyboard so I can see the full view.\nAI: toggle_software_keyboard(simulatorUuid)\n```\n\n### Notes / open design questions\n\n- Both actions are global to the Simulator.app front window rather than per-device; the tool would focus the requested simulator first, then send the keystroke via AppleScript.\n- Alternative implementation for hardware-keyboard: `defaults write com.apple.iphonesimulator ConnectHardwareKeyboard` — persistent but requires a simulator restart. Leaning toward the AppleScript menu/keystroke approach to match manual user behavior and avoid restart. Happy to go the other way if maintainers prefer.\n- Proposed placement: `src/mcp/tools/simulator-management/` alongside `sim_statusbar` and `set_sim_appearance`, since these are Simulator.app settings rather than in-app UI automation.","author":{"url":"https://github.com/yjmeqt","@type":"Person","name":"yjmeqt"},"datePublished":"2026-04-19T08:50:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/346/XcodeBuildMCP/issues/346"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:68fb5fdd-49a0-c450-3c29-48a09247e965 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9ED2:53D51:1EC3F00:2C46ECC:6A4CEE1E |
| html-safe-nonce | 5ca03fcff88b5ef94ae16a58100315d0e8ddd967ee75659178192e8799599150 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUQyOjUzRDUxOjFFQzNGMDA6MkM0NkVDQzo2QTRDRUUxRSIsInZpc2l0b3JfaWQiOiIzMDQ0NjAxNjg2ODM0MDgxMzEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d52e4b54ec7024e88f74b40ed7eb19e9b20c76cb7355ab4d8b3f8722b68aa046 |
| hovercard-subject-tag | issue:4290377949 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/XcodeBuildMCP/346/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a6b5324bb74c86ebc8194e9158c9202fd8ea1f7aee729014c1d7e48e9095ef0f/getsentry/XcodeBuildMCP/issues/346 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a6b5324bb74c86ebc8194e9158c9202fd8ea1f7aee729014c1d7e48e9095ef0f/getsentry/XcodeBuildMCP/issues/346 |
| og:image:alt | Feature Description Expose the iOS Simulator's two keyboard menu actions as MCP tools: toggle_software_keyboard — equivalent to Simulator → I/O → Keyboard → Toggle Software Keyboard (⌘K). Shows/hid... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | yjmeqt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 299b43bca6e02ad35197ffeba30d2466846d5fb02ab96fbced5b5e6cec589fb8 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/XcodeBuildMCP git https://github.com/getsentry/XcodeBuildMCP.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 945551361 |
| octolytics-dimension-repository_nwo | getsentry/XcodeBuildMCP |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 945551361 |
| octolytics-dimension-repository_network_root_nwo | getsentry/XcodeBuildMCP |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | efec6750a5afcaeaf5dfcf629f404cf98c8371e3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width