Skip to documentation
GlintDocs
Buy me a coffee on Ko-fiWebsite ↗
DEVELOPER GUIDE

AI & MCP

Test your real iPhone with your AI assistant.

USB requiredRuns on your MacUnlocked iPhone

Glint gives a compatible AI client tools to see your iPhone’s screen, interact with apps and check the result. Connect locally through MCP, then keep your iPhone awake during the test.

USB, for now.

Wi-Fi mirroring is separate. MCP currently needs a trusted USB connection and live video in Glint. Input and app tools also need the native control runtime.

Install and connect

Start with USB viewing. You only need to register Glint in your AI client once.

  1. Connect your iPhone.

    Use a USB data cable, unlock the phone and approve Trust on the physical device. Start mirroring in Glint.

  2. Open AI & MCP in Glint.

    Go to Settings → AI & MCP → Add to AI client.

  3. Choose your client and access duration.

    Select Codex or Claude Code, review the duration, then click Install & connect.

  4. Refresh your AI client.

    Start a new session or reopen it to load Glint’s tools. The client’s own tool approvals still apply.

CodexGuided CLI registration
Claude CodeGuided CLI registration
Claude DesktopSave & open Glint.mcpb

Claude Desktop needs MCPB 0.4 with UV server support. Its extension installation has not yet been verified on the development Mac. The CLI options require the client’s CLI to be installed.

The duration picker does not turn access on.

Choose a duration first, then confirm with Install & connect. See access settings for what happens after lock, expiry or restart.

Other MCP clients

Glint uses standard local stdio MCP. Other clients can connect if they support that transport and compatible protocol negotiation.

Manual setup for another client
  1. Find your AI app’s local MCP server configuration.
  2. In Glint, choose AI & MCP → Add to AI client → Copy server command (advanced).
  3. Register that command as a local stdio server. Follow the client’s format if it separates the executable and arguments.
  4. Refresh the client and check that Glint’s tools appear.

Manual registration does not replace phone-access approval in Glint.

The client and Glint must run on the same Mac. A remote-only service cannot launch your local stdio server directly. Other clients have not all been tested. Read the MCP transport specification ↗

What your assistant can do

See the screen

Fresh screenshots and local OCR. Check what is visible before acting.

Use the app

Tap, swipe, type ASCII text, navigate Back and return Home.

Open apps

List installed apps and launch one by its bundle identifier.

Verify a flow

Wait for text, assert a result and repeat a bounded workflow.

Record a test

Save a short, silent MP4 locally. Stop from Glint or your agent.

Inspect console output

Request captured app stdout/stderr. Delivery is not yet verified.

All 22 tools Reference
Readiness
glint_statusglint_capabilities
Screen
glint_screenshotglint_inspect
Connection
glint_connectglint_disconnectglint_stop
Input
glint_tapglint_swipeglint_typeglint_home
Apps
glint_list_appsglint_launch_appglint_open_url
Console
glint_app_logsglint_stop_logs
Recording
glint_record_startglint_record_statusglint_record_stop
Verification
glint_wait_for_textglint_assert_textglint_run_workflow

glint_stop stops AI access. glint_disconnect also stops mirroring. These can remove remembered approval.

Deep links need full Xcode.

glint_open_url requires devicectl with --payload-url support. Execution is not yet verified on the current development Mac.

Verified on a real iPhone

These representative checks passed on one development Mac and iPhone:

  • Open Clock and Settings
  • Tap into General and go Back
  • Return to the Home Screen
  • Swipe between app pages
  • Type and clear a search term
  • Open Control Center and notifications
  • Read screenshots and OCR
  • Run text checks and a workflow
  • Record and stop a local video

This does not certify every app, protected screen or OS version. App console-line delivery and deep-link execution remain unverified. There is no MCP lock command; unlocking a secured iPhone is a physical owner action.

Try a small workflow

Start with a harmless task and ask the agent to check the visible result.

Open Settings on my connected iPhone.
Wait for the Settings title and confirm it is visible.
10 steps maximum30 sec workflow budgetStops at the first failure

Earlier actions are not undone if a later step fails. For direct input or app launch, inspect first and use the returned fresh frameID. A workflow obtains fresh observations for its mutation steps automatically.

Recording and app logs

Video recording

Ask the agent to start a short recording, perform the test and stop it. You can also use Recording · Stop in Glint.

  • Up to 60 seconds at 30 fps
  • H.264 MP4, without audio
  • Ends at its time limit or when stopped
  • Workflow recordings finalize when the workflow ends

App console

Launch by bundle identifier with console capture enabled, read the bounded buffer and stop capture afterward.

  • App stdout/stderr only
  • No device-wide logs or crash reports
  • Already-running apps may not attach
  • Successful launch may produce no lines

Recordings and workflow reports stay in Glint’s local DeveloperArtifacts folder. Recording status reports whether capture is active and returns the current session’s finalized file. Review artifacts before sharing.

Access, lock and reconnect

Choose how long Glint should remember your approval.

Timed access15 min · 30 min · 1 hour

Expires at the selected time. Reconnect from Glint when needed.

Until Glint quitsFor this app session

Lasts until you quit Glint. Approve again after restarting.

Always allowFor this iPhone

Remembers the approved phone on this Mac, including after restart.

What the access states mean

Active
Your approved phone is unlocked and live USB video is ready.
Paused
The phone is locked or live USB video is unavailable. Unlock it physically and restore mirroring. Remembered Always approval can then resume.
Off
No active approval, timed access expired, or access was stopped. Reconnect in AI & MCP.
Always approval still pauses on lock.

You do not need to reinstall the client after each lock. Stop access removes permission, including remembered Always approval.

Keeping a test running smoothly

Keep the phone awake during a test. Glint does not change Auto-Lock. If you temporarily lengthen that timeout yourself, restore it afterward.

After a native transport failure, Glint checks readiness and attempts bounded reconnection. Failed inputs are not replayed: inspect the screen before issuing a new action.

Access and privacy

The connection is local.

Glint communicates through stdio and an owner-only Unix socket. It does not publish a remote MCP endpoint.

Your AI client may use a cloud model.

The client or provider may receive screenshots, visible text and requested console output. A local MCP connection does not make every AI client offline.

Access is tied to the selected approved phone and session. Tools do not bypass Apple permissions or provide arbitrary shell, filesystem or iOS accessibility-tree access. Common credential patterns are redacted from console lines, but sensitive information can still appear.

If something is not working

The phone is connected, but access is paused

Unlock the physical phone, keep it awake and check that live USB video is visible in Glint. Wi-Fi mirroring alone is not enough for MCP.

Screenshots work, but input or app tools do not

Check native control readiness in Glint. Viewing and control have separate requirements. Follow the developer setup guide for missing components.

My AI client cannot find Glint

Refresh or reopen the client after registration. Check its installed CLI or extension compatibility. For another client, follow manual stdio setup.

Access turned off after working earlier

Timed access may have expired. Reconnect in Glint. If Always access is paused, restore the unlocked USB connection first. If you used Stop access, approval must be granted again.

These tools are in the current development build. See download availability for public installer status. Claude Desktop and other client-specific integrations still require separate verification.

Still need a hand? Contact support →

Buy me a coffee on Ko-fi