Files
epod-adt-mcp-updatesite/install/standalone-windows.md
2026-10-17 20:39:58 +02:00

15 KiB

Standalone mode on Windows

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.

All commands of this guide are for Windows PowerShell 5.1. A command for cmd.exe says so. In this guide, a terminal is a PowerShell window.

1. Prerequisites

  • Windows runs on x86_64. The ADT for VS Code extension has no Java runtime for Windows on ARM64.
  • VS Code with the extension ADT for VS Code (sapse.adt-vscode) is installed. VS Code does not need to run.
  • The file %USERPROFILE%\.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 Windows is necessary only for the tool sap_system_list_sapgui. The tool reads the landscape file of SAP Logon, by default %APPDATA%\SAP\Common\SAPUILandscape.xml.

Nobody tested Claude Code or Codex on Windows with the client entry. The tests on Windows 11 used a scripted MCP client with the same command.

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:

    Invoke-WebRequest -UseBasicParsing -Uri https://git.epod.dev/erhan/epod-adt-mcp-updatesite/raw/branch/main/standalone/epod-adt-standalone-2.9.0.zip -OutFile epod-adt-standalone-2.9.0.zip
    Invoke-WebRequest -UseBasicParsing -Uri https://git.epod.dev/erhan/epod-adt-mcp-updatesite/raw/branch/main/standalone/epod-adt-standalone-2.9.0.zip.sha256 -OutFile epod-adt-standalone-2.9.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:

    (Get-FileHash -Algorithm SHA256 .\epod-adt-standalone-2.9.0.zip).Hash -eq (Get-Content .\epod-adt-standalone-2.9.0.zip.sha256).Split(' ')[0]
    

    The command prints True.

CAUTION: Do not install a zip when the check does not print True.

You can also build the zip from the source repository on macOS with ./mvnw clean verify. The build writes the zip to com.epod.adt.mcp.standalone.dist/target/.

3. Install

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.9.0.zip
    
  3. Unpack the zip:

    Expand-Archive epod-adt-standalone-2.9.0.zip -DestinationPath .
    
  4. Run the install:

    powershell -ExecutionPolicy Bypass -File .\epod-adt-standalone-2.9.0\epod-adt.ps1 install
    

    The command prints EPOD ADT MCP server installed in C:\Users\<user>\.epod-adt: and the two jars.

The install copies the jars and the scripts into the home folder %USERPROFILE%\.epod-adt. The server gives the files token and mcp-client.json an access list with the owner only.

In this guide, epod-adt.ps1 <command> is short for this command line:

powershell -ExecutionPolicy Bypass -File $env:USERPROFILE\.epod-adt\epod-adt.ps1 <command>

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:

    $env:EPOD_ADT_HOME = "C:\Users\<user>\EPOD other"
    
  2. Run the install of step 4 in the same terminal.

  3. Set the same variable in each terminal before you run a launcher command.

  4. Use $env:EPOD_ADT_HOME in place of $env:USERPROFILE\.epod-adt in all commands and paths of this guide. An example is $env:EPOD_ADT_HOME\epod-adt.ps1.

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:

    powershell -ExecutionPolicy Bypass -File $env:USERPROFILE\.epod-adt\epod-adt.ps1 start
    

    The command prints EPOD ADT MCP server runs on http://127.0.0.1:3100/mcp (PID <pid>). Client configuration: C:\Users\<user>\.epod-adt\mcp-client.json.

  2. Show the state of the server with epod-adt.ps1 status.

    The command prints the same line and the line Client entry (stdio): cmd /c C:\Users\<user>\.epod-adt\epod-adt.cmd stdio.

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 %USERPROFILE%\.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 cmd /c "%USERPROFILE%\.epod-adt\epod-adt.cmd" stdio. The client configuration holds this command. It holds no URL and no token. One standalone server serves all MCP clients. The client entry uses cmd.exe, because the start of PowerShell takes about 1.5 seconds.

Claude Code

  1. Add the client entry with epod-adt.ps1 install-claude.

    The command prints Claude Code (claude) entry epod-adt added. and the command of the entry.

  2. Run claude mcp list. The list shows epod-adt.

Codex

  1. Add the client entry with epod-adt.ps1 install-codex.

    The command prints Codex (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 for PowerShell:

claude mcp add epod-adt --scope user -- cmd /c "$env:USERPROFILE\.epod-adt\epod-adt.cmd" stdio
codex mcp add epod-adt -- cmd /c "$env:USERPROFILE\.epod-adt\epod-adt.cmd" stdio

In cmd.exe, write %USERPROFILE% in place of $env:USERPROFILE.

Claude Code starts a .cmd file only through cmd /c. A home path with a space needs quotes around the path of epod-adt.cmd, and only there. This form works:

cmd /c "C:\Users\<user>\EPOD test\home dir\epod-adt.cmd" 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>" -- cmd /c "<home>\epod-adt.cmd" stdio
codex mcp add epod-adt --env "EPOD_ADT_HOME=<home>" -- cmd /c "<home>\epod-adt.cmd" stdio

When the MCP client ends the client entry, the entry closes its session on the server. A hard kill of the entry (TerminateProcess) gives the entry no chance to do this. The server then drops the session after 30 minutes without use, or when it reaches its limit of 8 sessions.

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. In the MCP client, ask for the tool sap_list_systems of the server epod-adt.

    The answer lists each destination with its state, for example connected, not connected, or refused, and its access mode.

  2. Ask for one read call on a destination, for example sap_search_object with systemId ABC_001 and the query CL_ABAP_TYPEDESCR. Replace ABC_001 with your destination ID.

    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 11 write tools and makes no request to SAP.

  • Show the destinations and their mode with epod-adt.ps1 mode.

  • Set a destination to read-only with epod-adt.ps1 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 with epod-adt.ps1 mode ABC_001 write. Run the command in a terminal, and answer y.

    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 %USERPROFILE%\.epod-adt\token. Only you can read this file.

  • To show the token, run epod-adt.ps1 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.ps1 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.ps1 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.
epod-adt.ps1 monitor --snapshot The command writes one screen with a masked token and ends.
epod-adt.ps1 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.ps1 activity The command shows the last tool calls as a table. It takes the same options as log.

monitor needs an interactive terminal. It works in the console of PowerShell (conhost) and in Windows 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.ps1 start.
  2. Give the file %USERPROFILE%\.epod-adt\mcp-client.json to the MCP client. The file holds the URL and the token.

The server writes mcp-client.json at each start and after token rotate.

12. Stop, update, and uninstall

Stop the server with epod-adt.ps1 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. Run Unblock-File on the new zip and unpack it.
  4. Run powershell -ExecutionPolicy Bypass -File .\epod-adt-standalone-<version>\epod-adt.ps1 install.

The update keeps the token, epod.properties, and the client entries.

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:

    Remove-Item -LiteralPath $env:USERPROFILE\.epod-adt -Recurse -Force
    

Do not delete %USERPROFILE%\.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 %USERPROFILE%\.vscode\extensions. Install the extension in VS Code. For another folder, set EPOD_VSCODE_EXTENSIONS.
No EPOD jars in <home>\plugins. The home folder has no installation. Run the install of section 3.
The server runs (PID <pid>). Run: epod-adt.ps1 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.ps1 mode <id> write in a terminal.
A tool returns Multiple systems available. Specify '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.ps1 stop and run the command again.