Hand GUI-only steps to Sai from Claude Code, Codex or Cursor

Claude Code, Codex and Cursor write and run your code, then stop at the step that only exists on a screen: a dashboard setting, a desktop app, a consent page. With the Sai MCP server, the agent hands that step to Sai, which does it on a real computer and returns what it saw. Sensitive steps wait for your approval.

Paste into Sai, or send it from your agent
You can use the Sai MCP server for any step that has no CLI or API and has to be done in a GUI.

Current task: finish adding "Sign in with Google" to this app.
You have already written the code. One step is left that I would normally do by hand:

Ask Sai to:
1. Open the Google Cloud console in Chrome (I am signed in on Sai's computer; ask me through an approval link if a sign-in is needed).
2. Go to APIs & Services > Credentials and open the OAuth client named "web-staging".
3. Add this authorized redirect URI: https://preview-482.example.dev/api/auth/callback/google
4. Do not change any other field, client or project.
5. Ask me before pressing Save.
6. After saving, return a screenshot of the client page and the client ID it shows.

When Sai reports back:
- Check that the redirect URI it saw matches the one in our .env.preview exactly.
- If the client ID differs from GOOGLE_CLIENT_ID in .env.preview, stop and tell me. Do not edit secrets.
- Then run the sign-in test against the preview deployment and tell me the result.

Watch it run

What Sai does with this prompt

MCP computer use lets a coding agent such as Claude Code, Codex or Cursor hand a step it cannot do from the terminal to an agent that can use a screen. Your coding agent keeps the code. The Sai MCP server takes the dashboard setting, desktop app or consent page, does it on a real computer, and returns what it saw. Sensitive steps wait for your approval.

What MCP computer use means for a coding agent

MCP computer use is the pattern where an AI application calls a computer-use agent through the Model Context Protocol. The Model Context Protocol is an open standard for connecting AI applications to external tools and data. A computer-use agent operates a graphical interface by reading the screen, clicking and typing. Together, they let a coding agent delegate steps that exist only in a GUI.

The coding agent stays in charge of the task. It decides that a step needs a screen, describes the step, and reads the result. The computer-use agent only does the GUI part.

Why coding agents stop at GUI-only steps

Coding agents work through files, shells and APIs. Plenty of real tasks include a step outside all three:

  • Console settings without a CLI path. A vendor dashboard toggle, a redirect URI, a webhook URL or a feature flag that your tools do not expose.
  • Desktop apps. A database GUI, a vendor installer, a license dialog or an app that only has a native window.
  • Consent and sign-in screens. OAuth consent pages and admin approvals are designed for a person to click.
  • Internal admin tools. Back-office pages built for staff, with no public API.

Without a handoff, the agent writes "now open the console and add this URI" and the task waits for you.

GUI-only steps coding agents hand off most often

These steps come up in everyday development work and are usually done by clicking through a screen. Each one is a good first handoff, because the end state is easy to check.

StepWhere it happensWhat to ask Sai to return
Add an OAuth redirect URI for a preview URLCloud or identity provider consoleThe list of URIs after saving, the client ID and a screenshot
Register a webhook endpointA vendor dashboard such as payments or messagingThe endpoint and events it shows, without copying any secret into the chat
Turn on a feature, scope or plan settingA SaaS admin consoleThe setting before and after, with a screenshot
Invite a test user or service accountA team or workspace admin pageThe member list with the new role
Check a change in a desktop appA Windows or macOS app windowScreenshots of the screens you name, and any error dialog text
Read a value that only shows in the UIA dashboard, billing page or status pageThe value as text, so your agent can use it in code or a test

Example handoff instructions

Your coding agent writes these for you once it knows Sai is available. Each names the place, the change, what must not change and what to send back.

  • "Ask Sai to open the payments dashboard in test mode, add the webhook endpoint https://preview-482.example.dev/api/webhooks for invoice events, ask me before saving, and return the endpoint list."
  • "Ask Sai to open our admin console, enable SSO enforcement for the staging workspace only, ask me before saving, and send a before-and-after screenshot."
  • "Ask Sai to install the build from dist/ on the Windows computer, open it, sign in with the test account, and report the version shown in Help > About."
  • "Ask Sai to open the analytics dashboard, read yesterday's signup count for the staging project, and return the number as text."

Before you hand off a GUI step: a checklist

Use this with any tool, including doing it by hand:

  1. Check for an API or CLI first. If one exists and your agent can use it, that is faster and easier to review.
  2. Name the exact place. The app or URL, the project or account, and the object to change.
  3. State the end state. What should be true after the step, and which fields must not change.
  4. Mark the sensitive actions. Saving, submitting, deleting and sign-ins should wait for a person.
  5. Ask for evidence. A screenshot and the values on screen, so the coding agent can verify them against the code.
  6. Keep secrets out of the chat. Sign in through an approval flow, not by pasting a password into a prompt.

Ways to handle GUI-only steps from a coding agent, compared

ApproachSetupDesktop appsApprovalsBest for
Do it by handNoneYesYou are the approvalRare, one-off steps
Playwright MCPOne command in Claude Code or Codex, or a settings entry in CursorNo, it automates a browserYour coding agent's tool-call promptsWeb pages you can reach from a local browser
Anthropic computer use toolYou build the VM or container, action code and agent loopYes, in your environmentYou write the confirmation stepTeams building their own computer-use product
OpenAI computer useYou provide the environment and execute the actionsBrowser or desktop, in your harnessYou build the controlsTeams building their own harness on the Responses API
Sai MCP serverAdd the server to your coding agentYes, on a cloud computer or your own Mac or Windows machineBuilt in for sign-ins, saving, sending and deletingHanding off GUI steps without building the computer side

If the step is on a web page and you are watching, Playwright MCP is free, fast and enough. If you need full control of the environment, build on the Anthropic or OpenAI computer use tools.

How to set up MCP computer use with Sai

  1. Add the Sai MCP server to Claude Code, Codex or Cursor (see the quick start). In Claude Code, servers are added with claude mcp add and can be shared with a team through a project .mcp.json. Codex reads MCP servers from ~/.codex/config.toml. Cursor reads .cursor/mcp.json in the project or ~/.cursor/mcp.json globally.
  2. Tell your agent when to use it. Add a line to your instructions: use Sai for any step with no CLI or API. The full example is in the Start with a prompt tab above.
  3. Let the agent describe the step. It sends Sai the place, the change, what must not change and what to return.
  4. Approve the sensitive part. Sai asks before sign-ins, saving, submitting, sending or deleting. You can approve once, for the whole task, or deny.
  5. Let the agent verify. Sai returns what it saw, and your coding agent checks it against the code and runs its tests.

Sai ranks #1 on OSWorld, the public benchmark for agents that complete tasks on a real computer. Once Sai completes a task, its steps are kept as code that replays the same way, so the next handoff of the same step is faster and more consistent.

From your coding agent or your own code: the MCP server is the simplest path inside Claude Code, Codex or Cursor. From a script or CI job, call POST /v1/agents/message instead. Paid plans add dedicated computers, one task each, so several handoffs can run at once. Read the quick start.

Handing off safely

  • Trust the servers you add. Claude Code's documentation tells you to verify you trust each server, because servers that fetch external content can expose you to prompt injection.
  • Treat the screen as untrusted. Anthropic and OpenAI both warn that text on a page can try to override instructions. Keep the handoff narrow and say what must not change.
  • Keep approvals on. Cursor asks before using MCP tools by default, and Claude Code asks before using project-scoped servers in interactive sessions. Keep Sai's own approvals for saving and deleting too.
  • Use staging accounts. Point handoffs at staging projects and test tenants until the step is routine.
  • Check the result in code. Ask your agent to compare what Sai saw with your config, not to take the report on trust.

Related use cases: give your own agent a computer tool and test your signup flow end to end.

Last reviewed October 7, 2026.

Frequently asked questions

What is MCP computer use?

It is a coding agent or other AI application calling a computer-use agent through the Model Context Protocol. The coding agent describes a GUI step, and the computer-use agent does it on a screen and reports back.

Which coding agents can use MCP computer use with Sai?

Claude Code, Codex and Cursor all support MCP servers. Add the Sai MCP server to the one you use, following the quick start, and tell the agent to use Sai for steps with no CLI or API.

How is Sai different from Playwright MCP?

Playwright MCP automates a browser on your machine through page structure. Sai works from the screen, in websites and desktop apps, on a cloud computer or your own Mac or Windows machine, and asks before sensitive steps.

Does my coding agent see my passwords?

No. When Sai needs to sign in, you approve the credentials through a link. The password is not typed into the chat or passed through your coding agent.

What happens before Sai saves or deletes something?

Sai stops and asks. You can approve once, approve for the whole task, or deny. Sign-ins, payments, submitting and sending wait for approval too.

Should I use the Anthropic or OpenAI computer use tool instead?

Use them if you want to build and run your own environment, action code and agent loop. If you want your coding agent to hand off a GUI step without building that, add the Sai MCP server.

When should I not use a GUI handoff?

When the vendor offers a CLI, API or Terraform provider for the setting. Those are easier to review and repeat in CI. Use a GUI handoff for the steps that have none.

Is there an MCP server for computer use?

Yes. Sai offers an MCP server that gives Claude Code, Codex, Cursor and other MCP clients a computer-use agent. Browser-only servers such as Playwright MCP also exist; they automate web pages but not desktop apps.

What kinds of steps should a coding agent hand to Sai?

Steps that are only done in a GUI: console and dashboard settings, webhook and redirect URI registration, admin invitations, desktop app checks, and values that only appear on screen.

Stop leaving your coding agent at the last step

Add the Sai MCP server and let your agent hand off the screens it cannot reach.