Release 2.14.0.202611221916

This commit is contained in:
Erhan Keseli
2026-11-22 20:48:13 +01:00
parent bdbc3ac178
commit 863319ebb7
27 changed files with 111 additions and 40 deletions

View File

@@ -5,7 +5,7 @@ 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 36 tools.
EPOD has two modes. Both modes give 36 common tools.
| Topic | Eclipse mode | Standalone mode |
|---|---|---|
@@ -16,7 +16,7 @@ EPOD has two modes. Both modes give the same 36 tools.
| 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`. |
| Extra tools | The mode adds the editor tools `sap_active_editor`, `sap_editor_problems`, and `sap_apply_to_editor` (39 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.

View File

@@ -140,6 +140,8 @@ Codex reads the token from an environment variable.
`codex mcp list` shows `epod-abap-mcp` with the auth `Bearer token`.
For the editor tools, Codex needs a text in the file `AGENTS.md`. Refer to [The open editor](#the-open-editor).
The second way is a header in `~/.codex/config.toml`:
```toml
@@ -197,12 +199,50 @@ Each connected system has an access mode: `write` or `read-only`. A new connecti
The tab **Log** shows `System <name> is now read-only.`
A read-only system refuses these 12 tools and sends no write request to SAP: `sap_push_source`, `sap_push_source_from_file`,
A read-only system refuses these 13 tools and sends no write request to SAP: `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`, `sap_transport_release`, and `sap_quick_fix`. `sap_quick_fix` without `fix`
`sap_unlock`, `sap_transport_create`, `sap_transport_release`, `sap_quick_fix`, and `sap_apply_to_editor`. `sap_quick_fix` without `fix`
only lists the proposals and works on a read-only system. All other tools work. The view stores the mode
for each project. The mode stays after a restart of Eclipse.
### The open editor
The Eclipse mode has three tools for the ABAP editor that you work in: `sap_active_editor` reads the last active ABAP
editor, `sap_editor_problems` reads the errors and warnings that this editor shows, and `sap_apply_to_editor` writes
one block into the open editor of the object that the call names. The three tools send no request to SAP.
`sap_apply_to_editor` does not save and does not activate. You save and activate in Eclipse. One Ctrl+Z undoes the
change.
`sap_apply_to_editor` writes into the active tab of the editor. For a block of another tab of a class, select that tab
first.
The write tools refuse an object that is open in an editor with changes that are not saved. An editor holds the lock
of its object from the first change until the activation or the close, also after Ctrl+Z and after a save. When the
server refuses the lock and an editor of the object is open, the result names the editor before the message of the
server. The message of the server names the lock owner. If the editor is the lock owner, close the editor to release
the lock.
Codex: copy the text below into the file `AGENTS.md` of your work folder. Without this text, Codex reads "this
method" and "here" as a file of the work folder and calls no EPOD tool.
```text
## When the user works in an open editor
Eclipse mode only. The three editor tools read and write the ABAP editor of this Eclipse. They send no request to SAP. The standalone mode has no editor tool.
`sap_active_editor` gives the last active ABAP editor: the system (the Eclipse project of the editor), the object and its tab, the state `editor saved` or `editor not saved`, the selection, the cursor line and column, and the block at the cursor (a method, a FORM, a MODULE, a declaration, or a section) from the editor text, also when the text is not saved. `full=true` gives the whole text of the tab. A form editor (a message class, a DDIC object) has no text: the result names the object and the state, and says that it gives no cursor, no block, and no text, also with `full=true`. Use it for "this method", "here", or "the open class". A given `systemId` must be the system of the editor; else the tool refuses. An editor of a project without an EPOD connection gives a refusal that names the project.
`sap_editor_problems` gives the errors and warnings that the editor shows now: the check that Eclipse runs while the user types (500 ms after the last change), the activation errors, and the ATC findings. One line each: source, severity, line, column, block, message. A problem of another tab of the same class names its tab. `severity` sets the lowest severity (default `error`).
`sap_apply_to_editor` writes one block into the open editor of the object `objectName` (required) in the system of the call (`systemId`, or the single connected system), as the user types it: a method implementation or definition, a declaration, a section, a FORM, or a MODULE. The editor need not be the last active editor. When two editors hold the object (two workbench windows), the tool takes the last active of them. The tool writes into the active tab of that editor; a block of another tab gives a refusal, and a change of the tab is a user step in Eclipse. `element` names the block; without it the tool takes the block at the cursor of that editor. `part` is `implementation` or `definition`; the default is `implementation` for a method and `definition` for a declaration, and without `element` the block at the cursor decides. An object that is not open in an editor of the system gives a refusal that names `sap_push_element`; an editor of the same name in another project is not a match. A new class method needs `signature` (one `METHODS` or `CLASS-METHODS` statement, with an optional section statement before it; default `PRIVATE SECTION`). The tool writes the definition and the implementation in one undo step. The tool does not save and does not activate. Eclipse locks the object as for a key press. One Ctrl+Z removes the change. The tool refuses a member of a chained declaration or of a `BEGIN OF` structure, and a read-only system. When Eclipse does not answer within 10 seconds (a dialog or a long job), the tool writes nothing.
An open editor holds the lock of its object from the first change until the activation or the close, also after Ctrl+Z back to the saved text and after a save. The write tools of this server see the open editors of this Eclipse:
- An editor of the object with changes that are not saved: `sap_push_source`, `sap_push_source_from_file`, `sap_push_element`, `sap_push_message`, `sap_push_fields`, `sap_activate`, `sap_lock`, and `sap_quick_fix` with `fix` refuse before any write request. The text names the object. For a source write it names `sap_apply_to_editor`. For `sap_activate` it says that the save and the activation of the editor text are user steps in Eclipse. For `sap_lock` it says that the editor holds the lock. For a message class or a DDIC object (a form editor) it says that no tool of this server writes into this editor and that the save or the close of the editor is a user step in Eclipse.
- The server refuses the lock (HTTP 403) and an editor of the object is open: the result puts the editor state before the server message: "<object> is open in an Eclipse editor of this system, and the server refused the lock. This editor can be the lock owner: ... A close of the editor releases that lock. The lock answer names the lock owner. ... Lock answer: ...". The tool does not read the lock owner; the same status covers the lock of another user.
- A write to the backend while a clean editor without a lock is open succeeds. The editor shows the old text until the user clicks into it; then Eclipse loads the new text.
When the object is open in an editor, write with `sap_apply_to_editor` and let the user save and activate. When the object is not open, use `sap_push_element` or `sap_push_source`.
```
## 9. Security log
The server writes each server start, server stop, tool call, and refused request to the file `mcp-security.log`.

View File

@@ -113,7 +113,8 @@ The level `full` is the default. The level `reduced` removes the object and 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`.
refusal is a `tool_call` line with the result `refused`. In the Eclipse mode, the refusal of a write to an object
that is open in an editor with changes that are not saved is a `refused` line too.
Place of the file:
@@ -151,9 +152,10 @@ The server accepts a maximum of 8 sessions. It drops a session after 30 minutes
Every request to `/mcp` needs the header `Authorization: Bearer <token>`. A request with an `Origin` header gets HTTP
403.
The 12 write tools refuse a read-only system: `sap_push_source`, `sap_push_source_from_file`, `sap_push_element`,
The 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`, `sap_transport_release`, and `sap_quick_fix`. `sap_quick_fix` without `fix` only lists the
`sap_transport_create`, `sap_transport_release`, `sap_quick_fix`, and in the Eclipse mode `sap_apply_to_editor`
(13 tools in the Eclipse mode, 12 in the standalone mode). `sap_quick_fix` without `fix` only lists the
proposals and works on a read-only system.
Some calls stop before the write or before any ADT request. The result text names the reason.

View File

@@ -25,8 +25,8 @@ version and a SHA-256 file in the folder `standalone/`.
<!-- 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.13.0.zip
curl -L -O https://git.epod.dev/erhan/epod-adt-mcp-updatesite/raw/branch/main/standalone/epod-adt-standalone-2.13.0.zip.sha256
curl -L -O https://git.epod.dev/erhan/epod-adt-mcp-updatesite/raw/branch/main/standalone/epod-adt-standalone-2.14.0.zip
curl -L -O https://git.epod.dev/erhan/epod-adt-mcp-updatesite/raw/branch/main/standalone/epod-adt-standalone-2.14.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
@@ -34,9 +34,9 @@ version and a SHA-256 file in the folder `standalone/`.
3. Check the zip:
shasum -a 256 -c epod-adt-standalone-2.13.0.zip.sha256
shasum -a 256 -c epod-adt-standalone-2.14.0.zip.sha256
The command prints `epod-adt-standalone-2.13.0.zip: OK`.
The command prints `epod-adt-standalone-2.14.0.zip: OK`.
CAUTION: Do not install a zip when the check does not print `OK`.
@@ -48,11 +48,11 @@ You can also build the zip from the source repository with `./mvnw clean verify`
1. Open a terminal in the folder of the zip.
2. Unpack the zip:
unzip epod-adt-standalone-2.13.0.zip
unzip epod-adt-standalone-2.14.0.zip
3. Run the install:
sh epod-adt-standalone-2.13.0/epod-adt install
sh epod-adt-standalone-2.14.0/epod-adt install
The command prints `EPOD ADT MCP server installed in /Users/<user>/.epod-adt:` and the two jars.

View File

@@ -32,8 +32,8 @@ version and a SHA-256 file in the folder `standalone/`.
<!-- 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.13.0.zip -OutFile epod-adt-standalone-2.13.0.zip
Invoke-WebRequest -UseBasicParsing -Uri https://git.epod.dev/erhan/epod-adt-mcp-updatesite/raw/branch/main/standalone/epod-adt-standalone-2.13.0.zip.sha256 -OutFile epod-adt-standalone-2.13.0.zip.sha256
Invoke-WebRequest -UseBasicParsing -Uri https://git.epod.dev/erhan/epod-adt-mcp-updatesite/raw/branch/main/standalone/epod-adt-standalone-2.14.0.zip -OutFile epod-adt-standalone-2.14.0.zip
Invoke-WebRequest -UseBasicParsing -Uri https://git.epod.dev/erhan/epod-adt-mcp-updatesite/raw/branch/main/standalone/epod-adt-standalone-2.14.0.zip.sha256 -OutFile epod-adt-standalone-2.14.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
@@ -41,7 +41,7 @@ version and a SHA-256 file in the folder `standalone/`.
3. Check the zip:
(Get-FileHash -Algorithm SHA256 .\epod-adt-standalone-2.13.0.zip).Hash -eq (Get-Content .\epod-adt-standalone-2.13.0.zip.sha256).Split(' ')[0]
(Get-FileHash -Algorithm SHA256 .\epod-adt-standalone-2.14.0.zip).Hash -eq (Get-Content .\epod-adt-standalone-2.14.0.zip.sha256).Split(' ')[0]
The command prints `True`.
@@ -57,15 +57,15 @@ 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.13.0.zip
Unblock-File .\epod-adt-standalone-2.14.0.zip
3. Unpack the zip:
Expand-Archive epod-adt-standalone-2.13.0.zip -DestinationPath .
Expand-Archive epod-adt-standalone-2.14.0.zip -DestinationPath .
4. Run the install:
powershell -ExecutionPolicy Bypass -File .\epod-adt-standalone-2.13.0\epod-adt.ps1 install
powershell -ExecutionPolicy Bypass -File .\epod-adt-standalone-2.14.0\epod-adt.ps1 install
The command prints `EPOD ADT MCP server installed in C:\Users\<user>\.epod-adt:` and the two jars.