<!-- https://abap2ui5.github.io/docs/advanced/ai_path -->

# AI Setup: The Recommended Path

There are many tools around abap2UI5 for working with an AI assistant. You
need three steps to start. Each step is useful on its own, so you can stop
after any of them. None of them needs an SAP system.

To only try what an assistant can do, without installing anything, open the
[AI Studio](https://abap2ui5.github.io/browser-playground/ai/) in the browser. The
steps below are for the assistant you work with every day.

## The Three Steps

### Step 1: Give the Assistant the Knowledge and the Tools

In **Claude Code**, install the abap2UI5 plugin. It brings the skills that
explain how an app is built, and the [MCP server](https://abap2ui5.github.io/docs/advanced/mcp_server.md), a
small program that lets the assistant check a view by itself:

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

In **GitHub Copilot**, install the Copilot plugin from the Copilot CLI. It
brings the same skills and registers the same MCP server:

```sh
copilot plugin install abap2UI5/abap2UI5:plugin-copilot
```

In **VS Code**, install the [extension](https://abap2ui5.github.io/docs/advanced/vscode.md) instead. It
registers the same MCP server for every assistant in the window:

```sh
code --install-extension abap2ui5.abap2ui5
```

With **any other MCP client** (Cursor, Claude Desktop), register the MCP
server alone:

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

An agent that reads the open Agent Skills format takes the skills alone, and
the MCP server with the command above:

```sh
npx skills add abap2UI5/abap2UI5
```

What you should see: ask the assistant "which abap2UI5 tools do you have?".
It lists tools such as `examples`, `app_guide` and `validate_view`.

If it lists none, the server is not registered for this project. Install the
plugin or run the command above. A project with its own `.mcp.json` brings
the server along. On your computer, Claude Code first asks once whether you
trust the folder, then once more for the server. This setting in
`.claude/settings.json` approves the server in advance, so only the first
question remains:

```json
{
  "enabledMcpjsonServers": ["abap2ui5"]
}
```

A cloud session on claude.ai starts the server from `.mcp.json` by itself.
A project made from the
[app template](https://github.com/abap2UI5/app-template) carries both files,
and its `AGENTS.md` tells the assistant which tool to call when.

### Step 2: Let It Check Its Own Work

Keep your apps in a repository made from the
[app-template](https://abap2ui5.github.io/docs/advanced/working_off_stack.md). The template has one command
that checks every class, and the assistant is allowed to run it without
asking:

```sh
npm run check
```

It runs two checks: abaplint says whether the ABAP compiles, and the
[abap2UI5 linter](https://abap2ui5.github.io/docs/advanced/linter.md) says whether the view names controls and
properties that UI5 really has.

What you should see: the command ends without findings. From now on the
assistant runs it after every change and repairs what it reports.

### Step 3: Let It See the Running App

This step is optional. Install a browser for the MCP server:

```sh
npx playwright install chromium
```

The assistant can now start the app on your machine and look at a
screenshot of it. The first start builds the backend once, which takes about
a minute.

What you should see: ask the assistant to run the app. It answers with a
picture of the screen.

## What You Get and What It Costs

| Step | You get | It costs |
|---|---|---|
| 1 | an assistant that knows the current API, finds a sample before it writes code, and checks a view in seconds | two commands, a few megabytes |
| 2 | every class compiled and every view checked, on your machine and on every push | a repository made from the template, and `npm ci` once |
| 3 | a screenshot of the running app, and tools to fill fields and press buttons in it | a browser download, and about a minute for the first build |

## The Tool Map

![The AI tools on two axes - who acts, you or the AI, and whether an SAP system is needed; the recommended path is the Claude Code or Copilot plugin and the MCP server as step 1 and the linter as step 2](https://abap2ui5.github.io/docs/advanced/ai-tool-map.svg)

Every other tool is an addition to these steps. What each one does and when
to add it is in the table on
[Developing with AI](https://abap2ui5.github.io/docs/get_started/ai.md#the-tools).

## If the Assistant Has No Tools at All

An assistant that can only read web pages, such as a chat in the browser,
still works. Paste the paragraph from
[Developing with AI](https://abap2ui5.github.io/docs/get_started/ai.md#paste-the-essentials) in front of your
task. It tells the assistant which three files to read first.

## Next Steps

- [MCP Server](https://abap2ui5.github.io/docs/advanced/mcp_server.md) - every tool, and the setup levels
  beyond step 3
- [Working Off-Stack](https://abap2ui5.github.io/docs/advanced/working_off_stack.md) - the app-template of
  step 2
- [Agent-Operable Apps](https://abap2ui5.github.io/docs/advanced/agents.md) - the other direction: an agent
  that uses a finished app
