mcp-abap-adt-ro

v20.0.0
io.github.fr0ster/mcp-abap-adt-ro Checked 4 days ago Published 1 month ago

Read-only MCP server for SAP ABAP ADT over HTTP, RFC or SNC: the readonly, system and search tools

Values you need

VariableWhat it is
MCP_ENV_PATHoptional Path to the .env file that states the destination (the same as the --env-path argument). The file states SAP_URL and SAP_AUTH_TYPE (basic, snc or jwt); a jwt file also states SAP_GRANT_TYPE (authorization_code or none). Without this or --mcp, the server starts in tool-inspection-only mode: nothing i
AUTH_BROKER_PATHoptional Base directory of service-keys/ and sessions/ for a named destination chosen with the --mcp argument (one directory; a list is not split). Default: ~/.config/mcp-abap-adt (Documents\mcp-abap-adt on Windows).
MCP_BROWSERoptional Browser for a JWT login: chrome, edge, firefox, system, headless or none. Default: system
MCP_BROWSER_AUTH_PORToptional Callback port of the JWT browser login, 1-65535. Default: 61001
MCP_UNSAFEoptional Write a named destination's session to disk (sessions/<name>.env) instead of keeping it in memory. Default: false
SAP_CONNECTION_TYPEoptional Connection type: http or rfc. SNC needs rfc (and the SAP NW RFC SDK). Default: http
SAP_SYSTEM_TYPErequired System type, required (here or as --system-type; no default, never guessed): the tools offered (e.g. Programs are onprem-only), the connector, and how the system's answers are read. Without it a destination does not start.
SAP_LANGUAGEoptional Logon language (ISO code, e.g. 'en', 'de'). Default: en

npm (npx)

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-abap-adt-ro -e 'SAP_SYSTEM_TYPE=<SAP_SYSTEM_TYPE>' -- npx -y --package=@mcp-abap-adt/core-ro@20.0.0 mcp-abap-adt-ro
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-abap-adt-ro": {
      "args": [
        "-y",
        "--package=@mcp-abap-adt/core-ro@20.0.0",
        "mcp-abap-adt-ro"
      ],
      "command": "npx",
      "env": {
        "SAP_SYSTEM_TYPE": "<SAP_SYSTEM_TYPE>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-abap-adt-ro": {
      "args": [
        "-y",
        "--package=@mcp-abap-adt/core-ro@20.0.0",
        "mcp-abap-adt-ro"
      ],
      "command": "npx",
      "env": {
        "SAP_SYSTEM_TYPE": "<SAP_SYSTEM_TYPE>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "SAP_SYSTEM_TYPE",
      "id": "sap-system-type",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp-abap-adt-ro": {
      "args": [
        "-y",
        "--package=@mcp-abap-adt/core-ro@20.0.0",
        "mcp-abap-adt-ro"
      ],
      "command": "npx",
      "env": {
        "SAP_SYSTEM_TYPE": "${input:sap-system-type}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-abap-adt-ro]
command = "npx"
args = ["-y", "--package=@mcp-abap-adt/core-ro@20.0.0", "mcp-abap-adt-ro"]
env = { "SAP_SYSTEM_TYPE" = "<SAP_SYSTEM_TYPE>" }

For AI agents

  1. Ask the user for: SAP_SYSTEM_TYPE. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json