# EPOD ADT MCP Server An Eclipse ADT plugin that exposes your SAP ABAP systems to AI coding assistants via the [Model Context Protocol (MCP)](https://modelcontextprotocol.io). It runs an embedded HTTP server inside Eclipse, so any MCP-compatible client — Claude Code, Cursor, and others — can search, read, edit, test, and analyze ABAP code through your existing ADT SNC/SSO session. Connect multiple ABAP projects simultaneously and route each tool call to the right system via a `systemId` parameter. 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) ``` ## What's new in 2.14.0 - Eclipse mode: EPOD works with the ABAP editor that is open in Eclipse. The AI client changes the code in that editor, and the change shows on the screen at once. EPOD does not save the change and does not activate it. The user checks the change, undoes it with one Ctrl+Z, or saves and activates it. - The new tool `sap_active_editor` reads the last active ABAP editor: the system, the object, the tab, the saved state, the selection, the cursor, and the block at the cursor, also when the text is not saved. - The new tool `sap_editor_problems` reads the errors and warnings that the editor shows now. - The new tool `sap_apply_to_editor` writes one block into the open editor of the object that the call names: a method, a declaration, a section, a FORM, or a MODULE. With `signature`, the tool adds a new method in one undo step. - The write tools refuse an object that is open in an editor with changes that are not saved, and send no request. The result names the editor and `sap_apply_to_editor`. - When the server refuses the lock and an editor of the object is open, the result names the editor before the server message. - The read-only mode also covers `sap_apply_to_editor`. - Codex CLI: copy the text for `AGENTS.md` from the guide `install/eclipse.md`, part "The open editor". Without it, Codex does not use the editor tools for "this method" or "here". - EPOD builds against ADT 3.65. The plugin still runs on earlier ADT releases. ## What's new in 2.13.0 - The new tool `sap_transport_diff` shows what one transport request or task changed: one header line per object with the two versions, the unified diff, and one block per changed method or section. The object line counts each outcome. A released request compares the version of the request with the version before it. An open request compares the version with the version before it by date, as Eclipse does. - `sap_run_unit_test` with `uncoveredLines` takes the methods of local classes (`LCL=>METH`) and of interfaces (`INTF~METH`), names the include of a local block and the other owners of a shared plain name, and ends with one line that names the local class methods that the tests do not fully run. - EPOD checks once a day for a new release. Eclipse shows a popup once per version, and the standalone `status`, `start`, and `monitor` show one line. The check has no setting. - Result, error, and refusal texts state the state and name the tool or the parameter form. They give no instruction. - `sap_transport_list` lists the transport requests again. It sends the filters of the Eclipse Transport Organizer view, with the logon user and the requests released in the last 14 days as the default. `releasedFrom` and `releasedTo` set the window. The field `target` comes from the target node. - `sap_transport_release` reports a success only when the release ran. A refused release gives `success:false`, the release status, and the server messages. - Bug fixes. See [CHANGELOG.md](CHANGELOG.md) for earlier versions. ## Token-efficient by design AI assistants are billed by tokens, and most of the bill is not the prompt. Measured on a real ABAP task, 63% of the cost was cache write — everything a tool returns enters the model context — and 29% was cache read, the context re-read on every tool call. The prompt was 3%. The server therefore keeps tool responses small and call counts low: - **Member lists without source.** `sap_object_members` returns the members of a 2,000-line class in about 300 tokens. - **Element-level read and write.** Pull one `METHOD` block instead of the class. Push one method back — the server merges it into the full source and sends it to ADT. The model never holds the class. - **One-call edit.** `sap_push_source` runs the full lock → write → unlock → activate pipeline in a single call. - **Compact DDIC reads.** A data element, a domain, or a table type comes as `path = value` lines, not as ADT XML. The domain BUKRS takes 733 bytes instead of 2 377 bytes. Three messages of message class 00 take 212 bytes instead of the class body with 610 782 bytes. - **Compact checks.** `sap_check_object` runs syntax check, ATC, and ABAP Unit in one call and returns findings only — no long text. - **No silent fallbacks.** A tool never falls back to the full source in silence. It states the fallback in the response, or it returns an error. ## Installation ### Via Eclipse Update Site 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) Install straight from the update-site URL `https://git.epod.dev/erhan/epod-adt-mcp-updatesite/raw/branch/main/`. 1. In Eclipse ADT, go to **Help > Install New Software...** 2. Click **Add...** and enter: - Name: `EPOD ADT MCP Server` - Location: `https://git.epod.dev/erhan/epod-adt-mcp-updatesite/raw/branch/main/` 3. Select **EPOD ADT MCP Server** from the list. 4. Click **Next**, accept the license, and complete the wizard. 5. Restart Eclipse when prompted. #### SAP developers — internal site (git clone, then local install) The internal repo is `https://github.tools.sap/GLOFINDEFICA/epod-adt-mcp-updatesite`. The GitHub Enterprise host serves files only to a signed-in browser session. Eclipse cannot supply that session, so a direct update-site URL does not work. Install from a local clone instead. 1. Clone the update-site repo: ``` git clone https://github.tools.sap/GLOFINDEFICA/epod-adt-mcp-updatesite.git ``` 2. In Eclipse ADT, go to **Help > Install New Software...** 3. Click **Add... > Local...** and select the cloned folder. The folder holds `compositeContent.xml`. 4. Select **EPOD ADT MCP Server** from the list. 5. Click **Next**, accept the license, and complete the wizard. 6. Restart Eclipse when prompted. To get a later release, run `git pull` in the clone. Then restart Eclipse, or select **Help > Check for Updates**: ADT checks the known update sites at each start. The EPOD update check names a new release once a day in the console of the view and in a popup ([install/eclipse.md](install/eclipse.md), section 11). 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). ### Via dropins (not tested) The feature has two bundles. Copy both jars, `com.epod.adt.mcp.core_.jar` and `com.epod.adt.mcp.plugin_.jar`, from the folder `/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 - Eclipse 2024-03 or later with **SAP ADT** (ABAP Development Tools) installed - Java 21 or later to run the plugin in ADT 3.63.0. The ADT bundles `com.sap.adt.communication` and `com.sap.adt.tools.core` require JavaSE 21 (`Require-Capability: osgi.ee`, `version=21`), and the ADT launcher sets `-Dosgi.requiredJavaVersion=21` - One or more ABAP projects in your Eclipse workspace with active SNC/SSO connections to SAP ## Setup ### 1. Open the MCP Server view **Window > Show View > Other... > ABAP MCP Server** ### 2. Connect to your ABAP projects The view shows all ABAP projects in your workspace. Click **Connect All** to connect to every project at once, or select a project and click **Connect** to connect individually. The plugin reuses each project's existing ADT session — no password prompt. ### 3. Start the server Click **Start Server**. The embedded MCP server starts on `http://127.0.0.1:3000/mcp` (port is configurable). It binds to localhost only and is not accessible from the network. The server prints the client configuration block, with a bearer token, to the view console. The **Copy client config** button copies that block to the clipboard. ### 4. Configure your MCP client Add the following to your client's MCP configuration. Replace `` with the token from the view: ```json { "mcpServers": { "abap-adt": { "type": "streamable-http", "url": "http://127.0.0.1:3000/mcp", "headers": { "Authorization": "Bearer " } } } } ``` **Claude Code** — run this command (user scope), or put the block into the file `.mcp.json` of a project with `"type": "http"`: ``` claude mcp add --transport http --scope user epod-abap-mcp http://127.0.0.1:3000/mcp --header "Authorization: Bearer " ``` **Codex** — run this command, and set the variable `EPOD_ABAP_MCP_TOKEN` to the token in the terminal that starts Codex: ``` 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 The server binds to `127.0.0.1`, so the network cannot reach it. A local browser can still reach `127.0.0.1`. Any open web page can post JSON-RPC to the `/mcp` endpoint and drive the tools through your ADT session. The server rejects any request that carries an `Origin` header with HTTP 403, because a browser always sends one and an MCP client sends none. The server also requires the bearer token, which a web page cannot read. The server stores the token and reuses it on every later start. The token survives an Eclipse restart. The **Regenerate token** button creates a new token when the token leaks. The old token stops working at once. The token stays in the view and in the clipboard. The token never goes to a log or a tool response. ### 5. Verify Check the health endpoint in your browser or with curl: ``` GET http://127.0.0.1:3000/health ``` ### Preferences **Window > Preferences > ABAP MCP Server** — change the server port, enable auto-start when you connect to a project, 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. ## Multi-System Support When multiple ABAP projects are connected, pass `systemId` (the Eclipse project name) to route a tool call to the right system: ```json { "query": "ZCL*", "systemId": "DEV_001" } ``` - **Single system connected** — `systemId` is optional; the call is routed automatically. - **Multiple systems connected** — `systemId` is required. Omitting it returns an error listing the available systems. - **`sap_list_systems`** — call this tool at any time to see which systems are currently connected. The `systemId` description in every tool's schema is dynamically populated from the live registry, so the AI always knows which systems are available. ## Access Mode Each connected system has an access mode: write or read-only. A new connection starts in write. The mode lives in the third column of the **ABAP MCP Server** view table, next to Project and Status. The **Toggle Read-Only** button flips the mode of the selected system. A read-only system refuses the 13 write tools and sends no write request to SAP. The first call to a system reads the system documents before the refusal. Every other tool works on a read-only system. The 13 write tools are `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`, `sap_quick_fix`, and `sap_apply_to_editor`. `sap_quick_fix` without `fix` only lists the proposals and works on a read-only system. The mode survives an Eclipse restart and a reconnect. The plugin stores the mode per project name. `sap_list_systems` shows the mode of each connected system. ## MCP Tools The plugin exposes 39 tools covering the full ABAP development workflow: ### Search & Navigation | Tool | Description | |------|-------------| | `sap_search_object` | Search for ABAP objects by name pattern and/or type | | `sap_object_structure` | Get the structure and metadata of an object (includes, links, source URLs) | | `sap_object_members` | List the members of a class, interface, program, or function group — name, kind, visibility, include — without source. `includeLocal=true` also lists local and test classes | | `sap_usage_references` | Find all where-used references for an object (parsed JSON) | | `sap_element_info` | Resolve an element to its signature, type, and documentation | | `sap_go_to_definition` | Go to definition (F3) at a symbol of a class, an interface, or a program. The result is the target block: a method, a declaration, a FORM, the source of a function module, the fields of a DDIC type, or one message line. The first line names the usage line and the lines of the target. A call through an interface with more than one implementation gives the list of the implementing classes | | `sap_object_versions` | List the version history of an object (compact): number, date, author, transport, request text. A class splits the feed per include. Set `includeType`. Data elements, domains, and table types have a version feed too. A message class has no version history. `element` lists only the versions in which one member, FORM, or MODULE changed (`maxVersions` versions, default 10) | | `sap_object_diff` | Diff two versions of an object. The plugin computes a git-style unified diff and never returns two full sources. With no version numbers the tool compares the active version with the newest transported version. Set `element` to diff one member. The tool does not diff data elements, domains, and table types, because the server refuses their version content | | `sap_compare_systems` | Compare the same object in two connected systems, or one system with itself. Set `systemId` and `compareTo`. The tool compares the active versions. For a source the tool computes a git-style unified diff in the plugin. The tool never returns two full sources. A data element, a domain, or a table type gives one line per field that differs. A message class gives one line per message that differs. A table covers the source, the properties, and the technical settings. `include` compares one include of a function group. An object that does not exist in one system gives one line, not an error. Set `element` to compare one member. The compare ignores line ends, empty lines at the end, the case of the class name, and the order of the methods, and names each point that it ignored | | `sap_inactive_objects` | List objects that are currently inactive (not yet activated) | ### Read & Write Source | Tool | Description | |------|-------------| | `sap_pull_source` | Read source code of an ABAP object into the AI context. `element=` returns one `METHOD` block (`part=definition` for the declaration). `element` also takes a section of a class (`PRIVATE SECTION`) and a FORM or a MODULE of a program or a function group (`include`, `mainProgram`). `entries` reads up to 20 elements of several objects in one call. `includeType` selects a class include: `main` (Global Class, default), `definitions`, `implementations`, `macros`, `testclasses`, `all`. A data element, a domain, or a table type gives one `path = value` line per field. `ddicPart` reads the properties of a table, a structure, or a type group, or the technical settings of a table, in the same form. A message class gives one line per message. `messages` selects message numbers | | `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. For a DDIC object or a message class the file holds the lines of `sap_pull_source`. Without `messages` the file holds all messages | | `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. The tool also writes the source of a type group (`TYPE`). | | `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`. The tool also writes the source of a type group (`TYPE`). | | `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, also one section of a class, and one FORM or MODULE block of a program or a function group. A called method or an interface method that does not exist is created in the same call | | `sap_quick_fix` | The Eclipse quick fixes (Ctrl+1) at a symbol of a class or an interface. Without `fix` the tool lists the proposals. With `fix` it applies one proposal, writes and activates each changed object, and returns the new blocks | | `sap_push_fields` | Change fields of a data element, a domain, a table type, or a part of a table or a structure. `ddicPart` selects the properties or, for a table, the technical settings. The lines have the form of the `sap_pull_source` field list. The tool adds and removes domain fixed values, table type secondary keys, and key components. The tool writes the complete object and reads it again | | `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 | ### Lifecycle | Tool | Description | |------|-------------| | `sap_lock` | Lock an object for editing (returns a lock handle). The tool also locks a data element, a domain, a table type, a type group, and the technical settings of a table (`ddicPart`) | | `sap_unlock` | Release a previously acquired lock. For the technical settings of a table, give the same `ddicPart` as for `sap_lock`. | | `sap_activate` | Activate an ABAP object, or several objects in one call (`objects`) | | `sap_create_object` | Create a new ABAP object: class, interface, program, function group, function module (FUNC), data element, domain, table, structure, table type (TTYP), message class (MSAG), or CDS-family source (DDLS, DDLX, SRVD, DCLS, DDLA). The tool reads a new data element, domain, table type, message class, table, or structure after the create. The create is a success only when the read shows the given values. The tool sends the request of the Eclipse wizard, with the name check and the transport check before the create. `transport` takes a transport request or a task. A task gives its parent request | ### Transport Management | Tool | Description | |------|-------------| | `sap_transport_of_object` | Find which transport request an object is assigned to | | `sap_transport_list` | List the transport requests of one user (default: the logon user): the modifiable requests and the requests released in a date window (`releasedFrom`, `releasedTo`; default: the last 14 days). The field `target` comes from the target node of the Transport Organizer | | `sap_transport_diff` | What one transport request or task changed. One header line per object with the two versions, the unified diff in the form of `sap_object_diff`, and one block per changed method or section. A released request compares the version of the request with the version before it. An open request compares the active version with the version before it by date (the Eclipse rule). A created object gives its line count. `summary=true` gives the counts only | | `sap_transport_create` | Create a new transport request | | `sap_transport_release` | Release a transport request or a task. The result is a success only when a read after the release gives the status released. A refusal gives the release status and the server messages | ### Quality, Testing & Runtime | Tool | Description | |------|-------------| | `sap_syntax_check` | Run a syntax check and return errors and warnings with line numbers; `source` checks a text that is not saved, for each type that the reporters list of the system names (`include` for a function group include). `objectType` PROG with `include` checks a program include in the context of its main program. A finding with a position in the saved text names the member and the line in its block | | `sap_run_unit_test` | Execute ABAP Unit tests and return pass/fail results. `uncoveredLines` adds the lines and the branch paths of the named methods of the global class and of the local classes that no test runs, and names the other local class methods that the tests do not fully run | | `sap_atc_run` | Run ATC (ABAP Test Cockpit) checks and return quality findings. Without a variant the tool uses the default check variant of the system and names it. A finding with a position names the member and the line in its block | | `sap_check_object` | Syntax check, ATC, and ABAP Unit in one call. One line per step, findings only — severity, object, method, line, short message. A finding with a position names the member and the line in its block. Set `coverage=true` to add ABAP Unit statement coverage for the global class | | `sap_run_class` | Run a class implementing IF_OO_ADT_CLASSRUN (ABAP console / F9) | | `sap_short_dumps` | List the ABAP short dumps (ST22), newest first: time, user, runtime error, terminated program, top stack frame in the form of the source tools, and dump ID. Filters: `user`, `runtimeError`, `objectName`, `package`, `from`, `to`. `maxDumps` sets the number of dumps (default 100, maximum 500). With `group=true` the tool gives one line per runtime error and top frame, with the count | | `sap_analyze_short_dump` | Read one short dump by its dump ID and return a compact text: the header, the termination point, the source with the failing line marked, the call stack, and the variables of the termination frame. In the live tests the text had 480 to 4 298 chars. The full dump text has up to 165 000 chars | ### Systems | Tool | Description | |------|-------------| | `sap_list_systems` | List all SAP systems currently connected and available for tool calls, with the access mode of each system | ### Open Editor | Tool | Description | |------|-------------| | `sap_active_editor` | Read the last active ABAP editor of Eclipse: system, object, tab, saved state, selection, cursor, and the block at the cursor, from the editor text, also when it is not saved. `full=true` gives the whole text of the tab. No request to SAP | | `sap_editor_problems` | Read the errors and warnings that the last active ABAP editor shows now: the check while the user types, the activation errors, and the ATC findings. One line each. No request to SAP | | `sap_apply_to_editor` | Write one block into the open editor of the named object, as the user types it: a method, a declaration, a section, a FORM, or a MODULE; a new method with `signature`. No save, no activation, no write to SAP. One Ctrl+Z undoes the change | The write tools refuse an object that is open in an Eclipse editor with changes that are not saved, and send no request. When the server refuses the lock and an editor of the object is open, the result names the editor before the server message. ## 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 `CLAS` · `INTF` · `PROG` · `FUGR` · `FUNC` · `TABL` · `STRU` · `DDLS` · `DTEL` · `DOMA` · `SRVD` · `DDLX` · `DCLS` · `DDLA` · `SRVB` · `TTYP` · `ENQU` · `MSAG` · `BDEF` · `TYPE` ## Protocol - MCP protocol version: `2024-11-05` - Transport: Streamable HTTP - Messaging: JSON-RPC 2.0 - Session management: `Mcp-Session-Id` header | Endpoint | Method | Description | |----------|--------|-------------| | `/mcp` | POST | JSON-RPC (initialize, tools/list, tools/call) | | `/mcp` | GET | SSE stream for server-sent events | | `/mcp` | DELETE | Close an MCP session | | `/health` | GET | Server status | ## License Copyright 2025-2026 Erhan Keseli. Licensed under the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).