Release 2.6.0.202610101635

This commit is contained in:
Erhan Keseli
2026-10-10 19:11:47 +02:00
parent 77c62ba95c
commit 3e6eea5139
24 changed files with 1056 additions and 23 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,4 +1,4 @@
#Tue Oct 06 08:54:29 CEST 2026 #Sat Oct 10 18:35:46 CEST 2026
artifact.repository.factory.order=artifacts.xml.xz,artifacts.xml,\! artifact.repository.factory.order=artifacts.xml.xz,artifacts.xml,\!
metadata.repository.factory.order=content.xml.xz,content.xml,\! metadata.repository.factory.order=content.xml.xz,content.xml,\!
version=1 version=1

View File

@@ -2,6 +2,14 @@
## [Unreleased] ## [Unreleased]
## [2.6.0] — 2026-10-10
### New features
- EPOD runs as a standalone MCP server with no IDE open, on macOS and Windows. The server runs on the runtime of the ADT for VS Code extension and logs on with SSO to the destinations of ~/.adtls/destinations.json. The new tools sap_system_list_sapgui and sap_system_add add an SSO system of SAP GUI as a destination.
- An MCP client starts the standalone server itself through the stdio entry `epod-adt stdio` (Windows: `epod-adt.cmd stdio`). The client configuration holds a command and no token. One server serves all clients. The commands `install-claude` and `install-codex` add the entry to Claude Code and Codex.
- The standalone mode writes `logs/server.log` and `logs/activity.jsonl`. The commands `log`, `activity`, `mode`, `token`, and `monitor` show the server state, change the access mode with no restart, and rotate the token. A change to write mode and the token display need an interactive terminal.
- The update sites carry the standalone zip and its SHA-256 file. The installation guides in `install/` describe both modes.
## [2.5.0] — 2026-10-06 ## [2.5.0] — 2026-10-06
### Changes ### Changes

View File

@@ -6,15 +6,19 @@ Connect multiple ABAP projects simultaneously and route each tool call to the ri
No credentials are stored or transmitted by the plugin. Authentication is handled transparently by the Eclipse ADT communication framework. No credentials are stored or transmitted by the plugin. Authentication is handled transparently by the Eclipse ADT communication framework.
This update site carries the Eclipse mode. EPOD also has a standalone mode that runs with no IDE open, on the runtime of the ADT for VS Code extension. The guides in [install/](install/README.md) describe both modes.
``` ```
AI Client --(HTTP/JSON-RPC)--> Eclipse Plugin --(ADT REST API / SNC)--> SAP System(s) AI Client --(HTTP/JSON-RPC)--> Eclipse Plugin --(ADT REST API / SNC)--> SAP System(s)
``` ```
## What's new in 2.4.0 ## What's new in 2.6.0
- `sap_create_object` creates a class with a test classes include. - EPOD runs as a standalone MCP server with no IDE open, on macOS and Windows. The server runs on the runtime of the ADT for VS Code extension and logs on with SSO. The new tools `sap_system_list_sapgui` and `sap_system_add` add an SSO system of SAP GUI as a destination.
- `sap_pull_source`, `sap_push_source`, and `sap_push_source_from_file` accept `includeType`. A write to `testclasses` creates the include if it is missing. - An MCP client starts the standalone server itself through the client entry `epod-adt stdio`. The client configuration holds a command and no token. `install-claude` and `install-codex` add the entry to Claude Code and Codex.
- The launcher commands `log`, `activity`, `mode`, `token`, and `monitor` show the server state, change the access mode with no restart, and rotate the token.
- The update sites carry the standalone zip and its SHA-256 file. The guide of the Eclipse mode is [install/eclipse.md](install/eclipse.md). The guides of both modes start at [install/README.md](install/README.md).
See [CHANGELOG.md](CHANGELOG.md) for earlier versions. See [CHANGELOG.md](CHANGELOG.md) for earlier versions.
@@ -36,6 +40,7 @@ The server therefore keeps tool responses small and call counts low:
### Via Eclipse Update Site ### Via Eclipse Update Site
<!-- external-only:start -->
The same site is served from two locations. Both carry byte-identical artifacts and the same version. Pick the one for you. The same site is served from two locations. Both carry byte-identical artifacts and the same version. Pick the one for you.
#### Users outside SAP — external site (no sign-in) #### Users outside SAP — external site (no sign-in)
@@ -49,6 +54,7 @@ Install straight from the update-site URL `https://git.epod.dev/erhan/epod-adt-m
3. Select **EPOD ADT MCP Server** from the list. 3. Select **EPOD ADT MCP Server** from the list.
4. Click **Next**, accept the license, and complete the wizard. 4. Click **Next**, accept the license, and complete the wizard.
5. Restart Eclipse when prompted. 5. Restart Eclipse when prompted.
<!-- external-only:end -->
#### SAP developers — internal site (git clone, then local install) #### SAP developers — internal site (git clone, then local install)
@@ -66,9 +72,11 @@ The internal repo is `https://github.tools.sap/GLOFINDEFICA/epod-adt-mcp-updates
To get a later release, run `git pull` in the clone. Then repeat the install. To get a later release, run `git pull` in the clone. Then repeat the install.
### Via dropins (quick install) The full guide of the Eclipse mode, with the client setup, the preferences, the update, the uninstall, and the errors, is [install/eclipse.md](install/eclipse.md).
Download the plugin JAR from the latest release and drop it into your Eclipse `dropins/` folder, then restart Eclipse. ### Via dropins (not tested)
The feature has two bundles. Copy both jars, `com.epod.adt.mcp.core_<version>.jar` and `com.epod.adt.mcp.plugin_<version>.jar`, from the folder `<version>/plugins/` of this update site into your Eclipse `dropins/` folder. Then restart Eclipse. Nobody tested this way with the two bundles of version 2.6.0. Use the update site if you can.
## Requirements ## Requirements
@@ -108,18 +116,16 @@ Add the following to your client's MCP configuration. Replace `<token>` with the
} }
``` ```
**Claude Code** — add to `.claude/settings.json` or `~/.claude/settings.json`: **Claude Code** — run this command (user scope), or put the block into the file `.mcp.json` of a project with `"type": "http"`:
```json ```
{ claude mcp add --transport http --scope user epod-abap-mcp http://127.0.0.1:3000/mcp --header "Authorization: Bearer <token>"
"mcpServers": { ```
"abap-adt": {
"type": "streamable-http", **Codex** — run this command, and set the variable `EPOD_ABAP_MCP_TOKEN` to the token in the terminal that starts Codex:
"url": "http://127.0.0.1:3000/mcp",
"headers": { "Authorization": "Bearer <token>" } ```
} codex mcp add epod-abap-mcp --url http://127.0.0.1:3000/mcp --bearer-token-env-var EPOD_ABAP_MCP_TOKEN
}
}
``` ```
#### Why the token and the Origin rejection #### Why the token and the Origin rejection
@@ -136,7 +142,7 @@ GET http://127.0.0.1:3000/health
### Preferences ### Preferences
**Window > Preferences > ABAP MCP Server** — change the server port, enable auto-start when you connect to a project, or set the full-source line threshold for element reads (default: 200 lines). **Window > Preferences > ABAP MCP Server** — change the server port, enable auto-start when you connect to a project, set the full-source line threshold for element reads (default: 200 lines), or set the security log detail level (`Full` or `Reduced`, default: `Full`).
The token buttons sit in the **ABAP MCP Server** view, not on the preference page. The **Copy client config** button copies the configuration block, with the bearer token, to the clipboard. The **Regenerate token** button creates a new token when the token leaks. The server stores the token and reuses it on every later start. The token survives an Eclipse restart, so the client configuration stays valid. The token buttons sit in the **ABAP MCP Server** view, not on the preference page. The **Copy client config** button copies the configuration block, with the bearer token, to the clipboard. The **Regenerate token** button creates a new token when the token leaks. The server stores the token and reuses it on every later start. The token survives an Eclipse restart, so the client configuration stays valid.
@@ -191,7 +197,7 @@ The plugin exposes 31 tools covering the full ABAP development workflow:
| `sap_pull_source_to_file` | Fetch source from SAP and write it to a local file (preferred for large objects). Same `element` and `includeType` parameters | | `sap_pull_source_to_file` | Fetch source from SAP and write it to a local file (preferred for large objects). Same `element` and `includeType` parameters |
| `sap_push_source` | Write source code from context to an ABAP object in SAP — runs the full lock → write → unlock → activate pipeline in one call. `includeType` selects a class include; a write to `testclasses` creates the include if it is missing | | `sap_push_source` | Write source code from context to an ABAP object in SAP — runs the full lock → write → unlock → activate pipeline in one call. `includeType` selects a class include; a write to `testclasses` creates the include if it is missing |
| `sap_push_source_from_file` | Save a local file back to SAP through the same one-call pipeline. Same `includeType` parameter as `sap_push_source` | | `sap_push_source_from_file` | Save a local file back to SAP through the same one-call pipeline. Same `includeType` parameter as `sap_push_source` |
| `sap_push_element` | Write one member block. The server merges the block into the current full source and pushes it — the model never holds the class. CLAS, INTF, PROG, FUGR | | `sap_push_element` | Write one member block. The server merges the block into the current full source and pushes it — the model never holds the class. CLAS and INTF |
| `sap_push_message` | Write one message or several messages into an existing message class (MSAG). The server reads the class, merges the messages, and writes the class back in one call. A new number is appended. An existing number is updated | | `sap_push_message` | Write one message or several messages into an existing message class (MSAG). The server reads the class, merges the messages, and writes the class back in one call. A new number is appended. An existing number is updated |
| `sap_pretty_print` | Format (pretty-print) ABAP source through the ADT pretty-printer service. The tool takes only the source and uses the server's stored settings | | `sap_pretty_print` | Format (pretty-print) ABAP source through the ADT pretty-printer service. The tool takes only the source and uses the server's stored settings |
@@ -231,6 +237,10 @@ The plugin exposes 31 tools covering the full ABAP development workflow:
| `sap_list_systems` | List all SAP systems currently connected and available for tool calls | | `sap_list_systems` | List all SAP systems currently connected and available for tool calls |
## Standalone mode
The standalone mode runs the EPOD MCP server with no IDE open, on macOS and on Windows. The server runs on the runtime of the ADT for VS Code extension and logs on with SSO. An MCP client starts the server through a client entry that holds no token. The standalone mode adds the tools `sap_system_list_sapgui` and `sap_system_add`. This update site carries the standalone zip and its SHA-256 file in the folder `standalone/`. The guides [install/standalone-macos.md](install/standalone-macos.md) and [install/standalone-windows.md](install/standalone-windows.md) describe the download, the SHA-256 check (`shasum -a 256 -c` on macOS, `Get-FileHash -Algorithm SHA256` on Windows), and the installation.
## Supported Object Types ## Supported Object Types
`CLAS` · `INTF` · `PROG` · `FUGR` · `FUNC` · `TABL` · `STRU` · `DDLS` · `DTEL` · `DOMA` · `SRVD` · `DDLX` · `DCLS` · `DDLA` · `SRVB` · `TTYP` · `ENQU` · `MSAG` · `BDEF` `CLAS` · `INTF` · `PROG` · `FUGR` · `FUNC` · `TABL` · `STRU` · `DDLS` · `DTEL` · `DOMA` · `SRVD` · `DDLX` · `DCLS` · `DDLA` · `SRVB` · `TTYP` · `ENQU` · `MSAG` · `BDEF`

View File

@@ -4,10 +4,10 @@
type='org.eclipse.equinox.internal.p2.artifact.repository.CompositeArtifactRepository' type='org.eclipse.equinox.internal.p2.artifact.repository.CompositeArtifactRepository'
version='1.0.0'> version='1.0.0'>
<properties size='2'> <properties size='2'>
<property name='p2.timestamp' value='1791270088'/> <property name='p2.timestamp' value='1791652298'/>
<property name='p2.compressed' value='false'/> <property name='p2.compressed' value='false'/>
</properties> </properties>
<children size='1'> <children size='1'>
<child location='2.5.0.202610060654/'/> <child location='2.6.0.202610101635/'/>
</children> </children>
</repository> </repository>

View File

@@ -4,10 +4,10 @@
type='org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository' type='org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository'
version='1.0.0'> version='1.0.0'>
<properties size='2'> <properties size='2'>
<property name='p2.timestamp' value='1791270088'/> <property name='p2.timestamp' value='1791652298'/>
<property name='p2.compressed' value='false'/> <property name='p2.compressed' value='false'/>
</properties> </properties>
<children size='1'> <children size='1'>
<child location='2.5.0.202610060654/'/> <child location='2.6.0.202610101635/'/>
</children> </children>
</repository> </repository>

36
install/README.md Normal file
View File

@@ -0,0 +1,36 @@
# Install EPOD ADT MCP Server
EPOD ADT MCP Server connects an MCP client, for example Claude Code or Codex, to SAP ABAP systems through ADT. The
server runs on your computer. It accepts connections from `127.0.0.1` only.
## Choose a mode
EPOD has two modes. Both modes give the same 31 tools.
| Topic | Eclipse mode | Standalone mode |
|---|---|---|
| Server | The server runs inside Eclipse ADT. Eclipse must run. | The server runs as its own process. No IDE must run. |
| Software | You need Eclipse 2024-03 or later with ADT. ADT 3.63.0 needs Java 21. | You need VS Code with the ADT for VS Code extension. VS Code does not need to run. |
| Logon | The server uses the logon of the ABAP project. The project can log on with SSO or with a user and a password. | The server logs on with SSO only. |
| Systems | The systems are the ABAP projects that you connect in the view. | The systems are the destinations of the ADT for VS Code extension. |
| Platforms | The mode runs on macOS and Windows. | The mode runs on macOS and on Windows x86_64. |
| Port | The default port is 3000. | The default port is 3100. |
| Client connection | The MCP client connects over HTTP with a token. | The MCP client starts a client entry. The entry holds no token. HTTP with a token is the second way. |
| Extra tools | The mode has no extra tools. | The mode adds `sap_system_list_sapgui` and `sap_system_add`. |
| Controls | You use the view "ABAP MCP Server" in Eclipse. | You use the launcher commands in a terminal and the live screen `monitor`. |
Linux is out of scope for both modes.
You can install both modes on one computer. The two servers use different ports and can run at the same time.
## Prerequisites for both modes
- You need an MCP client. The guides show Claude Code and Codex.
- Another MCP client must support an HTTP server with a header, or a server that the client starts as a command.
## Guides
- [Eclipse mode](eclipse.md)
- [Standalone mode on macOS](standalone-macos.md)
- [Standalone mode on Windows](standalone-windows.md)
- [Reference: commands, files, keys, and logs](reference.md)

259
install/eclipse.md Normal file
View File

@@ -0,0 +1,259 @@
# Eclipse mode
In the Eclipse mode the MCP server runs inside Eclipse ADT. The server uses the ADT session of each connected ABAP
project. The server asks for no password and stores no password.
## 1. Prerequisites
- Eclipse 2024-03 or later with SAP ADT is installed.
- Eclipse runs on Java 21 or later. ADT 3.63.0 needs Java 21.
- The Eclipse workspace has an ABAP project. You can log on to the project.
- An MCP client is installed, for example Claude Code or Codex.
## 2. Install from the update site
<!-- external-only:start -->
The update site is available at two places. Both places carry the same version.
<!-- external-only:end -->
The feature "EPOD ADT MCP Server"
installs two bundles: `com.epod.adt.mcp.core` and `com.epod.adt.mcp.plugin`.
<!-- external-only:start -->
### External update site (no sign-in)
1. In Eclipse, select **Help > Install New Software...**.
2. Click **Add...**.
3. In **Location**, enter `https://git.epod.dev/erhan/epod-adt-mcp-updatesite/raw/branch/main/`.
4. Select **EPOD ADT MCP Server** in the list.
5. Click **Next**.
6. Accept the license and complete the wizard.
7. Restart Eclipse when Eclipse asks for it.
<!-- external-only:end -->
### Internal update site (SAP developers)
The internal host gives files only to a browser with a sign-in. Eclipse cannot sign in. Install from a local clone.
1. Clone the repository:
git clone https://github.tools.sap/GLOFINDEFICA/epod-adt-mcp-updatesite.git
2. In Eclipse, select **Help > Install New Software...**.
3. Click **Add...**.
4. Click **Local...**.
5. Select the cloned folder. The folder holds `compositeContent.xml`.
6. Select **EPOD ADT MCP Server** in the list.
7. Click **Next**.
8. Accept the license and complete the wizard.
9. Restart Eclipse when Eclipse asks for it.
### Install with dropins (not tested)
CAUTION: Nobody tested this way with the two bundles of version 2.6.0. Use the update site if you can.
1. Get the two jars `com.epod.adt.mcp.core_<version>.jar` and `com.epod.adt.mcp.plugin_<version>.jar`. The folder
`<version>/plugins/` of the update site holds them.
2. Copy both jars into the folder `dropins/` of the Eclipse installation.
3. Restart Eclipse.
## 3. Start the server
1. Select **Window > Show View > Other...**.
2. Select **ABAP MCP Server > ABAP MCP Server**.
3. Click **Open**.
4. In the project table, select your ABAP project.
5. Click **Connect**. To connect all ABAP projects of the workspace, click **Connect All**.
The tab **Log** shows `Connected 1 of 1 systems.` The column **Status** of the project shows `● Connected`.
6. Click **Start Server**.
The tab **Log** shows `MCP server started on http://127.0.0.1:3000` and the client configuration block. The
button changes to **Stop Server**.
The server accepts connections from `127.0.0.1` only. Other computers cannot reach it.
To start the server at each connect, turn on **Auto-start server on connect** in the preferences (section 10).
## 4. The token
The server makes a token at the first start. The server stores the token in the Eclipse preferences of the
workspace. The server uses the same token after a restart of Eclipse.
CAUTION: The token gives access to your ABAP systems with your logon. Do not put the token into a file that other
persons can read. Do not commit the token to git.
- Click **Copy client config** to copy the client configuration block with the token. The button works only while
the server runs.
- Click **Regenerate token** when the token leaks. The old token stops working at once. Update each MCP client with
the new token.
## 5. Connect an MCP client
Each request to `/mcp` needs the header `Authorization: Bearer <token>`. In the commands below, replace `<token>`
with the token from the view. The examples use the name `epod-abap-mcp` for the client configuration. The name is
free.
### Claude Code
CAUTION: The command puts the token into the history of your shell. Remove the line from the history after the
command.
1. Run this command for your user:
claude mcp add --transport http --scope user epod-abap-mcp http://127.0.0.1:3000/mcp --header "Authorization: Bearer <token>"
2. Run `claude mcp list`. The list shows `epod-abap-mcp`.
To use the server in one project folder only, put this block into the file `.mcp.json` in that folder:
```json
{
"mcpServers": {
"epod-abap-mcp": {
"type": "http",
"url": "http://127.0.0.1:3000/mcp",
"headers": { "Authorization": "Bearer <token>" }
}
}
}
```
CAUTION: Add `.mcp.json` to the `.gitignore` file of the project. The file holds the token.
### Codex
Codex reads the token from an environment variable.
1. Add the client configuration:
codex mcp add epod-abap-mcp --url http://127.0.0.1:3000/mcp --bearer-token-env-var EPOD_ABAP_MCP_TOKEN
2. Set the variable in the terminal that starts Codex:
export EPOD_ABAP_MCP_TOKEN='<token>'
3. Start Codex in the same terminal.
`codex mcp list` shows `epod-abap-mcp` with the auth `Bearer token`.
The second way is a header in `~/.codex/config.toml`:
```toml
[mcp_servers.epod-abap-mcp]
url = "http://127.0.0.1:3000/mcp"
http_headers = { Authorization = "Bearer <token>" }
```
### Other MCP clients
Use the block that **Copy client config** copies:
```json
{
"mcpServers": {
"abap-adt": {
"type": "streamable-http",
"url": "http://127.0.0.1:3000/mcp",
"headers": { "Authorization": "Bearer <token>" }
}
}
}
```
The block names the entry `abap-adt`. The name is free. The block uses the type `streamable-http`.
Claude Code uses the type `http` for the same server. Use the type that your MCP client documents for a Streamable
HTTP server.
## 6. Check the connection
1. Open `http://127.0.0.1:3000/health` in a browser.
The page shows `"status": "ok"` and the version.
2. In the MCP client, ask for the tool `sap_list_systems`.
The answer lists the connected ABAP projects with their access mode.
## 7. Several ABAP projects
Each tool has the parameter `systemId`. The value is the name of the ABAP project.
- With one connected project, the server uses that project. `systemId` is optional.
- With two or more connected projects, each tool call needs `systemId`. Tell the MCP client which project to use.
The MCP client sees the names of the connected projects in the description of `systemId`.
## 8. Access mode
Each connected system has an access mode: `write` or `read-only`. A new connection starts in `write`. The column
**Mode** of the project table shows the mode.
1. Select the project in the table.
2. Click **Toggle Read-Only**.
The tab **Log** shows `System <name> is now read-only.`
A read-only system refuses these 10 tools and makes no call to SAP: `sap_push_source`, `sap_push_source_from_file`,
`sap_push_element`, `sap_push_message`, `sap_create_object`, `sap_activate`, `sap_lock`, `sap_unlock`,
`sap_transport_create`, and `sap_transport_release`. All other tools work. The view stores the mode for each
project. The mode stays after a restart of Eclipse.
## 9. Security log
The server writes each server start, server stop, tool call, and refused request to the file `mcp-security.log`.
Each line is one JSON object. The log holds no token and no ABAP source.
1. Click **Open log folder** in the view.
The folder `<workspace>/.metadata/.plugins/com.epod.adt.mcp.plugin/` opens.
The file rotates at 5 MB. The server keeps 5 archives. The detail level is a preference (section 10).
## 10. Preferences
Select **Window > Preferences...**. Select the page **ABAP MCP Server**.
| Field | Default | Effect |
|---|---|---|
| MCP Server Port | 3000 | The server uses the port at the next start. Change the URL in each MCP client too. |
| Auto-start server on connect | off | The server starts when you connect a project. |
| Full-source line threshold (element reads) | 200 | A member read of an object under this number of lines returns the full source. |
| Security log detail level | Full | The value `Reduced` removes the object name and the time from a tool-call line. |
## 11. Update
<!-- external-only:start -->
- External update site: select **Help > Check for Updates**.
<!-- external-only:end -->
- Internal update site: run `git pull` in the clone. Then repeat the install of section 2.
The token and the access modes stay after an update.
## 12. Uninstall
1. Click **Stop Server** in the view.
2. Remove the client configuration from each MCP client:
claude mcp remove epod-abap-mcp --scope user
codex mcp remove epod-abap-mcp
3. Open **Installation Details** from the About dialog of Eclipse.
4. On the page of the installed software, select **EPOD ADT MCP Server**.
5. Click **Uninstall...** and complete the wizard.
6. Restart Eclipse.
The token stays in the file `<workspace>/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.epod.adt.mcp.plugin.prefs`.
Delete the file to remove the token.
## 13. Errors
| Symptom | Cause | Action |
|---|---|---|
| The MCP client gets HTTP 401. | The client sends no token, or an old token. | Click **Copy client config** and update the client configuration. |
| The MCP client gets HTTP 403 with the text `Forbidden`. | The request has an `Origin` header, or a `Host` header that is not local. A browser sends such a request. | Use an MCP client. The server refuses requests from a web page. |
| The tab **Log** shows `ERROR: Connect to at least one ABAP project before starting the server.` | No project is connected. | Connect a project. Click **Start Server**. |
| The tab **Log** shows `ERROR: Failed to start server:` and a reason. | An example is a port that another program uses. | Set another port in the preferences. Update the URL in each MCP client. |
| A tool returns `The destination with ID <name> is not registered.` | The ABAP project has no logon after a restart of Eclipse. | Log on to the project in Eclipse. Call the tool again. |
| A tool returns `Multiple systems connected. Specify 'systemId'.` | Two or more projects are connected. | Tell the MCP client the project name. |
| A tool returns `System <name> is set to read-only.` | The project is read-only. | Click **Toggle Read-Only**, or use another project. |

148
install/reference.md Normal file
View File

@@ -0,0 +1,148 @@
# Reference
This page lists the commands, files, keys, and logs of both modes. The guides explain the procedures.
## 1. Commands of the standalone mode
The launcher is `epod-adt` on macOS and `epod-adt.ps1` on Windows. Run a command in this form:
- macOS: `~/.epod-adt/epod-adt <command>`
- Windows: `powershell -ExecutionPolicy Bypass -File $env:USERPROFILE\.epod-adt\epod-adt.ps1 <command>`
| Command | Action |
|---|---|
| `install [<folder>]` | The command copies the jars and the scripts of the unpacked zip into the home folder. Without `<folder>`, it uses the folder of the launcher. It refuses to run while the server runs. |
| `start` | The command starts the server and waits until `/health` answers, for a maximum of 120 seconds. |
| `stop` | The command stops the server and waits for a maximum of 60 seconds. |
| `status` | The command shows the server state, the client entry, and the HTTP configuration. The exit code is 3 when the server is stopped. |
| `stdio` | The command is the client entry for an MCP client on macOS. It starts the server when necessary. On Windows the client entry is `cmd /c "<home>\epod-adt.cmd" stdio`. |
| `install-claude` | The command adds the client entry `epod-adt` to Claude Code (user scope). |
| `install-codex` | The command adds the client entry `epod-adt` to Codex. |
| `log [-f] [-n <lines>]` | The command shows the last lines of `logs/server.log`. The default is 20 lines. `-f` follows the file. |
| `activity [-f] [-n <lines>]` | The command shows the tool calls of `logs/activity.jsonl` as a table. The options are the same as for `log`. |
| `mode` | The command lists the destinations with their state and access mode. |
| `mode <id> read-only` | The command sets the destination to read-only. It needs no terminal. |
| `mode <id> write` | The command sets the destination to write. It needs an interactive terminal and the answer `y`. |
| `token` | The command shows the token. It needs an interactive terminal. |
| `token rotate` | The command makes a new token. The old token stops working at once. |
| `monitor` | The command shows a live screen. It needs an interactive terminal. The keys are `[m]` mode, `[t]` token, `[l]` log, and `[q]` quit. |
| `monitor --snapshot [--width <columns>]` | The command writes one screen with a masked token. |
| `help` | The command shows the command list. |
`start`, `stop`, and `install` hold the file `start.lock` while they work. A client entry that must start the server
waits for this lock.
The commands `__install`, `__start`, `__stop`, `run-locked`, and `monitor --frames-to-stderr` are internal. Do not
use them.
## 2. Keys of epod.properties
The file `<home>/epod.properties` holds the settings of the standalone server. The first start writes the file with
comments when it does not exist.
| Key | Default | Rule |
|---|---|---|
| `port` | `3100` | The port of the server on `127.0.0.1`. A value that is not a number from 1 to 65535 gives 3100 and a warning. The server reads the value at the start. |
| `mode.<destinationId>` | `WRITE` | The access mode of the destination: `READ_ONLY` or `WRITE`. A destination without a line is `WRITE`. An unknown value is `READ_ONLY`. The command `mode` changes the line. A running server uses the change at once. |
| `security.log.level` | `full` | The detail level of the security log: `full` or `reduced`. Another value gives `full` and a warning. The server reads the value at the start. |
## 3. Files of the home folder
The home folder is `~/.epod-adt` on macOS and `%USERPROFILE%\.epod-adt` on Windows.
| File or folder | Content |
|---|---|
| `epod-adt`, `epod-adt.ps1`, `epod-adt.cmd` | These files are the launchers and the Windows client entry. |
| `README.md` | This file is the README of the zip. |
| `plugins/` | The folder holds the core jar and the standalone jar. |
| `configuration/` | The folder holds the runtime configuration. `start` writes it again at each start. |
| `workspace/` | The folder is the workspace of the server. It holds one ABAP project for each destination in use. |
| `epod.properties` | The file holds the settings (section 2). |
| `token` | The file holds the token. Only the owner can read the file. |
| `mcp-client.json` | The file holds the client configuration for the HTTP way, with the URL and the token. Only the owner can read the file. The server writes it at each start and after `token rotate`. |
| `epod-adt.pid` | The file holds the process ID of the running server. |
| `start.lock` | The file is the lock of `start`, `stop`, and `install`. |
| `stop` | The command `stop` creates this file. The server stops when it sees the file. |
| `logs/` | The folder holds the log files (section 5). |
## 4. Environment variables
| Variable | Effect |
|---|---|
| `EPOD_ADT_HOME` | The variable sets the home folder. The default is `~/.epod-adt` (macOS) or `%USERPROFILE%\.epod-adt` (Windows). Set the variable for each launcher command and in the client entry. |
| `EPOD_VSCODE_EXTENSIONS` | The variable sets the folder of the VS Code extensions. The default is `~/.vscode/extensions` (macOS) or `%USERPROFILE%\.vscode\extensions` (Windows). |
| `SNC_LIB`, `SNC_LIB_64`, `SECUDIR` | The variables hold the SNC settings of the SSO logon. At `start`, the launcher fills each empty variable. On macOS it reads the launchd environment (`launchctl getenv`). On Windows it reads the user environment, then the machine environment. The launcher prints the names of the filled variables, never their values. |
| `SAPLOGON_LSXML_FILE` | The variable names the landscape file of SAP Logon on Windows. `sap_system_list_sapgui` reads it when the registry has no value. |
## 5. Log files of the standalone mode
All log files are in `<home>/logs/`. No log file holds the token or ABAP source.
| File | Content | Size limit |
|---|---|---|
| `server.log` | The file holds the messages of the server, with the date and the time. | The file rotates at 5 MB. The server keeps 5 archives. |
| `activity.jsonl` | The file holds one line for each tool call. | The file rotates at 5 MB. The server keeps 5 archives. |
| `mcp-security.log` | The file holds the security events (section 6). | The file rotates at 5 MB. The server keeps 5 archives. |
| `shim.log` | The file holds the messages of the client entries. | The file rotates at 1 MB. The client entry keeps 3 archives. |
| `launcher.log` | The file holds the output of each start by a client entry. | The file has no size limit. |
| `console.log` | The file holds the output of the server process. | The launcher writes a new file at each start. |
| `generator.err` | The file holds the errors of the configuration step of `start`. | The launcher writes a new file at each start. |
## 6. Security log
Both modes write the file `mcp-security.log`. Each line is one JSON object. The line starts with `ts`, `event`, and
`user`.
| Event | Mode | Content |
|---|---|---|
| `server_start`, `server_stop` | both | The line records the port. The start line also records the number of tools. |
| `tool_call` | both | The line records the client name, the system, the tool, the object, and the result. The result is `ok`, `error`, or `refused`. The line also records the time in ms and the number of characters. |
| `refused_request` | both | The line records the reason (`host`, `origin`, or `token`) and the path. |
| `log_rotation` | both | The line records a rotation of the log file. |
| `readonly_toggle`, `level_change`, `token_regenerate` | Eclipse | The line records a change in the view or on the preference page. |
| `mode_change`, `token_rotate`, `destination_add` | standalone | The line records a change through a launcher command, `monitor`, or `sap_system_add`. The `destination_add` line has no SAP user name. |
The level `full` is the default. The level `reduced` removes the object and the time from a `tool_call` line. In the
standalone mode, `reduced` also removes the object names from `activity.jsonl`.
The log never records the token, ABAP source, a request body, a response body, or an ADT error message. A read-only
refusal is a `tool_call` line with the result `refused`.
Place of the file:
- Eclipse mode: `<workspace>/.metadata/.plugins/com.epod.adt.mcp.plugin/mcp-security.log`.
- Standalone mode: `<home>/logs/mcp-security.log`.
## 7. Preferences of the Eclipse mode
The preference node is `com.epod.adt.mcp.plugin`. Eclipse stores it in
`<workspace>/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.epod.adt.mcp.plugin.prefs`.
| Label | Key | Default |
|---|---|---|
| MCP Server Port | `mcp.server.port` | `3000` |
| Auto-start server on connect | `mcp.server.autostart` | `false` |
| Full-source line threshold (element reads) | `mcp.source.full.threshold` | `200` |
| Security log detail level | `mcp.security.log.level` | `full` |
| (no label, the view stores it) | `mcp.server.token` | The first start writes the token. |
| (no label, the view stores it) | `mcp.system.mode.<project>` | The key holds the access mode of a project. |
| Connected only (check box in the view) | `view.connectedOnly` | `false` |
## 8. Endpoints and write tools
| Endpoint | Method | Use |
|---|---|---|
| `/mcp` | POST | The client sends the JSON-RPC requests `initialize`, `tools/list`, and `tools/call`. |
| `/mcp` | GET | The client opens the SSE stream of the session. |
| `/mcp` | DELETE | The client ends a session. |
| `/health` | GET | The server returns its state as JSON. The request needs no token. |
| `/control/...` | GET, POST | The launcher commands of the standalone mode use it with the token. |
The server accepts a maximum of 8 sessions. It drops a session after 30 minutes without use.
Every request to `/mcp` needs the header `Authorization: Bearer <token>`. A request with an `Origin` header gets HTTP
403.
The 10 write tools refuse a read-only system: `sap_push_source`, `sap_push_source_from_file`, `sap_push_element`,
`sap_push_message`, `sap_create_object`, `sap_activate`, `sap_lock`, `sap_unlock`, `sap_transport_create`, and
`sap_transport_release`.

280
install/standalone-macos.md Normal file
View File

@@ -0,0 +1,280 @@
# Standalone mode on macOS
In the standalone mode the MCP server runs with no IDE open. The standalone server runs on the Java runtime of the
ADT for VS Code extension. It logs on to SAP with SSO through the destinations of that extension. The server never
changes a file of the extension.
## 1. Prerequisites
- VS Code with the extension ADT for VS Code (`sapse.adt-vscode`) is installed. VS Code does not need to run.
- The file `~/.adtls/destinations.json` holds at least one SSO destination. The ADT for VS Code extension writes
this file when you add a system in VS Code.
- A destination is an SSO destination when `ssoEnabled` is `true` and `sncType` is not `0` or `-1`. The standalone
server refuses every other destination and makes no logon attempt.
- An MCP client is installed, for example Claude Code or Codex.
- SAP GUI for Java is necessary only for the tool `sap_system_list_sapgui`. The tool reads
`~/Library/Preferences/SAP/SAPGUILandscape.xml`.
## 2. Get the standalone zip
The standalone zip has the name `epod-adt-standalone-<version>.zip`. Both update sites carry the zip of the current
version and a SHA-256 file in the folder `standalone/`.
1. Open a terminal in an empty folder.
2. Download the zip and the SHA-256 file.
<!-- external-only:start -->
Users outside SAP use the external update site:
curl -L -O https://git.epod.dev/erhan/epod-adt-mcp-updatesite/raw/branch/main/standalone/epod-adt-standalone-2.6.0.zip
curl -L -O https://git.epod.dev/erhan/epod-adt-mcp-updatesite/raw/branch/main/standalone/epod-adt-standalone-2.6.0.zip.sha256
<!-- external-only:end -->
SAP developers download the two files from `https://github.tools.sap/GLOFINDEFICA/epod-adt-mcp-updatesite/raw/main/standalone/` in a browser with a sign-in. The second way is a clone of
`https://github.tools.sap/GLOFINDEFICA/epod-adt-mcp-updatesite.git`. The clone has the files in `standalone/`.
3. Check the zip:
shasum -a 256 -c epod-adt-standalone-2.6.0.zip.sha256
The command prints `epod-adt-standalone-2.6.0.zip: OK`.
CAUTION: Do not install a zip when the check does not print `OK`.
You can also build the zip from the source repository with `./mvnw clean verify`. The build writes the zip to
`com.epod.adt.mcp.standalone.dist/target/`.
## 3. Install
1. Open a terminal in the folder of the zip.
2. Unpack the zip:
unzip epod-adt-standalone-2.6.0.zip
3. Run the install:
sh epod-adt-standalone-2.6.0/epod-adt install
The command prints `EPOD ADT MCP server installed in /Users/<user>/.epod-adt:` and the two jars.
The install copies the jars and the scripts into the home folder `~/.epod-adt`. Only you can open this folder.
### Use another home folder
The launcher uses the folder in the variable `EPOD_ADT_HOME` when the variable is set.
1. Set the variable in the terminal before the install:
export EPOD_ADT_HOME="$HOME/epod-other"
2. Run the install of step 3 in the same terminal.
3. Set the same variable in each terminal before you run a launcher command.
4. Use `"$EPOD_ADT_HOME"` in place of `~/.epod-adt` in all commands and paths of this guide. An example is
`"$EPOD_ADT_HOME/epod-adt" start`.
## 4. Start and check the server
You do not need to start the server before you use an MCP client. The client entry starts the server when it does
not run (section 5).
1. Start the server:
~/.epod-adt/epod-adt start
The command prints `EPOD ADT MCP server runs on http://127.0.0.1:3100/mcp (PID <pid>). Client configuration: /Users/<user>/.epod-adt/mcp-client.json`.
2. Show the state of the server:
~/.epod-adt/epod-adt status
The command prints the same line and the line `Client entry (stdio): /Users/<user>/.epod-adt/epod-adt stdio`.
The first start writes the files `token` and `mcp-client.json` into the home folder. It also writes
`epod.properties` when the file does not exist. The server
continues to run when the last MCP client ends.
To use another port, write the line `port=<number>` into `~/.epod-adt/epod.properties`. Create the file when it
does not exist. When the server runs, stop and start it.
## 5. Connect an MCP client
The MCP client starts the client entry `~/.epod-adt/epod-adt stdio`. The client configuration holds this command.
It holds no URL and no token. One standalone server serves all MCP clients.
### Claude Code
1. Add the client entry:
~/.epod-adt/epod-adt install-claude
The command prints `Claude Code entry epod-adt added (user scope).` and the command of the entry.
2. Run `claude mcp list`. The list shows `epod-adt`.
### Codex
1. Add the client entry:
~/.epod-adt/epod-adt install-codex
The command prints `Codex entry epod-adt added.` and the command of the entry.
2. Run `codex mcp list`. The list shows `epod-adt`.
### Manual commands
`install-claude` and `install-codex` remove an old entry `epod-adt` first. When `claude` or `codex` is not on the
`PATH`, the command prints the manual command. These are the manual commands:
claude mcp add epod-adt --scope user -- ~/.epod-adt/epod-adt stdio
codex mcp add epod-adt -- ~/.epod-adt/epod-adt stdio
With another home folder, the entry needs the variable `EPOD_ADT_HOME` too. `install-claude` and `install-codex` add
it when the variable is set. The manual commands are:
claude mcp add epod-adt --scope user -e "EPOD_ADT_HOME=<home>" -- "<home>/epod-adt" stdio
codex mcp add epod-adt --env "EPOD_ADT_HOME=<home>" -- "<home>/epod-adt" stdio
## 6. Make the first call
The first call on a destination logs on with SSO. The logon takes some seconds. No logon dialog opens.
1. List the systems:
claude -p "Call the tool sap_list_systems of the MCP server epod-adt. Show the result." --allowedTools "mcp__epod-adt__sap_list_systems"
The answer lists each destination with its state, for example `connected`, `not connected`, or `refused`, and its
access mode.
2. Make one read call on a destination. Replace `ABC_001` with your destination ID:
claude -p "Call sap_search_object of the MCP server epod-adt with systemId ABC_001 and query CL_ABAP_TYPEDESCR. Show the result." --allowedTools "mcp__epod-adt__sap_search_object"
The answer shows the class `CL_ABAP_TYPEDESCR`.
The parameter `systemId` of a tool is the destination ID. With one destination, `systemId` is optional. With two or
more destinations, each tool call needs it.
## 7. Add a system from SAP GUI
The tool `sap_system_add` adds an SSO system of the SAP GUI landscape as a new destination. The destination ID is
`<SID>_<client>`, for example `ABC_001`. The server uses the new destination at once, with no restart.
1. Ask the MCP client to call `sap_system_list_sapgui`.
The answer has the columns `SID`, `DESCRIPTION`, `KIND`, `GROUP`, `SSO`, `SNC`, and `DESTINATION`. Only an SSO entry
with a message server can become a destination.
2. Ask the MCP client to call `sap_system_add` with these values: `sid`, `client`, `user`, and `language`.
The answer is `Destination ABC_001 added to <file>. The first tool call on ABC_001 logs on with SSO.`
The tool refuses a SID that is not in the landscape, an entry without SSO, an application-server entry, and an
existing destination ID. When the landscape has more than one SSO entry for the SID, add the value `group`.
CAUTION: VS Code can overwrite the new destination when it writes `destinations.json` before it reads the change.
Check the destination list after the addition.
## 8. Access mode
Each destination has an access mode, `write` or `read-only`. A destination without a mode line is `write`. A
read-only destination refuses the 10 write tools and makes no request to SAP.
- Show the destinations and their mode:
~/.epod-adt/epod-adt mode
- Set a destination to read-only:
~/.epod-adt/epod-adt mode ABC_001 read-only
The command prints `ABC_001: write → read-only. The next call on ABC_001 uses the new mode.`
- Set a destination to write. Run the command in a terminal, and answer `y`:
~/.epod-adt/epod-adt mode ABC_001 write
The command asks `Set ABC_001 to write? [y/n]`.
The command writes the line `mode.ABC_001` into `epod.properties`. A running server uses the new mode at once. No
MCP tool can change a mode.
CAUTION: A change to `write` needs an interactive terminal. This rule stops a write change by the model through a
shell tool. The rule is not a security boundary. A local program with your user rights can edit `epod.properties`.
## 9. Token
The token protects the HTTP endpoint of the standalone server. The client entry reads the token from the file
`~/.epod-adt/token`. Only you can read this file.
- To show the token, run `~/.epod-adt/epod-adt token` in a terminal. The command refuses to run in a pipe or in a
shell tool.
- To make a new token, run `~/.epod-adt/epod-adt token rotate`. The old token stops working at once. Clients with
the client entry continue. A client with the HTTP configuration needs the new `mcp-client.json`.
## 10. Watch the server
| Command | Result |
|---|---|
| `~/.epod-adt/epod-adt monitor` | The command shows a live screen with the clients, the systems, the totals, the activity, and the log. The keys are `[m]` mode, `[t]` token, `[l]` log, and `[q]` quit. |
| `~/.epod-adt/epod-adt monitor --snapshot` | The command writes one screen with a masked token and ends. |
| `~/.epod-adt/epod-adt log` | The command shows the last 20 lines of the server log. Add `-n <lines>` for another number of lines and `-f` to follow the file. |
| `~/.epod-adt/epod-adt activity` | The command shows the last tool calls as a table. It takes the same options as `log`. |
`monitor` needs an interactive terminal. `monitor --snapshot` also works in a pipe and in a shell tool.
## 11. Connect with HTTP
Use this way for an MCP client that cannot start a command. With this way, you start the server yourself.
1. Start the server with `~/.epod-adt/epod-adt start`.
2. Give the file `~/.epod-adt/mcp-client.json` to the MCP client. The file holds the URL and the token. Example:
claude --mcp-config ~/.epod-adt/mcp-client.json
The server writes `mcp-client.json` at each start and after `token rotate`.
## 12. Stop, update, and uninstall
Stop the server:
~/.epod-adt/epod-adt stop
The command prints `EPOD ADT MCP server stopped (PID <pid>). Port 3100 is free.`
Update to a new zip:
1. Stop the server.
2. Download and check the new zip (section 2).
3. Unpack the new zip.
4. Run `sh epod-adt-standalone-<version>/epod-adt install` for the new version.
The update keeps the token, `epod.properties`, and the client entries.
Uninstall:
1. Stop the server.
2. Remove the client entries:
claude mcp remove epod-adt --scope user
codex mcp remove epod-adt
3. Delete the home folder:
rm -rf ~/.epod-adt
Do not delete `~/.adtls/destinations.json`. The ADT for VS Code extension owns this file.
## 13. Errors
| Message | Cause | Action |
|---|---|---|
| `The ADT for VS Code extension is not installed. No folder sapse.adt-vscode-* with a JRE in <folder>.` | The launcher finds no extension in `~/.vscode/extensions`. | Install the extension in VS Code. For another folder, set `EPOD_VSCODE_EXTENSIONS`. |
| `No EPOD jars in <home>/plugins. Run: epod-adt install <folder of the unpacked zip>` | The home folder has no installation. | Run the install of section 3. |
| `The server runs (PID <pid>). Run: epod-adt stop` | You started an install while the server runs. | Stop the server. Run the install again. |
| `Port 3100 is in use by PID <pid>. Set another port in <home>/epod.properties.` | Another program uses the port. | Set another port in `epod.properties`. |
| `<file> has no SSO destination. The standalone mode logs on with SSO only.` | `destinations.json` has no SSO destination. The server cannot start without one. | Add an SSO destination in VS Code. |
| `The server process ended during the start.` | The server stopped. The command prints the last lines of `logs/console.log`. | Read the lines. Send them to the maintainer if necessary. |
| A tool returns `Destination <id> is not an SSO destination (<reason>).` | The destination has no SSO. | Use an SSO destination. |
| A tool returns `System <id> is set to read-only.` | The destination is read-only. | Run `~/.epod-adt/epod-adt mode <id> write` in a terminal. |
| A tool returns `Multiple systems available. Specify 'systemId'.` | Two or more destinations exist. | Tell the MCP client the destination ID. |
| `A change to write mode needs an interactive terminal.` | A shell tool or a pipe ran `mode <id> write`. | Run the command in a terminal. |

View File

@@ -0,0 +1,291 @@
# Standalone mode on Windows
In the standalone mode the MCP server runs with no IDE open. The standalone server runs on the Java runtime of the
ADT for VS Code extension. It logs on to SAP with SSO through the destinations of that extension. The server never
changes a file of the extension.
All commands of this guide are for Windows PowerShell 5.1. A command for `cmd.exe` says so. In this guide, a
terminal is a PowerShell window.
## 1. Prerequisites
- Windows runs on x86_64. The ADT for VS Code extension has no Java runtime for Windows on ARM64.
- VS Code with the extension ADT for VS Code (`sapse.adt-vscode`) is installed. VS Code does not need to run.
- The file `%USERPROFILE%\.adtls\destinations.json` holds at least one SSO destination. The ADT for VS Code
extension writes this file when you add a system in VS Code.
- A destination is an SSO destination when `ssoEnabled` is `true` and `sncType` is not `0` or `-1`. The standalone
server refuses every other destination and makes no logon attempt.
- An MCP client is installed, for example Claude Code or Codex.
- SAP GUI for Windows is necessary only for the tool `sap_system_list_sapgui`. The tool reads the landscape file of
SAP Logon, by default `%APPDATA%\SAP\Common\SAPUILandscape.xml`.
Nobody tested Claude Code or Codex on Windows with the client entry. The tests on Windows 11 used a scripted MCP
client with the same command.
## 2. Get the standalone zip
The standalone zip has the name `epod-adt-standalone-<version>.zip`. Both update sites carry the zip of the current
version and a SHA-256 file in the folder `standalone/`.
1. Open a terminal in an empty folder.
2. Download the zip and the SHA-256 file.
<!-- external-only:start -->
Users outside SAP use the external update site:
Invoke-WebRequest -UseBasicParsing -Uri https://git.epod.dev/erhan/epod-adt-mcp-updatesite/raw/branch/main/standalone/epod-adt-standalone-2.6.0.zip -OutFile epod-adt-standalone-2.6.0.zip
Invoke-WebRequest -UseBasicParsing -Uri https://git.epod.dev/erhan/epod-adt-mcp-updatesite/raw/branch/main/standalone/epod-adt-standalone-2.6.0.zip.sha256 -OutFile epod-adt-standalone-2.6.0.zip.sha256
<!-- external-only:end -->
SAP developers download the two files from `https://github.tools.sap/GLOFINDEFICA/epod-adt-mcp-updatesite/raw/main/standalone/` in a browser with a sign-in. The second way is a clone of
`https://github.tools.sap/GLOFINDEFICA/epod-adt-mcp-updatesite.git`. The clone has the files in `standalone/`.
3. Check the zip:
(Get-FileHash -Algorithm SHA256 .\epod-adt-standalone-2.6.0.zip).Hash -eq (Get-Content .\epod-adt-standalone-2.6.0.zip.sha256).Split(' ')[0]
The command prints `True`.
CAUTION: Do not install a zip when the check does not print `True`.
You can also build the zip from the source repository on macOS with `./mvnw clean verify`. The build writes the zip
to `com.epod.adt.mcp.standalone.dist/target/`.
## 3. Install
Windows marks a file from the internet. A Group Policy can block a marked script.
1. Open a terminal in the folder of the zip.
2. Remove the mark from the downloaded zip:
Unblock-File .\epod-adt-standalone-2.6.0.zip
3. Unpack the zip:
Expand-Archive epod-adt-standalone-2.6.0.zip -DestinationPath .
4. Run the install:
powershell -ExecutionPolicy Bypass -File .\epod-adt-standalone-2.6.0\epod-adt.ps1 install
The command prints `EPOD ADT MCP server installed in C:\Users\<user>\.epod-adt:` and the two jars.
The install copies the jars and the scripts into the home folder `%USERPROFILE%\.epod-adt`. The server gives the
files `token` and `mcp-client.json` an access list with the owner only.
In this guide, `epod-adt.ps1 <command>` is short for this command line:
powershell -ExecutionPolicy Bypass -File $env:USERPROFILE\.epod-adt\epod-adt.ps1 <command>
### Use another home folder
The launcher uses the folder in the variable `EPOD_ADT_HOME` when the variable is set.
1. Set the variable in the terminal before the install:
$env:EPOD_ADT_HOME = "C:\Users\<user>\EPOD other"
2. Run the install of step 4 in the same terminal.
3. Set the same variable in each terminal before you run a launcher command.
4. Use `$env:EPOD_ADT_HOME` in place of `$env:USERPROFILE\.epod-adt` in all commands and paths of this guide. An
example is `$env:EPOD_ADT_HOME\epod-adt.ps1`.
## 4. Start and check the server
You do not need to start the server before you use an MCP client. The client entry starts the server when it does
not run (section 5).
1. Start the server:
powershell -ExecutionPolicy Bypass -File $env:USERPROFILE\.epod-adt\epod-adt.ps1 start
The command prints `EPOD ADT MCP server runs on http://127.0.0.1:3100/mcp (PID <pid>). Client configuration: C:\Users\<user>\.epod-adt\mcp-client.json`.
2. Show the state of the server with `epod-adt.ps1 status`.
The command prints the same line and the line `Client entry (stdio): cmd /c C:\Users\<user>\.epod-adt\epod-adt.cmd stdio`.
The first start writes the files `token` and `mcp-client.json` into the home folder. It also writes
`epod.properties` when the file does not exist. The server
continues to run when the last MCP client ends.
To use another port, write the line `port=<number>` into `%USERPROFILE%\.epod-adt\epod.properties`. Create the file
when it does not exist. When the server runs, stop and start it.
## 5. Connect an MCP client
The MCP client starts the client entry `cmd /c "%USERPROFILE%\.epod-adt\epod-adt.cmd" stdio`. The client
configuration holds this command. It holds no URL and no token. One standalone server serves all MCP clients. The
client entry uses `cmd.exe`, because the start of PowerShell takes about 1.5 seconds.
### Claude Code
1. Add the client entry with `epod-adt.ps1 install-claude`.
The command prints `Claude Code (claude) entry epod-adt added.` and the command of the entry.
2. Run `claude mcp list`. The list shows `epod-adt`.
### Codex
1. Add the client entry with `epod-adt.ps1 install-codex`.
The command prints `Codex (codex) entry epod-adt added.` and the command of the entry.
2. Run `codex mcp list`. The list shows `epod-adt`.
### Manual commands
`install-claude` and `install-codex` remove an old entry `epod-adt` first. When `claude` or `codex` is not on the
`PATH`, the command prints the manual command. These are the manual commands for PowerShell:
claude mcp add epod-adt --scope user -- cmd /c "$env:USERPROFILE\.epod-adt\epod-adt.cmd" stdio
codex mcp add epod-adt -- cmd /c "$env:USERPROFILE\.epod-adt\epod-adt.cmd" stdio
In `cmd.exe`, write `%USERPROFILE%` in place of `$env:USERPROFILE`.
Claude Code starts a `.cmd` file only through `cmd /c`. A home path with a space needs quotes around the path of
`epod-adt.cmd`, and only there. This form works:
cmd /c "C:\Users\<user>\EPOD test\home dir\epod-adt.cmd" stdio
With another home folder, the entry needs the variable `EPOD_ADT_HOME` too. `install-claude` and `install-codex` add
it when the variable is set. The manual commands are:
claude mcp add epod-adt --scope user -e "EPOD_ADT_HOME=<home>" -- cmd /c "<home>\epod-adt.cmd" stdio
codex mcp add epod-adt --env "EPOD_ADT_HOME=<home>" -- cmd /c "<home>\epod-adt.cmd" stdio
When the MCP client ends the client entry, the entry closes its session on the server. A hard kill of the entry
(TerminateProcess) gives the entry no chance to do this. The server then drops the session after 30 minutes without
use, or when it reaches its limit of 8 sessions.
## 6. Make the first call
The first call on a destination logs on with SSO. The logon takes some seconds. No logon dialog opens.
1. In the MCP client, ask for the tool `sap_list_systems` of the server `epod-adt`.
The answer lists each destination with its state, for example `connected`, `not connected`, or `refused`, and its
access mode.
2. Ask for one read call on a destination, for example `sap_search_object` with `systemId` `ABC_001` and the query
`CL_ABAP_TYPEDESCR`. Replace `ABC_001` with your destination ID.
The answer shows the class `CL_ABAP_TYPEDESCR`.
The parameter `systemId` of a tool is the destination ID. With one destination, `systemId` is optional. With two or
more destinations, each tool call needs it.
## 7. Add a system from SAP GUI
The tool `sap_system_add` adds an SSO system of the SAP GUI landscape as a new destination. The destination ID is
`<SID>_<client>`, for example `ABC_001`. The server uses the new destination at once, with no restart.
1. Ask the MCP client to call `sap_system_list_sapgui`.
The answer has the columns `SID`, `DESCRIPTION`, `KIND`, `GROUP`, `SSO`, `SNC`, and `DESTINATION`. Only an SSO entry
with a message server can become a destination.
2. Ask the MCP client to call `sap_system_add` with these values: `sid`, `client`, `user`, and `language`.
The answer is `Destination ABC_001 added to <file>. The first tool call on ABC_001 logs on with SSO.`
The tool refuses a SID that is not in the landscape, an entry without SSO, an application-server entry, and an
existing destination ID. When the landscape has more than one SSO entry for the SID, add the value `group`.
CAUTION: VS Code can overwrite the new destination when it writes `destinations.json` before it reads the change.
Check the destination list after the addition.
## 8. Access mode
Each destination has an access mode, `write` or `read-only`. A destination without a mode line is `write`. A
read-only destination refuses the 10 write tools and makes no request to SAP.
- Show the destinations and their mode with `epod-adt.ps1 mode`.
- Set a destination to read-only with `epod-adt.ps1 mode ABC_001 read-only`.
The command prints `ABC_001: write → read-only. The next call on ABC_001 uses the new mode.`
- Set a destination to write with `epod-adt.ps1 mode ABC_001 write`. Run the command in a terminal, and answer
`y`.
The command asks `Set ABC_001 to write? [y/n]`.
The command writes the line `mode.ABC_001` into `epod.properties`. A running server uses the new mode at once. No
MCP tool can change a mode.
CAUTION: A change to `write` needs an interactive terminal. This rule stops a write change by the model through a
shell tool. The rule is not a security boundary. A local program with your user rights can edit `epod.properties`.
## 9. Token
The token protects the HTTP endpoint of the standalone server. The client entry reads the token from the file
`%USERPROFILE%\.epod-adt\token`. Only you can read this file.
- To show the token, run `epod-adt.ps1 token` in a terminal. The command refuses to run in a pipe or in a
shell tool.
- To make a new token, run `epod-adt.ps1 token rotate`. The old token stops working at once. Clients with the client
entry continue. A client with the HTTP configuration needs the new `mcp-client.json`.
## 10. Watch the server
| Command | Result |
|---|---|
| `epod-adt.ps1 monitor` | The command shows a live screen with the clients, the systems, the totals, the activity, and the log. The keys are `[m]` mode, `[t]` token, `[l]` log, and `[q]` quit. |
| `epod-adt.ps1 monitor --snapshot` | The command writes one screen with a masked token and ends. |
| `epod-adt.ps1 log` | The command shows the last 20 lines of the server log. Add `-n <lines>` for another number of lines and `-f` to follow the file. |
| `epod-adt.ps1 activity` | The command shows the last tool calls as a table. It takes the same options as `log`. |
`monitor` needs an interactive terminal. It works in the console of PowerShell (conhost) and in Windows Terminal.
`monitor --snapshot` also works in a pipe and in a shell tool.
## 11. Connect with HTTP
Use this way for an MCP client that cannot start a command. With this way, you start the server yourself.
1. Start the server with `epod-adt.ps1 start`.
2. Give the file `%USERPROFILE%\.epod-adt\mcp-client.json` to the MCP client. The file holds the URL and the token.
The server writes `mcp-client.json` at each start and after `token rotate`.
## 12. Stop, update, and uninstall
Stop the server with `epod-adt.ps1 stop`. The command prints
`EPOD ADT MCP server stopped (PID <pid>). Port 3100 is free.`
Update to a new zip:
1. Stop the server.
2. Download and check the new zip (section 2).
3. Run `Unblock-File` on the new zip and unpack it.
4. Run `powershell -ExecutionPolicy Bypass -File .\epod-adt-standalone-<version>\epod-adt.ps1 install`.
The update keeps the token, `epod.properties`, and the client entries.
Uninstall:
1. Stop the server.
2. Remove the client entries:
claude mcp remove epod-adt --scope user
codex mcp remove epod-adt
3. Delete the home folder:
Remove-Item -LiteralPath $env:USERPROFILE\.epod-adt -Recurse -Force
Do not delete `%USERPROFILE%\.adtls\destinations.json`. The ADT for VS Code extension owns this file.
## 13. Errors
| Message | Cause | Action |
|---|---|---|
| `The ADT for VS Code extension is not installed. No folder sapse.adt-vscode-* with a JRE in <folder>.` | The launcher finds no extension in `%USERPROFILE%\.vscode\extensions`. | Install the extension in VS Code. For another folder, set `EPOD_VSCODE_EXTENSIONS`. |
| `No EPOD jars in <home>\plugins.` | The home folder has no installation. | Run the install of section 3. |
| `The server runs (PID <pid>). Run: epod-adt.ps1 stop` | You started an install while the server runs. | Stop the server. Run the install again. |
| `Port 3100 is in use by PID <pid>. Set another port in <home>\epod.properties.` | Another program uses the port. | Set another port in `epod.properties`. |
| `<file> has no SSO destination. The standalone mode logs on with SSO only.` | `destinations.json` has no SSO destination. The server cannot start without one. | Add an SSO destination in VS Code. |
| `The server process ended during the start.` | The server stopped. The command prints the last lines of `logs\console.log`. | Read the lines. Send them to the maintainer if necessary. |
| A tool returns `Destination <id> is not an SSO destination (<reason>).` | The destination has no SSO. | Use an SSO destination. |
| A tool returns `System <id> is set to read-only.` | The destination is read-only. | Run `epod-adt.ps1 mode <id> write` in a terminal. |
| A tool returns `Multiple systems available. Specify 'systemId'.` | Two or more destinations exist. | Tell the MCP client the destination ID. |
| `A change to write mode needs an interactive terminal.` | A shell tool or a pipe ran `mode <id> write`. | Run the command in a terminal. |

Binary file not shown.

View File

@@ -0,0 +1 @@
2f6285f9e8ff0b57768e77b9d25387ebc58f084d13230465cea28f5b11028f79 epod-adt-standalone-2.6.0.zip