Files
epod-adt-mcp-updatesite/install/standalone-macos.md
2026-11-08 16:32:49 +01:00

14 KiB

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.

    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
    

    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.13.0.zip.sha256
    

    The command prints epod-adt-standalone-2.13.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.13.0.zip
    
  3. Run the install:

    sh epod-adt-standalone-2.13.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. When a newer EPOD version exists, start and status also print the line of the update check (section 12).

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 12 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. The line of the update check shows under the first line when a newer version exists (section 12).
~/.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.

The update check

The server checks once a day for a new EPOD release. The first check runs 3 minutes after the start. The server reads one file, latest.json, from the external update site. The request holds no user data and no identifier. EPOD has no setting for the check. When a newer version exists, start, status, and monitor print one line, for example:

Update: EPOD 2.14.0 is available. Installed: 2.13.0. Download: <link of the new zip>

The link names the new zip on the update site that the installed zip came from. The file download.properties of the zip holds this site, and install copies it into the home folder. The line stays until the new version is installed. The file update.properties of the home folder holds the state of the check, and logs/server.log holds one line for each check. The install of a new zip deletes update.properties, so the server checks again 3 minutes after the next start.

The check uses no proxy. When the process that starts the server has the variable https_proxy (or HTTPS_PROXY), the check uses that proxy. The variable no_proxy lists the hosts without a proxy.

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. The call needs '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.
A server process runs (pid <pid>), but it does not answer on port <port>. The mode of <id> did not change. The server process runs, but it does not answer on the port of epod.properties. A start can still run. Wait until the start ends. Run the command again. If the message stays, run ~/.epod-adt/epod-adt stop and run the command again.