12 KiB
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.
mode <id> read-only and mode <id> write send the change to the running server. When the server does not answer on
its port, the commands read epod-adt.pid. When that process runs, the commands change nothing and exit with code 1.
Else the commands write epod.properties.
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. The names of the command mode (read-only and write) are also valid. The case of a value does not matter. 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 |
| 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 11 write tools refuse a read-only system: sap_push_source, sap_push_source_from_file, sap_push_element,
sap_push_message, sap_push_fields, sap_create_object, sap_activate, sap_lock, sap_unlock,
sap_transport_create, and sap_transport_release.
Some calls stop before the write or before any ADT request. The result text names the reason.
| Case | Result text |
|---|---|
| The system has no ADT collection for the call. EPOD sends no request. | The system <system> has no ADT collection <collection> for <purpose>. EPOD sent no request. |
A write tool or sap_lock: the object needs a transport request, and the call names none. The tool writes nothing and releases its lock. |
The text names the lock state and holds A write needs a transport request. The call names no request. The parameter 'transport' takes the request number. |
| A write tool: the object is local, and the call names a request. The tool writes without the request. | The object <name> needs no transport request. The lock answer marks the object as local (IS_LOCAL is X). The tool sent the write without the request <request>. |
sap_create_object: the transport check of the system refuses the create. EPOD sends no create request. |
The transport check of <name> refused the create: <server text> EPOD sent no create request. |
sap_create_object: the object is locked in another request than the given request. |
The object <name> is locked in request <request>. EPOD used this request, not <given request>. |
sap_create_object: the package records no changes, and the call names a request. |
The package <package> records no changes. EPOD sent the create without the request <request>. |