DidroDocsGitHub

Use SAP GUI and Fiori in Cursor, Codex or VS Code

Install the SAP UI Automation MCP server for your coding agent with one command.

The server is the npm package sap-ui-automation. Every client starts it the same way, as a local (stdio) MCP server, on the machine where SAP GUI or Chrome runs.

Install with setup

  1. Install Node.js 22 or later.
  2. See what setup would change:
    npx -y sap-ui-automation setup --dry-run
  3. Run it, and pick the agents to set up (the ones found are ticked):
    npx -y sap-ui-automation setup
  4. Check what the server can reach:
    npx -y sap-ui-automation doctor
  5. Restart the agent, open an SAP screen, and ask “Look at my SAP screen and tell me what you see.”

setup knows Claude Code, Codex, Claude Desktop, Cursor, Windsurf, VS Code, GitHub Copilot CLI, Gemini CLI, OpenCode, Kiro, Zed, Goose, Amp and more. --agent codex,cursor names the agents, --yes takes every agent found without a question, --no-skills leaves the skills out. It never changes an existing sap-ui-automation entry. With the Chrome extension, run setup --extension.

Codex

codex mcp add sap-ui-automation -- npx -y sap-ui-automation

The Codex CLI, the IDE extension and the desktop app share this configuration; codex mcp list shows it. Codex asks before each write from version 0.119. Two exceptions: codex exec cancels every question, so a write does not run; and in Full Access mode Codex accepts the question without showing it. There, make the server read-only:

codex mcp add sap-ui-automation --env SAP_WRITE=off -- npx -y sap-ui-automation

Cursor

Add sap-ui-automation to Cursor opens Cursor and asks you to confirm. By hand, add it to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "sap-ui-automation": {
      "command": "npx",
      "args": ["-y", "sap-ui-automation"],
      "env": { "SAP_WRITE": "off" }
    }
  }
}

The snippet is read-only. Cursor lists MCP elicitation as supported, but users report the question not showing on Windows, its buttons hidden until the tool row is expanded, and a short timeout. A question that is not shown is a write that does not run: try a harmless write on a test system before you set confirm.

VS Code with GitHub Copilot

code --add-mcp '{"name":"sap-ui-automation","type":"stdio","command":"npx","args":["-y","sap-ui-automation"]}'

For every workspace, recent VS Code versions recommend the Copilot user file, ~/.copilot/mcp-config.json, which the Copilot CLI reads too. VS Code asks about each write in the chat from version 1.102. Run MCP: List Servers to see the server, and use Copilot Chat in Agent mode. Snippets for each file

Windsurf and other MCP clients

Any client that starts local (stdio) servers can run it: name sap-ui-automation, command npx, arguments -y sap-ui-automation. Most take the same JSON block as Cursor. Windsurf’s agent is now part of Devin Desktop; its file is ~/.config/devin/mcp_config.json on macOS and Linux. Whether Windsurf shows a server’s questions was not checked: start with SAP_WRITE=off.

To skip the download at each start, install it once with npm i -g sap-ui-automation and use sap-ui-automation as the command.

On Windows

Some clients cannot start npx directly on Windows and show the server as failed or “connection closed”. Use cmd as the command instead:

{ "command": "cmd", "args": ["/c", "npx", "-y", "sap-ui-automation"] }

setup does this for you. Every client in detail

Agents with a shell, without MCP

The sap-gui command does the same work from the shell and writes screens to files, so they stay out of the conversation until needed. It cannot ask before a write: a step that may save needs SAP_WRITE=on. CLI for coding agents