How to let AI operate LaiCai

LaiCai Screen Mirroring has a built-in MCP server. After you connect an AI tool such as Claude, Codex, or Cursor, you can simply tell the AI what to do: mirror phones, run group control, tap and type, open apps and run Flows on your Android phones. The AI can also create, check, and save LaiCai Flow profiles and deploy them to your phones.

Before you start

  • LaiCai Screen Mirroring is installed and open on this computer, and the Android phones you want to use are connected
  • An AI tool that supports MCP, such as Claude, Codex, or Cursor, is installed on the same computer
  • Connecting AI does not require Premium; when the AI uses a Premium feature, the same rules apply as when you use it yourself

AI tools you can connect in one click

  • Claude Desktop
  • Claude Code
  • Codex
  • DeepSeek dsh
  • Cursor
  • VS Code
  • Gemini CLI
  • Qwen Code
  • Kiro
  • LM Studio

Installed tools are listed first. Other MCP tools that support Streamable HTTP can be added manually with the "Other AI tools" step below.

Connect an AI tool

1

Open AI Agent Connection

In LaiCai Screen Mirroring, click Tools → AI → AI Agent Connection.

2

Click "Connect"

Under "Connect AI Tools", find your AI tool and click "Connect". It is done when the status shows "Connected". To remove it, click "Disconnect".

3

Restart the AI tool

When you see "Restart … to apply.", quit and reopen that AI tool. For command-line tools such as Claude Code, Codex, and Gemini CLI, start a new session.

Start using it

4

Tell the AI what to do

The AI first checks your groups, phones, and screens, then acts and confirms the result when it is done. It asks you before deleting a group, removing phones, sharing a group, or disconnecting Wi-Fi.

Things you can ask

  • Mirror all phones in the "Studio A" group and turn on group control
  • Open TikTok on every phone and scroll down 5 times
  • Make a LaiCai Flow that opens Settings, turns on airplane mode, and turns it off after 10 seconds
  • Deploy the Flow I just saved to these two Android phones
5

Pause at any time

While the AI is working, LaiCai Screen Mirroring shows "AI is operating LaiCai". Click "Pause AI" to stop it. You can also turn off "Allow AI to operate LaiCai" in the AI Agent Connection window.

Other AI tools

6

Add it manually

Expand "Advanced" in the AI Agent Connection window and copy the "LaiCai MCP Endpoint" and "Access Token". In your AI tool, add a Streamable HTTP MCP server with the endpoint as its URL and the header Authorization: Bearer <access token>. "Advanced" also shows example settings for Claude Code, Codex, and Claude Desktop.

Safety

  • MCP runs only on this computer: while LaiCai Screen Mirroring is open, AI tools connect through the local address 127.0.0.1. Other computers and phones cannot connect to it.
  • Signing in, payments, changing your password, and turning on remote control of this computer are not available to AI.
  • The access token is saved in your AI tool’s settings file. Do not share it. If you think it has leaked, click "Regenerate" under "Advanced": tools connected in one click update automatically, and tools you added manually need the new token.
  • One-click connection only adds or removes the setting named laicai and leaves everything else unchanged. It backs up the original file as a .laicai-backup file first.
  • MCP can do the same things you can do in LaiCai Screen Mirroring: mirroring and group control do not need Premium, while Device Network (VPN), Human-like Input Settings, and Premium Flow nodes do.