sap-adt
Eclipse plugin that runs MCP server for Claude Code integration with SAP ADT
claude mcp add --transport stdio yahornovik-sap-adt-mcp-server java -jar sap-adt-mcp-server.jar
How to use
The SAP ADT MCP Server for Claude Code exposes a set of MCP tools that Claude Code can invoke to interact with your SAP ABAP environment directly from your IDE. Once the plugin is installed in Eclipse and connected to your SAP system, start the MCP server and configure Claude Code to point to the local MCP endpoint. Claude Code will then be able to run commands such as reading ABAP source, searching for objects, and executing write or test operations via the SAP ADT integration. The server provides a catalog of tools (sap_search, sap_get_source, sap_object_structure, sap_usage_references, sap_inactive_objects, sap_abap_docu, sap_create_object, sap_lock, sap_set_source, sap_unlock, sap_activate, sap_syntax_check, sap_run_unit_tests, sap_atc_run, sap_sql_query) that map to common ABAP development tasks and quality checks, enabling end-to-end editing, testing, and activation from Claude Code.
To use the tools, ensure Claude Code is running and that the MCP server is active. In Claude Code, you can issue prompts like: search for ABAP objects by pattern, read the source of a class, create a new class, run unit tests, fix a syntax error, or run ATC checks. Claude Code will route these prompts through the MCP server to the SAP ADT backend, returning results and updates back into your editor. The included SAP documentation server (sap-docs) is also configured so Claude Code can surface SAP help topics and references during your session.
How to install
Prerequisites:
- Eclipse IDE (version compatible with SAP ADT) and Java 17+ installed on your system
- SAP system with ADT services enabled and reachable from Eclipse
- Claude Code CLI installed (npm install -g @anthropic-ai/claude-code)
- Access to the SAP ADT MCP server repository (this plugin)
Installation steps:
-
Install the SAP ADT MCP Server plugin in Eclipse:
- Open Eclipse and go to Help → Install New Software...
- Click Add... and enter the following:
- Name: SAP ADT MCP Server for Claude Code
- Location: https://yahornovik.github.io/sap-adt-mcp-server/
- Select SAP ADT MCP Server for Claude Code, then Next → Finish and restart Eclipse when prompted.
-
Connect to SAP from the plugin:
- Open the SAP ADT MCP Server view in Eclipse (Window → Show View → Other... → SAP ADT MCP Server for Claude Code).
- Click Connect SAP and fill in SAP URL, User, Password, Client, Language as prompted. The plugin will log in via ADT REST APIs and register all tools.
-
Start the MCP server and configure Claude Code:
- In the SAP ADT MCP Server view, click Start Server. This starts a local MCP HTTP server (default port 3000).
- The server writes its configuration to ~/.claude.json, registering both sap-adt and sap-docs endpoints.
- If you already have sap-docs configured, the plugin will preserve that setting.
-
Use Claude Code:
- In Claude Code, ensure it detects the MCP endpoint at http://localhost:3000/mcp (and the sap-docs URL as configured).
- You can either launch Claude Code from Eclipse or run claude from a terminal; Claude will automatically pick up the SAP MCP server configuration.
Optional: Build from source (advanced):
- Ensure you have Maven installed.
- Run: git clone https://github.com/YahorNovik/sap-adt-mcp-server.git cd sap-adt-mcp-server mvn clean verify
- The built P2 update site is generated under com.sap.adt.mcp.server.site/target/repository/; install into Eclipse via Help → Install New Software... → Add... → Local... and point to that directory.
Additional notes
Environment and configuration tips:
- The MCP server runs locally inside Eclipse and communicates with Claude Code via HTTP on port 3000 by default. If you change the port, update the Claude Code MCP URL accordingly.
- The plugin automatically registers sap-adt (live SAP system) and sap-docs (documentation) MCP endpoints in ~/.claude.json. Do not remove or manually modify these entries unless you understand the impact.
- Ensure your SAP ADT REST access is stable and that the ADT nodes used (e.g., /sap/bc/adt) are enabled in your SAP system.
- If Claude Code cannot reach http://localhost:3000/mcp, verify firewall rules, Eclipse networking, and that the MCP server is started without errors.
- The tools provide read/write capabilities; handle access control and locking (sap_lock, sap_unlock) carefully to avoid collaborative edit conflicts.
- Prerequisites include the Claude Code CLI; the MCP server exposes a set of tools that Claude Code invokes through prompts, so clear prompts and object names improve reliability.