Skip to content

Swift6 - #157

Merged
johnno1962 merged 7 commits into
mainfrom
swift6
May 22, 2026
Merged

Swift6#157
johnno1962 merged 7 commits into
mainfrom
swift6

Conversation

@johnno1962

Copy link
Copy Markdown
Owner

No description provided.

@johnno1962
johnno1962 force-pushed the swift6 branch 4 times, most recently from b0b1791 to 34638f4 Compare May 20, 2026 12:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends InjectionNext’s MCP/ControlServer integration by adding client-side screenshot capture plus real touch event capture and replay, with corresponding server-side commands and CLI helpers.

Changes:

  • Add UIKit touch capture (JSON) and replay support in the C/ObjC client, wired through new InjectionCommand/InjectionResponse cases.
  • Add screenshot capture support (UIKit/AppKit) in the Swift client and a synchronous screenshot request flow in the macOS InjectionNext app.
  • Expand the MCP server (tools + docs) and bundle the mcp-server resources into the app package.

Reviewed changes

Copilot reviewed 20 out of 20 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
Sources/InjectionNextC/InjectionTouchEvents.mm Implements UIKit touch capture to JSON and touch replay via UITouchesEvent internals.
Sources/InjectionNextC/include/InjectionTouchEvents.h Declares touch capture/replay APIs for the client.
Sources/InjectionNextC/include/InjectionClient.h Adds new command/response enum cases for screenshot + touch events.
Sources/InjectionNext/InjectionNext.swift Serializes responses, adds screenshot capture, and handles new screenshot/touch commands.
README.md Updates top-level docs to mention MCP screenshot + touch event support.
Package.swift Sets swiftLanguageVersions and keeps existing CSettings propagation.
mcp-server/touch-events.js Adds a CLI for fetching/replaying recorded touch events via MCP tools.
mcp-server/take-screenshot.js Adds a CLI for capturing a PNG screenshot via MCP tools.
mcp-server/README.md Documents new MCP tools and terminal workflows for screenshot/touch events.
mcp-server/package.json Adds npm scripts for the new CLIs.
mcp-server/index.js Adds MCP tools: take_screenshot, get_touch_events, replay_touch_events, and configurable timeouts.
App/InjectionNext/InjectionServer.swift Adds screenshot request plumbing + touch event buffering; triggers capture on connect when MCP is enabled.
App/InjectionNext/Info.plist Bumps build number.
App/InjectionNext/ControlServer.swift Adds ControlServer actions to take screenshots and get/replay touch events.
App/InjectionNext/build_bundles.sh Copies mcp-server into the app bundle resources.
App/InjectionNext.xcodeproj/project.pbxproj Adds new source/header references and bumps marketing version to 2.0.1.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Sources/InjectionNextC/InjectionTouchEvents.mm
Comment thread Sources/InjectionNextC/InjectionTouchEvents.mm Outdated
Comment thread App/InjectionNext/InjectionServer.swift
Comment thread App/InjectionNext/build_bundles.sh Outdated
Comment thread README.md Outdated
Comment thread mcp-server/take-screenshot.js
@johnno1962
johnno1962 force-pushed the swift6 branch 4 times, most recently from 0ab8750 to c02dfe5 Compare May 21, 2026 20:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 22 out of 22 changed files in this pull request and generated 4 comments.

Comment thread Sources/InjectionNextC/InjectionTouchEvents.mm
Comment thread Sources/InjectionNextC/InjectionTouchEvents.mm
Comment thread Sources/InjectionNext/InjectionNext.swift
Comment thread App/InjectionNext/ControlServer.swift
@johnno1962
johnno1962 merged commit 677c7d4 into main May 22, 2026
1 check 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.

2 participants