Back to Browse

Abap2UI5 MCP Server

Developer ToolsLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

abap2UI5 dev loop for AI agents: validate views, screenshot, deploy and run apps - no SAP system

About

abap2UI5 dev loop for AI agents: validate views, screenshot, deploy and run apps - no SAP system

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (2 strong, 2 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.

4 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

env_vars

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Checkout or install of @abap2ui5/linter (validate_view, fix_view, screenshot_view). Default: the peer npm installs beside the server. A set value is authoritative.Optional

Environment variable: AI_VIEW_CHECK_HOME

abap2UI5 framework checkout (app_guide, api_reference, pitfalls; backend when present). Default: ../abap2UI5, else the GitHub mirror and the npm runtime.Optional

Environment variable: A2UI5_HOME

samples-controls checkout (capabilities, examples, generation_rules, scope_of, UI5 for screenshots). Default: ../samples-controls, else the GitHub mirror.Optional

Environment variable: SAMPLES_CONTROLS_HOME

abap2UI5/samples checkout, one of the catalogues examples searches. Default: ../samples, else the GitHub mirror.Optional

Environment variable: SAMPLES_HOME

abap2UI5/samples-stack checkout (OData, RAP, APC, launchpad samples). Default: ../samples-stack, else the GitHub mirror.Optional

Environment variable: SAMPLES_STACK_HOME

abap2UI5/app-template checkout that scaffold_app serves and add_agent_setup executes. Default: ../app-template, else the GitHub mirror.Optional

Environment variable: APP_TEMPLATE_HOME

abap2UI5/docs checkout that docs_search reads. Default: ../docs, else the GitHub mirror.Optional

Environment variable: DOCS_HOME

abap2UI5-addons/abap2ui5-addons.github.io checkout whose catalogue the addons tool reads. Default: ../abap2ui5-addons.github.io, else the GitHub mirror.Optional

Environment variable: ADDONS_HOME

abap2UI5-addons/abap-cloud-gui checkout (with npm ci done) whose report2UI5 converter migrate_report runs. Default: ../abap-cloud-gui; no mirror.Optional

Environment variable: ABAP_CLOUD_GUI_HOME

abap2UI5-addons/popups checkout whose popups migrate_report with deploy: true writes into the dev sandbox beside the converted class. Default: .deps/popups of the abap-cloud-gui checkout, ../popups beside it, then its build/popups.Optional

Environment variable: POPUPS_HOME

OpenUI5 source checkout scope_of reads the JSDoc from (via samples-controls). Default: ../fork-openui5 next to samples-controls.Optional

Environment variable: OPENUI5_SRC

Where the npm backend installs, the dev sandbox lives and a framework clone lands. Default: ~/.abap2ui5-mcp.Optional

Environment variable: A2UI5_MCP_WORKSPACE

Which backend runs the apps: npm (the @abap2ui5/node-runtime package, even beside a checkout) or clone (clone the framework). Default: decided per call.Optional

Environment variable: A2UI5_MCP_BACKEND

Pin the @abap2ui5/node-runtime release (X.Y.Z) the npm backend installs. Default: the release the project's abaplint.jsonc pins, else the registry's latest.Optional

Environment variable: A2UI5_MCP_RUNTIME_VERSION

The abap2UI5 project whose pins the backend follows (the framework release in abaplint.jsonc, @abaplint/cli in package-lock.json). Default: the directory the server was started in.Optional

Environment variable: A2UI5_MCP_PROJECT_DIR

Port of the local backend run_app boots against. Default: 3000.Optional

Environment variable: A2UI5_MCP_PORT

Whether app_start/app_describe/app_act declare their MCP Apps screen (ui://abap2ui5/app-screen): auto (default - when the client advertises the io.modelcontextprotocol/ui extension), on, off.Optional

Environment variable: A2UI5_MCP_UI

The default answer format of the app tools: snapshot (default) or adaptive-card (the snapshot plus an Adaptive Card 1.5 as an embedded resource, for card-rendering hosts).Optional

Environment variable: A2UI5_MCP_APP_FORMAT

Set to 1 for no network: no UI5 CDN fallback, no GitHub mirror, no registry lookup.Optional

Environment variable: A2UI5_MCP_OFFLINE

Set to 0 to switch off the read-only GitHub mirror used when no checkout is found.Optional

Environment variable: A2UI5_MCP_REMOTE

Cache directory of the GitHub mirror. Default: <tmp>/abap2ui5-mcp-remote.Optional

Environment variable: A2UI5_MCP_REMOTE_DIR

How long a mirrored copy is used before it is refreshed, in milliseconds. Default: one day.Optional

Environment variable: A2UI5_MCP_REMOTE_TTL_MS

How many MB of UI5 answers from the CDN (sdk.openui5.org) run_app and interact_app keep in memory across calls, so a second boot does not download them again. 0 switches the cache off. Default: 64.Optional

Environment variable: A2UI5_MCP_UI5_CACHE_MB

Directories (separated like PATH) whose abapGit BSP files run_app and interact_app serve for /sap/bc/ui5_ui5/sap/<bsp>/ - the controls of an addon such as custom-controls, which the Node backend does not serve. Default: the working directory and a custom-controls or custom-controls-customer checkout beside the server.Optional

Environment variable: A2UI5_MCP_BSP_DIRS

Pages (Chromium tabs) of validate_view's warm render gate, which concurrent calls queue on. Default: 2 (1 to 8).Optional

Environment variable: A2UI5_MCP_RENDER_PAGES

Chromium binary for run_app and interact_app. Default: CHROMIUM_BIN, Playwright's managed browser, then a system chromium.Optional

Environment variable: A2UI5_MCP_CHROMIUM

Where run_app and interact_app write their PNGs (the newest 50 are kept) and build_backend its log. Default: <tmp>/abap2ui5-mcp-screenshots.Optional

Environment variable: A2UI5_MCP_SCREENSHOT_DIR

Where build_backend mode prebuilt downloads the backend from (https:; the archive is verified against the .sha256 sidecar beside it when there is one). Default: the framework's release asset.Optional

Environment variable: A2UI5_MCP_PREBUILT_URL

Set to 1 to let A2UI5_MCP_PREBUILT_URL be a plain http: mirror off the loopback. The archive is code the backend runs; https: is the default requirement.Optional

Environment variable: A2UI5_MCP_PREBUILT_INSECURE

Set to 0 to run every lint as a fresh abaplint process. Default: a long-lived worker keeps @abaplint/core with the framework parsed and lints a deploy in milliseconds (the CLI runs whenever the worker cannot stand in for it).Optional

Environment variable: A2UI5_MCP_LINT_WORKER

How long the warm lint worker (about 300 MB with the framework parsed) is kept without a request before it exits, in milliseconds; the next lint starts a fresh one. 0 keeps it for the server's life. Default: 10 minutes.Optional

Environment variable: A2UI5_MCP_LINT_IDLE_MS

Hard timeout of the abaplint run, in milliseconds. Default: 5 minutes.Optional

Environment variable: A2UI5_MCP_LINT_TIMEOUT_MS

Hard timeout of scope_of, in milliseconds. Default: 5 minutes.Optional

Environment variable: A2UI5_MCP_SCOPE_TIMEOUT_MS

Hard timeout of a build, the prebuilt download and the npm install, in milliseconds. Default: 30 minutes.Optional

Environment variable: A2UI5_MCP_BUILD_TIMEOUT_MS

Hard timeout of the ABAP Unit runner, in milliseconds. Default: 10 minutes.Optional

Environment variable: A2UI5_MCP_UNIT_TIMEOUT_MS

Switches on the SYSTEM MODE: the app tools against this real SAP system instead of the sandbox loop. The launch URL, e.g. https://host:44300/sap/bc/z2ui5?app_start={class}&sap-client=100.Optional

Environment variable: A2UI5_MCP_SYSTEM_URL

System mode: the SAP user the app tools log on with (Basic authentication).Optional

Environment variable: A2UI5_MCP_SYSTEM_USER

System mode: the password of A2UI5_MCP_SYSTEM_USER. Or A2UI5_MCP_SYSTEM_PASSWORD_CMD, to keep it out of the configuration.Required

Environment variable: A2UI5_MCP_SYSTEM_PASSWORD

System mode: a shell command that prints the password (a keychain lookup) - instead of A2UI5_MCP_SYSTEM_PASSWORD.Optional

Environment variable: A2UI5_MCP_SYSTEM_PASSWORD_CMD

System mode: set to 1 to accept ANY certificate, unverified - read-only, the write tools refuse it. A2UI5_MCP_SYSTEM_CERT_SHA256 or NODE_EXTRA_CA_CERTS with the CA is the better fix.Optional

Environment variable: A2UI5_MCP_SYSTEM_INSECURE_TLS

System mode: the SHA-256 fingerprint of the system's certificate. Exactly that certificate is accepted without a CA, any other is refused before the logon is sent.Optional

Environment variable: A2UI5_MCP_SYSTEM_CERT_SHA256

System mode, experimental: set to 1 to list the tools that write a class to the system over ADT, activate it and run its unit tests. Off by default; tested against a fake system only.Optional

Environment variable: A2UI5_MCP_SYSTEM_WRITE

System mode write tools: a regular expression a class name must match (default ^Z|^Y|^/\w+/). Z2UI5_* and SAP-owned names are refused regardless.Optional

Environment variable: A2UI5_MCP_SYSTEM_WRITE_ALLOW

Optional token sent to api.github.com only, to raise the rate limit of the docs tree listing (GH_TOKEN is read too).Required

Environment variable: GITHUB_TOKEN

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@abap2ui5/mcp-server@1.5.0"
      ],
      "env": {
        "DOCS_HOME": "your-docs-home-here",
        "A2UI5_HOME": "your-a2ui5-home-here",
        "ADDONS_HOME": "your-addons-home-here",
        "OPENUI5_SRC": "your-openui5-src-here",
        "POPUPS_HOME": "your-popups-home-here",
        "A2UI5_MCP_UI": "your-a2ui5-mcp-ui-here",
        "GITHUB_TOKEN": "your-github-token-here",
        "SAMPLES_HOME": "your-samples-home-here",
        "A2UI5_MCP_PORT": "your-a2ui5-mcp-port-here",
        "A2UI5_MCP_REMOTE": "your-a2ui5-mcp-remote-here",
        "A2UI5_MCP_BACKEND": "your-a2ui5-mcp-backend-here",
        "A2UI5_MCP_OFFLINE": "your-a2ui5-mcp-offline-here",
        "APP_TEMPLATE_HOME": "your-app-template-home-here",
        "A2UI5_MCP_BSP_DIRS": "your-a2ui5-mcp-bsp-dirs-here",
        "A2UI5_MCP_CHROMIUM": "your-a2ui5-mcp-chromium-here",
        "AI_VIEW_CHECK_HOME": "your-ai-view-check-home-here",
        "SAMPLES_STACK_HOME": "your-samples-stack-home-here",
        "A2UI5_MCP_WORKSPACE": "your-a2ui5-mcp-workspace-here",
        "ABAP_CLOUD_GUI_HOME": "your-abap-cloud-gui-home-here",
        "A2UI5_MCP_APP_FORMAT": "your-a2ui5-mcp-app-format-here",
        "A2UI5_MCP_REMOTE_DIR": "your-a2ui5-mcp-remote-dir-here",
        "A2UI5_MCP_SYSTEM_URL": "your-a2ui5-mcp-system-url-here",
        "A2UI5_MCP_LINT_WORKER": "your-a2ui5-mcp-lint-worker-here",
        "A2UI5_MCP_PROJECT_DIR": "your-a2ui5-mcp-project-dir-here",
        "A2UI5_MCP_SYSTEM_USER": "your-a2ui5-mcp-system-user-here",
        "SAMPLES_CONTROLS_HOME": "your-samples-controls-home-here",
        "A2UI5_MCP_LINT_IDLE_MS": "your-a2ui5-mcp-lint-idle-ms-here",
        "A2UI5_MCP_PREBUILT_URL": "your-a2ui5-mcp-prebuilt-url-here",
        "A2UI5_MCP_RENDER_PAGES": "your-a2ui5-mcp-render-pages-here",
        "A2UI5_MCP_SYSTEM_WRITE": "your-a2ui5-mcp-system-write-here",
        "A2UI5_MCP_UI5_CACHE_MB": "your-a2ui5-mcp-ui5-cache-mb-here",
        "A2UI5_MCP_REMOTE_TTL_MS": "your-a2ui5-mcp-remote-ttl-ms-here",
        "A2UI5_MCP_SCREENSHOT_DIR": "your-a2ui5-mcp-screenshot-dir-here",
        "A2UI5_MCP_LINT_TIMEOUT_MS": "your-a2ui5-mcp-lint-timeout-ms-here",
        "A2UI5_MCP_RUNTIME_VERSION": "your-a2ui5-mcp-runtime-version-here",
        "A2UI5_MCP_SYSTEM_PASSWORD": "your-a2ui5-mcp-system-password-here",
        "A2UI5_MCP_UNIT_TIMEOUT_MS": "your-a2ui5-mcp-unit-timeout-ms-here",
        "A2UI5_MCP_BUILD_TIMEOUT_MS": "your-a2ui5-mcp-build-timeout-ms-here",
        "A2UI5_MCP_SCOPE_TIMEOUT_MS": "your-a2ui5-mcp-scope-timeout-ms-here",
        "A2UI5_MCP_PREBUILT_INSECURE": "your-a2ui5-mcp-prebuilt-insecure-here",
        "A2UI5_MCP_SYSTEM_CERT_SHA256": "your-a2ui5-mcp-system-cert-sha256-here",
        "A2UI5_MCP_SYSTEM_WRITE_ALLOW": "your-a2ui5-mcp-system-write-allow-here",
        "A2UI5_MCP_SYSTEM_INSECURE_TLS": "your-a2ui5-mcp-system-insecure-tls-here",
        "A2UI5_MCP_SYSTEM_PASSWORD_CMD": "your-a2ui5-mcp-system-password-cmd-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

mcp-server

The MCP server for abap2UI5 — gives any AI coding agent (Claude Code, Cursor, VS Code Copilot, or any MCP client) the full abap2UI5 development loop, without an SAP system:

examples -> app_guide -> validate_view + screenshot_view -> deploy_app -> build_backend -> run_app -> pitfalls
(has somebody  (how an app  (SECONDS, no system:        (write ABAP,  (transpile      (boot headless,  (what a green
 built it       is built)    is the view legal,          lint)         to Node)        errors +         run still
 already?)                   and what does it LOOK like)                               SCREENSHOT)      does not prove)

The agent writes an ABAP class, validates the view and looks at a picture of it in seconds, deploys it, boots it in a real browser and looks at the running app — then iterates. Everything runs locally on infrastructure that already guards the abap2UI5 ecosystem in CI: the abaplint transpiler + open-abap runtime, the framework's express shim, the samples-controls build and boot gates, and the linter validation core.

Documentation

→ The MCP server, in full — what MCP means here, the three setup levels and what each one buys, how to register the server with your client, every tool with what the agent gets from it, and the loop they are meant to be used in.

→ Building with AI — the whole AI setup in rising order of effort. This server is the top rung; the cheaper ones matter first.

Quick start

One-click install

Install in VS Code Install in VS Code Insiders Install in Cursor

Every button registers the same stdio server, named abap2ui5:

{"command":"npx","args":["--yes","-p","@abap2ui5/mcp-server","abap2ui5-mcp"]}

The badges go through a web redirect because GitHub does not render links to an editor's own URL scheme; the direct links, to paste into a browser or xdg-open/open, are:

vscode:mcp/install?%7B%22name%22%3A%22abap2ui5%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22--yes%22%2C%22-p%22%2C%22%40abap2ui5%2Fmcp-server%22%2C%22abap2ui5-mcp%22%5D%7D
cursor://anysphere.cursor-deeplink/mcp/install?name=abap2ui5&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyItLXllcyIsIi1wIiwiQGFiYXAydWk1L21jcC1zZXJ2ZXIiLCJhYmFwMnVpNS1tY3AiXX0%3D

(vscode-insiders: in place of vscode: for Insiders.) Claude Code:

claude mcp add abap2ui5 -- npx --yes -p @abap2ui5/mcp-server abap2ui5-mcp

Claude Code plugin. The abap2UI5 plugin bundles the framework's agent skills (building an app, the ABAP and UI5 pitfall catalogues, the view-chain layout, ...) together with this server, registered the same way as above — one install for both:

/plugin marketplace add abap2UI5/abap2UI5
/plugin install abap2ui5@abap2ui5

Releases from 1.0.0 on are also listed in the official MCP Registry as io.github.abap2UI5/mcp-server (server.json), for clients that install from the registry. The same command is what the Smithery (smithery.yaml) and Glama (glama.json) directories list: one npm package, one version, whichever catalogue a client reads.

That is level 1 below: validate_view and fix_view work out of the box, and setup_status tells the agent what else works on this machine and what is missing.

What each install brings

Level 1 — validate_view, fix_view and screenshot_view, the tools most work happens at. They need the linter, which the server declares as a peer dependency (@abap2ui5/linter, >=0.8.0 <0.14.0 — the range this server is built against). npm 7+ installs a non-optional peer by itself, so the one-liner below brings the linter along and validate_view/fix_view work out of the box. The render gate behind screenshot_view needs the UI5 libraries and Playwright on top (@abap2ui5/linter-render, declared as an optional peer: the compatible range is stated, the package is NOT installed for you — plan on ~150–200 MB and a few minutes the first time you add it):

claude mcp add abap2ui5 -- npx --yes -p @abap2ui5/mcp-server abap2ui5-mcp                            # validate_view, fix_view
claude mcp add abap2ui5 -- npx --yes -p @abap2ui5/mcp-server -p @abap2ui5/linter-render abap2ui5-mcp # + screenshot_view

The server looks for the linter, in this order: AI_VIEW_CHECK_HOME; a linter checkout next to the server (which is also where npm puts the peer for an npx run: node_modules/@abap2ui5/{mcp-server,linter}); the project it is started in (node_modules/@abap2ui5/linter — app-template has it as a devDependency, so npm install there is all it takes); the server's own node_modules; whatever Node's module resolution finds from the server's location. A set env var decides alone. Or work from a checkout:

git clone https://github.com/abap2UI5/linter        # AI_VIEW_CHECK_HOME
cd linter && npm ci

The server itself is on npm, so it needs no checkout; the registration above is the whole install. (With npm 6 or --legacy-peer-deps, add -p @abap2ui5/linter yourself.)

(-p … abap2ui5-mcp names the bin explicitly, which every published version answers. The shorter npx --yes @abap2ui5/mcp-server needs a bin named after the package, which 0.2.0 and earlier do not have — npx stops there with "could not determine executable to run". That bin, mcp-server, is deprecated and goes with 2.0.0: the name is too generic to own in a project's node_modules/.bin — register abap2ui5-mcp.)

(The install is ~47 MB: 19 MB of it a Playwright driver only run_app uses, 2 MB the linter — paid on the first start, cached after. From a checkout instead: git clone https://github.com/abap2UI5/mcp-server && cd mcp-server && npm ci, then claude mcp add abap2ui5 -- node /path/to/mcp-server/server.mjs.)

Cursor, VS Code and Claude Desktop take the standard stdio shape — the documentation has the JSON, and the two further levels (the sample catalogues and deploying, then the headless build-and-boot loop). A tool whose prerequisites are missing answers with a message naming what it needs; the server starts either way.

The abap2UI5 VS Code extension registers this server for you, and adds a second one of its own for the tools that need a real SAP system.

Everything in one command — for a machine (or Codespace) dedicated to the full build-and-boot loop, setup.sh clones the framework, corpus and linter checkouts next to this repo, installs their dependencies and the headless browser (existing checkouts are reused, safe to re-run):

git clone https://github.com/abap2UI5/mcp-server && ./mcp-server/setup.sh

setup.sh --no-corpus clones the framework and the linter only, which is the whole loop for an app of your own since the framework sandbox exists; the corpus is for scope_of, the full build and the locally served UI5.

A Claude Code started inside the checkout picks the server up automatically via the committed .mcp.json; the devcontainer runs the same setup on create.

Level 0 — no checkout at all. The knowledge tools (app_guide, api_reference, pitfalls, capabilities, examples, read_example, docs_search, addons, scaffold_app, generation_rules) read committed files, so when no checkout resolves and no env var is set they read them from GitHub instead: the files land in a per-user cache (<tmp>/abap2ui5-mcp-remote, a day at a time - used only while it is a directory of the user's own, created 0700; A2UI5_MCP_REMOTE_DIR moves it) that the server treats as a read-only checkout; add_agent_setup reads the template from there too, and writes only into the project it is given. And the expensive half runs on the npm package @abap2ui5/node-runtime (below), so npx --yes -p @abap2ui5/mcp-server abap2ui5-mcp in a fresh project covers deploy_app, build_backend, run_app, interact_app, run_unit_tests and verify_app too, with no clone of anything. What still needs a checkout is the corpus' part (scope_of, build_backend mode full, the locally served UI5). A2UI5_MCP_REMOTE=0 or A2UI5_MCP_OFFLINE=1 switches the mirror off. The docs mirror lists its pages through GitHub's API, which allows 60 unauthenticated requests an hour per address; a GITHUB_TOKEN (or GH_TOKEN) in the environment raises that and is sent to api.github.com only.

The backend without a framework checkout: @abap2ui5/node-runtime. The framework is published on npm already transpiled, with the ABAP sources of the same release commit to transpile apps against. With no abap2UI5 checkout (and none configured), build_backend installs that package once per release into ~/.abap2ui5-mcp/runtime/<version> — with the transpiler it names, express, and app-template's abaplint for the lint, at exact versions with a lockfile, --ignore-scripts — fetches open-abap-core at the commit the release was built with, and then transpiles only the deployed apps against it: seconds, never the framework. deploy_app writes into ~/.abap2ui5-mcp/sandbox (and lints with app-template's own config against the package's sources), run_app boots the package's server with the apps registered, run_unit_tests runs the apps' own tests. The release is the one the project pins in its abaplint.jsonc (the directory the client started the server in, or A2UI5_MCP_PROJECT_DIR), else the registry's latest (asked through npm, cached a day); A2UI5_MCP_RUNTIME_VERSION overrides both. Measured here with a cold npm cache: the first install about 10 s, open-abap-core about 1 s, then 7–8 s per build and about a second for the unit tests. setup_status shows the release, the workspace and what the next build would do.

With a framework checkout (A2UI5_HOME or a sibling) everything works as before: build_backend downloads the release's prebuilt backend (backend-<version>.tar.gz) into the checkout the first time and re-transpiles the deployed apps from its node/zz_dev afterwards. A2UI5_MCP_BACKEND=npm runs on the package beside a checkout; build_backend mode prebuilt (or A2UI5_MCP_BACKEND=clone) clones the release into ~/.abap2ui5-mcp/abap2UI5 instead — the path this server took without a checkout until the package existed. The full corpus build stays available as mode: "full" for a checkout on an unreleased commit.

Tools

Every tool reads live from a sibling checkout, and each one needs a specific sibling — there is no "optional" repository, only tools you do or do not use. The Needs column says which checkout a tool is dead without: the linter alone carries validate_view, fix_view and screenshot_view (the fast loop, where most iterations happen — and the one dependency npm installs with the server, as its declared peer), the framework checkout carries the guide, the pitfalls and the interface (all three mirrored from GitHub when it is absent), the npm package @abap2ui5/node-runtime carries the backend when no framework checkout is there, and the corpus carries almost everything else. A tool whose checkout is missing answers with the clone command and env var that fix it.

ToolWhat it doesNeeds
setup_statusWhat resolves, what is built, what is missing and how to fix it — one read, call it firstnothing
capabilitiesWhether abap2UI5 can express a UI5 feature at all, from the verified capability mapsamples-controls
app_guideHow to build an app, live from the framework checkoutabap2UI5
api_referenceThe client API (z2ui5_if_client) with its ABAP-Doc: methods, parameters, defaults, the cs_* constantsabap2UI5
scaffold_appThe files a new project starts from, live from app-template; { class: … } renames throughout, sidecar CLSNAME includedapp-template
add_agent_setupSet up an existing project for AI work — what npm create abap2ui5-app -- --agent-setup does: AGENTS.md (the project's page and the guide's essentials), docs/project.md, the skills (the full guide is one file among them), .mcp.json, the allowlist, both gates and the CI job, written into project_dir; never overwrites, merges package.json/.gitignore, follows the STARTING_FOLDERapp-template
examplesSearch the three sample catalogues, verification status and all — answers with a class to read, never a snippet to trustany of samples / samples-controls / samples-stack (or the GitHub mirror)
read_exampleRead the source of a sample an examples hit named — from the checkout, or fetched from GitHubthe sample's repository (or the GitHub mirror)
docs_searchFull-text search over the documentation site's pages: page, heading, snippet and the published URLdocs
addonsIs there an addon for this? The catalogue of abap2UI5-addons: grouped, ranked against a query, or one repo in full — entry-point classes, usage snippet, the install order with its dependencies resolvedabap2ui5-addons.github.io (or the GitHub mirror)
generation_rulesThe rulebook for porting a UI5 demo-kit sample into samples-controlssamples-controls
pitfallsThe defects a green run does not catch: { area: "abap" } and { area: "view" }abap2UI5
scope_ofIn/out-of-scope verdict for a UI5 controlsamples-controls + an OpenUI5 checkout
validate_viewThe linter's gates in seconds, judged by your project's own abap2ui5lint.jsonclinter
fix_viewApply the linter's mechanical fixes and get the corrected source back — writes nothinglinter
screenshot_viewSee the view in seconds — no build, no backendlinter
deploy_appWrite the class + abapGit sidecar (+ test include) into the dev sandbox, then abaplint itnothing (the npm backend's ~/.abap2ui5-mcp/sandbox); samples-controls' src/zz_dev or abap2UI5's node/zz_dev when present
lint_abapabaplint a class without deploying it: the lint deploy_app runs, the sandbox exactly as it was afterwards; removed abap2UI5 API comes with its replacementthe sandbox (as deploy_app)
deploy_folderWrite the ABAP objects of a local folder (a project's src, or one package) into the dev sandbox in one call - classes with their includes, interfaces, tables, data elements - then abaplint them and name the apps among themthe sandbox (as deploy_app)
read_appRead a deployed dev app's source back, and whether the built backend already carries itthe sandbox (as deploy_app)
build_backendGet the transpiled Node backend: without a checkout @abap2ui5/node-runtime from npm and only the dev apps transpiled (seconds); with one prebuilt downloads the framework's released backend and incremental re-transpiles the dev apps on top; prebuilt/transpile clone the framework when asked to; full runs the corpus' e2e-buildnothing (npm), or abap2UI5 (full needs samples-controls)
build_logPage through the last build's full output — the error the result's short tail cut offnothing (reads the record the last build left)
run_appBoot an app headless: status, real page errors, and a screenshot; optional start params ({ "source": "demo" } boots ?app_start=<class>&source=demo)a build (npm backend or abap2UI5 checkout); samples-controls serves UI5 locally when present, the CDN otherwise
interact_appBoot an app, then click, fill, press and wait through a short script — the event branch, photographeda build (same as run_app)
app_listThe app classes the built backend can start — the deployed dev apps and the framework's owna build (npm backend or abap2UI5 checkout)
app_startStart an app (optional start params, as run_app) and get its agent snapshot: fields (path, label, kind, value), actions (event + arguments), tables, messages — over the abap2UI5 JSON protocol, no browser; in an MCP Apps host also an interactive screen, with format: "adaptive-card" also an Adaptive Carda build (same as run_app)
app_describeThe current agent snapshot of a session, from memory — no roundtripa session from app_start
app_actFill fields and fire an event by name — validated against the snapshot, sent as the real model delta — and get the next snapshota session from app_start
call_handlerSend one HTTP request (method, path, query, body) to a deployed if_http_extension class — a REST endpoint, a webhook — which the npm backend serves at /__a2ui5/icf/<CLASS>, and get status, content type and bodya build (npm backend)
run_unit_testsRun the deployed apps' test classes (on a checkout: or the whole transpiled tree) in the open-abap runtime: assertions, not picturesa build (npm backend or abap2UI5 checkout)
verify_appThe whole loop in one call — validate, deploy, build, unit, boot — stopping at the first stage that failswhat the stages need
verify_projectThe same loop for a FOLDER — deploy_folder, the lint with the project's own abaplint.jsonc, build, the unit tests of every class with a test include, the boot of its app — stopping at the first stage that failswhat the stages need
build_staticA project folder as a static site (GitHub Pages): the framework and its classes transpiled, bundled for the browser, the whole backend running in the visitor's tab, starting the app you namethe npm backend (installed on first use), esbuild (installed on first use)
migrate_reportConvert the user interface of a classic ABAP report into an abap-cloud-gui app class (report2UI5, the logic copied as it is): the class files, the migration report (TODOs, what was not carried over), the refusals with file:row:col; deploy: true builds it here and answers its selection screen's agent snapshotabap-cloud-gui (with npm ci); deploy also the popups and a build
backendstatus / start / stop / restart of the local express backenda build (start/restart; status and stop always work)
remove_appDelete a dev app from the sandbox, or list the deployed onesthe sandbox (as deploy_app)
report_issueDraft a GitHub issue for a defect in abap2UI5 or its tools for the user to file: a prefilled new-issue link, the markdown, and similar open issues. Posts nothingnothing (the issue search is GitHub's public one)

verify_app is the loop in one call: validate, deploy, build, unit tests and boot, stopping at the first stage that fails and reporting every stage before it. interact_app is run_app with hands: after the boot it clicks, fills and presses through a short script and photographs the result, which is how the event branch of an app becomes visible without a system; run_unit_tests runs the test classes deploy_app wrote beside the app (a local z2ui5_if_client double, see the app guide's chapter 9) in the open-abap runtime and answers with assertions.

scaffold_app and add_agent_setup both execute app-template's own template.json, for the two kinds of project. scaffold_app hands back a whole NEW project, app class included, and writes nothing. add_agent_setup is for the abapGit repository that already exists - most of them never started from the template - and does what npm create abap2ui5-app -- --agent-setup does there, by the template's agentSetup key: it writes the agent setup and the two gates into project_dir (default: the server's working directory, when that looks like a project), never overwrites a file the project has (each one is listed as skipped), merges package.json and .gitignore by only adding what is missing (each value kept that differs from the template's is a warning), points the configs at the source folder .abapgit.xml names and writes nothing into it. A second run changes nothing; dry_run: true answers the same report without writing. Every path it writes comes from the template's file list and is checked first - a plain relative path, a shared file of the template, outside the source folder; one that fails refuses the whole call before anything is written. A symbolic link, or a folder that leads out of the project through one, is never written through: that file is skipped, and the answer says why.

Every answer fits the client. A client shows the agent nothing of a tool result over its cap (Claude Code: 25,000 tokens), so no answer is larger than about 60,000 characters. The tools whose answers grow with upstream content page instead of cutting: matches counts every hit, returned the page, and more names the exact call for the rest (offset - examples, capabilities, api_reference, app_guide, pitfalls, docs_search, addons; files - scaffold_app; from_line - read_app, read_example; build_log names its next offset under cut). A list that is shortened rather than paged says so in a ...Cut field (findingsCut, rulesCut, errorsCut, ...), and a last-line backstop trims anything that still passes the cap and marks it (__answerGuardCut). The resources follow the same budget (below).

examples degrades per catalogue instead of failing: it searches the checkouts it finds and names the ones it could not, so a thinner answer never reads as "nobody has built this". It reads each repository's committed catalogue.json where the checkout has one — which is what carries a control port's verification status (checked over reviewed over generated, used to break ranking ties), the learning-path stage, and what a stack sample needs from the system — and falls back to parsing SAMPLES.md on a checkout from before that file existed. Where samples and samples-controls commit catalogue-derived.json beside it, a query also matches the control types each sample's view builds, so sap.m.Dialog finds every sample that builds one, not only those filed under it. screenshot_view and run_app answer the same question at three orders of magnitude apart: the first photographs the reconstructed view with no backend, the second the running app after a build. Most iterations should end at the first.

Calling an HTTP handler

Not every class of an app is a screen: a REST endpoint, a webhook, the door a device or a middleware polls implement if_http_extension and are served by a service node in SICF on a system. The npm backend runs every deployed one at /__a2ui5/icf/<CLASS>, and call_handler sends it one request — { "class": "zcl_my_endpoint", "method": "POST", "query": { "id": "42" }, "body": "..." } — and answers with status, content_type and body. Nothing to configure; deploy, build_backend, call.

Operating an app without a browser

app_start, app_act and app_describe make every abap2UI5 app agent-operable: they speak the JSON protocol the UI5 frontend speaks — the app start, the event with its arguments, the model delta of what was typed — against the local backend, and answer with an agent snapshot derived from the response's view XML and model: the fields an agent may fill (model path, label, kind, current value, choice values, editable), the actions it may fire (event name, static and row-dependent arguments), the tables (columns, the first rows, selection - a SelectDialog/TableSelectDialog is a table too, and app_act with row picks from it), the messages (toast, message box, MessageStrip, field value states, MessagePopover and MessageView items) and some static text. An act is validated against the snapshot before anything is sent: an unknown event, a field that is not on the screen or not editable, a choice outside its values is refused with the list of what is allowed. A short session against z2ui5_cl_smp_app_009 of abap2UI5/samples:

app_start { app: "z2ui5_cl_smp_app_009" }
  -> fields f1..f5 (f3 "Input with value", /S_SCREEN/COLOR_02, text, ""),
     actions a1 POPUP_TABLE_VALUE (valueHelpRequest of f3), ..., a5 BUTTON_SEND
app_act { session, values: { f4: "Smith" }, event: "POPUP_TABLE_VALUE" }
  -> layer "popup", table t1 /T_SUGGESTION_SEL (6 rows, Single, editableCells [SELKZ]),
     action a1 POPUP_TABLE_VALUE_CONTINUE
app_act { session, values: { "/T_SUGGESTION_SEL/2/SELKZ": true }, event: "POPUP_TABLE_VALUE_CONTINUE" }
  -> layer "main", f3 = "BLACK", f4 = "Smith", message { toast, "value selected" }

Windowed tables (abap2UI5 1.149.0 on, window_bind_tab( val = mt_rows window = 100 )): the model holds the first rows and the backend the rest. The snapshot says so - rowCount is the rows held, total all rows the filter lets through, truncated is true while rows are missing, and window.more names the call that loads the next window. app_act with window instead of event sends the framework's window request (___ZZZ_WIN; the app's main( ) does not run) and asks the backend for more rows, or for the first rows of a new sort or filter over all rows:

app_act { session, window: { table: "t1" } }
  -> t1 rowCount 10, total 30, window.more "... loads rows 11-15 ..."
app_act { session, window: { table: "t1", filter: [["STATUS", "EQ", "OPEN"]],
                             sort: [{ column: "DUE", descending: true }] } }
  -> t1 rowCount 5, total 10: the five open orders due last

A filter item is a condition ["COLUMN", "OPERATOR", value, value2?] (ANDed with the others) or a list of them (ORed); a part left out is kept by the backend, [] clears it; a column the rows do not have, or an operator outside UI5's FilterOperator, is refused before anything is sent. A cell edit after a sort addresses the rows as the snapshot shows them - the backend writes it into the row behind that position. A BINDING_CALL sort or filter button of such a table is the action @BINDING_CALL and sends the same request the UI5 frontend's list binding sends.

The snapshot shape is shared with the VS Code extension and the ABAP agent addon; docs/agent-snapshot.md is its reference — the derivation rules, the operations, the deviations from the original contract and what the snapshot cannot see yet. interact_app stays the tool for what only a browser shows (the rendered page, client-side behaviour).

The screen in the chat: MCP Apps and Adaptive Cards

The snapshot is text for the agent. Two optional surfaces show the same screen to the user in the chat, and send what the user does back through app_act - the same validation as the agent's own acts, so nothing the snapshot does not allow can be fired, and the agent sees the act:

  • MCP Apps (SEP-1865, stable 2026-01-26, extension io.modelcontextprotocol/ui). app_start, app_describe and app_act name the UI resource ui://abap2ui5/app-screen (_meta.ui.resourceUri, MIME type text/html;profile=mcp-app) when the client advertises the extension in its initialize. A host that renders MCP Apps (the extension's own README lists Claude, ChatGPT, VS Code and Goose) shows it as a sandboxed iframe beside the result: fields to fill, buttons, row actions, table cells, messages. A click is a tools/call of app_act through the host, built from the snapshot on screen; afterwards the page tells the model what happened (ui/update-model-context) and renders the new snapshot. The page is one self-contained HTML document - no external URL, no network, no eval - so it runs under the spec's restrictive default CSP; it needs nothing else. A2UI5_MCP_UI=on declares the screen for a host that renders MCP Apps without advertising the extension, off never; the tools' text answers do not change either way.
  • Adaptive Cards for Copilot/Teams-style hosts: format: "adaptive-card" on app_start, app_describe and app_act (or A2UI5_MCP_APP_FORMAT=adaptive-card for every call) adds the screen as an Adaptive Card 1.5 - an embedded resource of type application/vnd.microsoft.card.adaptive after the unchanged snapshot - rendered by abap2UI5/protocol's renderer (vendored under lib/vendor/adaptive-cards). Off by default. Each Action.Submit carries session (and row for a row's action); a submitted payload maps to one app_act call: event and row as they are, every input whose value changed as values["<binding path>"], a message box button as the box's close action with the button as its $action argument, the popup/popover close wire as @CLOSE_POPUP / @CLOSE_POPOVER (cardSubmitToAct in lib/adaptive-card.mjs; the full table is in docs/agent-snapshot.md).

Migrating a classic report

migrate_report takes the source of a classic report (REPORT, PARAMETERS, SELECT-OPTIONS, the event blocks, a WRITE list, an ALV) and its .prog.xml text pool, and answers the class of the abap-cloud-gui addon that keeps its programming model — selection_screen( ), start_of_selection( ), write( ), alv( ), message( ) — together with the migration report (the TODOs, what the list does not carry over) and the statements of the user interface it refused with file:row:col (a dynpro it cannot build, reading the list back by index). It converts the user interface only: the logic of the report - its tables, function modules, native SQL, batch input - is copied as it is, and whether it runs on the target system is yours to check. A report that carries open-abap's @KERNEL escape (WRITE '@KERNEL ...'., JavaScript once transpiled) is refused before anything is converted, and a dynamic WHERE (cond) is converted but flagged under warnings - the runtime evaluates it with eval() (SECURITY.md). The converter is the addon's own report2UI5 (tools/report2ui5; called report2cloud in the addon's 1.0.0, whose path still loads), run from a checkout of the addon — it is not on npm:

git clone https://github.com/abap2UI5-addons/abap-cloud-gui   # ABAP_CLOUD_GUI_HOME
cd abap-cloud-gui && npm ci

With deploy: true the class is also written into the dev sandbox together with the addon's runtime (src/01, its database tables included - the backend creates a deployed table at boot) and the popups it calls (a checkout of popups at POPUPS_HOME, else the addon's .deps/popups, ../popups beside it or the addon's build/popups, in that order), the backend is built, and the answer carries app_start's snapshot of the selection screen — app_act with CGUI_EXECUTE runs the report. The database tables a report reads are not in the local backend: the screen runs, a run that reads them does not.

System mode: operating apps on a real SAP system

Everything above runs without a system. With A2UI5_MCP_SYSTEM_URL set, the same server is something else: the app tools against a real SAP system, logged on as the configured user — for MCP clients that are not the VS Code extension (whose own system server does this for the clients of its window): Claude Desktop, Claude Code, Cursor, any stdio client. The sandbox tools are not offered in this mode; register the server twice, once with and once without the variable, to have both.

ToolWhat it does
system_statusThe endpoint and user (never the password) and ONE request that shows whether the host answers, the certificate is accepted and the logon works — ok only when the abap2UI5 start page answers, not a form logon page that also answers 200 — call it first
app_listClass names on the system, from the ADT quick search (filter: start of the name, * as wildcard; at most 50)
app_startStart an app on the system and get its agent snapshot — the same snapshot, arguments and refusals as the sandbox's app_start
app_describeThe current snapshot of a session, from memory — nothing is sent
app_actFill fields and fire an event, validated against the snapshot, sent as the real model delta — runs for real

Claude Desktop (claude_desktop_config.json: Settings → Developer → Edit Config), the sandbox server beside the system one:

{
  "mcpServers": {
    "abap2ui5": {
      "command": "npx",
      "args": ["--yes", "-p", "@abap2ui5/mcp-server", "abap2ui5-mcp"]
    },
    "abap2ui5-dev-system": {
      "command": "npx",
      "args": ["--yes", "-p", "@abap2ui5/mcp-server", "abap2ui5-mcp"],
      "env": {
        "A2UI5_MCP_SYSTEM_URL": "https://host:44300/sap/bc/z2ui5?app_start={class}&sap-client=100",
        "A2UI5_MCP_SYSTEM_USER": "DEVELOPER",
        "A2UI5_MCP_SYSTEM_PASSWORD_CMD": "security find-generic-password -s abap2ui5-dev -w"
      }
    }
  }
}

Claude Code, the same as one command:

claude mcp add abap2ui5-dev-system \
  -e A2UI5_MCP_SYSTEM_URL='https://host:44300/sap/bc/z2ui5?app_start={class}&sap-client=100' \
  -e A2UI5_MCP_SYSTEM_USER=DEVELOPER \
  -e A2UI5_MCP_SYSTEM_PASSWORD_CMD='security find-generic-password -s abap2ui5-dev -w' \
  -- npx --yes -p @abap2ui5/mcp-server abap2ui5-mcp
Variable
A2UI5_MCP_SYSTEM_URLThe launch URL as the VS Code extension's F9 knows it, {class} as a query parameter — or the endpoint without the class. Switches the mode on
A2UI5_MCP_SYSTEM_USERThe SAP user (Basic authentication)
A2UI5_MCP_SYSTEM_PASSWORDIts password — in the client's configuration file, in plain text
A2UI5_MCP_SYSTEM_PASSWORD_CMDInstead: a shell command that prints the password, run once and kept in memory. macOS keychain: store it with security add-generic-password -s abap2ui5-dev -a DEVELOPER -w, read it as above; Linux: secret-tool lookup service abap2ui5-dev
A2UI5_MCP_SYSTEM_CERT_SHA256The SHA-256 fingerprint of the system's certificate (openssl x509 -noout -fingerprint -sha256 -in cert.pem; colons and case do not matter): exactly that certificate is accepted without a CA, any other is refused before the logon is sent. The way to a development system's self-signed certificate
A2UI5_MCP_SYSTEM_INSECURE_TLS1 accepts ANY certificate, unverified - the password goes to whoever answers. Read-only: the write tools refuse it. Better: the pin above, or NODE_EXTRA_CA_CERTS pointing at the system's CA certificate (PEM)

What to know before switching it on:

  • It acts for real. An app_act event runs on the system as the configured user and may save, post or delete data. Use a development system and a user whose authorizations fit what the agent may do; the agent sees only what that user may see.
  • A rejected logon is sent once. SAP locks a user after a few failed logons, and an agent retries. After a 401 nothing more is sent with that password — every tool says so — until the server is restarted with the corrected one (Claude Desktop: quit and reopen), or the password command answers a different one.
  • Basic authentication only. SAML, X.509 or SSO logons are not supported in this mode; the VS Code extension's system server (its auth proxy) is the way there.
  • Use https:. Basic authentication sends the password with every request; over plain http: to anything but the loopback (127.0.0.1, [::1]) it travels in clear text. The app tools still work there, but system_status answers with the warning, and the write tools refuse it. system_status also says how the certificate is treated (tls): verified, pinned, or accepted unverified.
  • One system per registration. Two systems are two entries with two names.
  • No proxy support. The requests go straight to the host; HTTPS_PROXY is not read.
  • The protocol client is the sandbox's (lib/appclient.mjs): it does the CSRF token handshake and keeps the stateful session's sap-contextid itself; this mode adds the logon, the system's cookies and the start location (lib/system.mjs). app_list needs the ADT services and the user's authorization for them — app_start works without both when the class name is known.

Writing to the system (experimental, opt-in)

Everything above operates apps that are already on the system. With A2UI5_MCP_SYSTEM_WRITE=1 set in addition to A2UI5_MCP_SYSTEM_URL, the mode lists three more tools that put a class there over the ADT REST API. Without that variable they are not listed, and a call by name is refused before anything is sent.

Experimental. The write tools are written from the ADT request shapes (the ones the VS Code extension's Push and Activate checked against the open-source client abap-adt-api, plus class creation and the ABAP Unit run) and have only been tested against a fake system in this repository's test suite - never against a real SAP system. Expect to find differences on one; use a development system, and read every answer.

ToolWhat it does
system_write_classCreate or update a global class from its abapGit files — source (.clas.abap), optional testclasses (.clas.testclasses.abap), the description from xml (.clas.xml): lock, write the parts that differ, unlock. Leaves the class inactive. package is required ($TMP for a local object), every other package needs transport
system_activateActivate the class and return the activation messages: the abapGit file, line (1-based), column (0-based), severity and text of each
system_unit_testsRun the class's ABAP Unit tests through ADT: one entry per test method, a failed assertion with its details and stack
Variable
A2UI5_MCP_SYSTEM_WRITE1 lists the write tools. Off by default
A2UI5_MCP_SYSTEM_WRITE_ALLOWA regular expression (case-insensitive) a class name has to match to be written, activated or tested; default ^Z|^Y|^/\w+/, the customer namespaces. Narrow it to your project's prefix, e.g. ^ZCL_ACME_

What it will not do, whatever it is asked:

Documentation truncated — see the full README on GitHub.

Reviews

No reviews yet

Be the first to review this server!