Skip to main content
Glama
WARNING

This MCP server is no longer actively maintained. SAP has released an official ABAP MCP server β€” please use that instead: SAP Official ABAP MCP

NOTE

πŸ§ͺ EVALUATION & LEARNING PROJECT - SAP INTERNAL

This project serves dual purposes at SAP:

  1. Evaluation Platform: Test how Model Context Protocol (MCP) can support AI-assisted ABAP development

  2. Practical Tool: Enable SAP colleagues to use standard AI coding assistants (Claude Code CLI, Cline, Cursor, etc.) for ABAP development tasks

Project Status:

  • βœ… Actively maintained and feature-complete for evaluation purposes

  • βœ… Open to contributions from SAP internal teams

  • βœ… Suitable for development and testing environments

  • ⚠️ Implementation is pragmatic and focused on capability exploration

  • ⚠️ Not intended for production business-critical operations

Origin: Originally forked from mario-andreschak/mcp-abap-adt, now evolved with additional capabilities for SAP internal development scenarios.

For AI Agents: See AGENTS.md for comprehensive guidance on using this MCP server with AI coding assistants. Agent-specific quick reference files in the agents/ folder:

Find an Example AGENTS.md file for ABAP projects. Place it as AGENTS.md in the root folder of an ABAP project. See agents.md for reference.

Enhancement proposals for the MCP server are collected here.

Found a bug or have a feature request? Please check our GitHub Issues page to report issues or request new features.


mcp-abap-adt: Your Gateway to ABAP Development Tools (ADT)

Version License MCP CI codecov

A Model Context Protocol (MCP) server that provides AI coding assistants with direct access to SAP ABAP systems through ABAP Development Tools (ADT). Think of it as a bridge that lets tools like Cline, Claude Code CLI, and other MCP clients interact with your ABAP system to retrieve source code, analyze structures, run tests, and more.

πŸ“‘ Table of Contents

  1. Key Features

  2. Quick Start

  3. Prerequisites

  4. Installation and Setup

  5. Authentication Guide

  6. Multi-System Configuration

  7. LLM Access Setup (SAP Internal)

  8. AI Agent Integration

  9. Available Tools & Resources

  10. Running the Server Manually

  11. Docker Deployment

  12. Troubleshooting

  13. Contributing & Support

Related MCP server: vibing-steampunk

Project Philosophy

This server balances three objectives:

  1. Exploration First: Test what's possible with MCP in ABAP development contexts

  2. Practical Value: Provide immediate utility for AI-assisted ABAP development

  3. Learning Platform: Serve as a reference for building domain-specific MCP servers

Implementation philosophy:

  • Pragmatic over perfect: Features may be straightforward rather than architected for scale

  • Capability focused: Prioritize exploring what AI assistants need over production hardening

  • Community driven: Feedback and contributions shape the server's evolution

This approach allows rapid iteration on MCP capabilities while delivering real value to developers.

Key Features

  • πŸ” Comprehensive ABAP Object Access: Retrieve programs, classes (including local includes: CCIMP, CCDEF, CCMAC, CCAU), interfaces, functions, tables, structures, and more

  • πŸš€ RAP Development Support: Full support for CDS views, behavior definitions, service bindings, metadata extensions, and access control

  • 🚚 Transport & Version Control: List transport requests, view version history, and compare object versions across transports

  • πŸ“¦ Batch Query Operations: Query multiple tables or CDS views in a single call with advanced filtering and pagination

  • πŸ§ͺ Testing & Quality Assurance: Execute unit tests, analyze coverage, validate syntax, and find object usages

  • πŸ—οΈ Class Management: Create, modify, activate, and delete ABAP classes with full include support (main, definitions, implementations, macros, test classes)

  • πŸ“Š RAP BO Analysis: Comprehensive analysis of RAP Business Objects via cacheable MCP resources

  • 🌐 Multi-System Support: Configure and work with multiple SAP systems (DEV, QAS, PRD) simultaneously with easy system switching

  • πŸ€– AI Agent Ready: Optimized for Cline, Claude Code CLI, Cursor, OpenCode, and other MCP-compatible clients

  • ☁️ ABAP Cloud Compliant: Built-in guidance for ABAP Cloud (Tier 1) development standards

IMPORTANT

ABAP Debugging Not Supported

This Node.js-based MCP server does not support ABAP debugging capabilities. ABAP debugging requires RFC (Remote Function Call) protocol, which is only available through SAP's native libraries (JCo for Java, NW RFC SDK for C/C++).

Need debugging? Use the Java-based MCP server ai-sap-abap-adt which includes SAP JCo and provides full debugging support including:

  • Setting/managing breakpoints

  • Step-by-step execution (step into, step over, step out)

  • Variable inspection and modification

  • Call stack analysis

Quick Start

For experienced developers - get up and running in 5 minutes:

# 1. Clone the repository
git clone https://github.tools.sap/D020426/mcp-abap-adt.git
# For external contributors: git clone https://github.com/mario-andreschak/mcp-abap-adt.git
cd mcp-abap-adt

# 2. Install dependencies and build
npm install && npm run build

# 3. Configure SAP connection
# Single system (simple):
cat > .env << EOF
SAP_URL=https://your-sap-system.com:8000
SAP_CLIENT=100
EOF

# Multiple systems (advanced):
# Copy .sap-systems.example.json to .sap-systems.json and configure
# See docs/multi-system-configuration.md for details

# 4. Authenticate with SAP
#    See docs/Authentication.md for detailed guide
#
# Quick options:
# - SSO (Recommended): Built-in browser SSO launches Chrome automatically
#   Or call SapBrowserLogin tool to proactively authenticate
# - Basic Auth: Add SAP_USERNAME/SAP_PASSWORD to .env

# 5. Add to your MCP client configuration (see AI Agent Integration section)

# 6. Start coding with AI assistance!

πŸ“š First time with MCP servers? Continue reading for detailed step-by-step instructions.

Prerequisites

Before you begin, ensure you have:

SAP ABAP System Access

  • System URL (e.g., https://my-sap-system.com:8000)

  • Valid username and password

  • SAP client number (e.g., 100)

  • ADT services activated in transaction SICF (specifically /sap/bc/adt)

  • For GetTableContents: Custom service /z_mcp_abap_adt/z_tablecontent (setup guide)

Development Tools

Verify installation:

node -v  # Should show version number
npm -v   # Should show version number

Installation and Setup

1. Clone the Repository

Using Git (command line):

cd Desktop  # Or your preferred directory
git clone https://github.tools.sap/D020426/mcp-abap-adt.git
cd mcp-abap-adt

Using GitHub Desktop:

  1. Open GitHub Desktop

  2. File β†’ Clone Repository

  3. URL tab β†’ Paste repository URL

  4. Choose local path β†’ Clone

2. Install Dependencies

npm install

This downloads all required libraries (may take a few minutes).

3. Build the Project

npm run build

This compiles TypeScript code into executable JavaScript.

4. Configure SAP Connection

Create a .env file in the root directory:

SAP_URL=https://your-sap-system.com:8000
SAP_CLIENT=100

⚠️ Important: Never commit .env to version control - keep this file secure!

5. Authenticate with SAP System

The server supports two authentication methods that are automatically selected based on your configuration.

πŸ“š Complete authentication guide: docs/Authentication.md

Quick Setup Options

Option 1 - SSO Authentication (Recommended for Production):

Best for corporate SAP systems with SSO. Built-in browser SSO requires no extra setup.

  1. Leave SAP_USERNAME and SAP_PASSWORD unset in .env

  2. On first request, Chrome launches automatically for SSO login

  3. Or call the SapBrowserLogin tool to proactively authenticate

  4. Cookies are cached to $TMPDIR/mcp-abap-adt/<domain>.json with 12h TTL

  5. 401/403 responses auto-retry with re-authentication

Legacy alternative: The external sap-auth-mcp-main MCP server still works as a fallback (see Authentication Guide)

Option 2 - Basic Authentication (Recommended for Dev/Test):

Simple setup using username and password. Add to your .env file:

SAP_URL=https://your-sap-system.com:8000
SAP_CLIENT=100
SAP_USERNAME=your_username
SAP_PASSWORD=your_password

How Authentication Works

The server automatically detects and uses the best authentication method:

  1. If credentials exist (SAP_USERNAME and SAP_PASSWORD in .env) β†’ Uses Basic Auth

  2. If SSO cookies exist (legacy cookie file or $TMPDIR/mcp-abap-adt/<domain>.json) β†’ Uses cached SSO cookies

  3. If neither exists β†’ Launches Chrome for built-in browser SSO on first request

You'll see which method is active in the console logs:

[Auth] Using SSO Authentication (cookies from tmp/sap_cookies.json)

or

[Auth] Using Basic Authentication (credentials)

Authentication Guide

For complete authentication setup, troubleshooting, and best practices, see the comprehensive guide:

πŸ“š Authentication Guide

The guide covers:

  • Built-in browser SSO (primary) and legacy sap-auth-mcp setup

  • Basic authentication configuration

  • Cookie file locations and formats

  • Re-authentication procedures

  • Security best practices

  • Troubleshooting authentication issues

  • CSRF token handling

Multi-System Configuration

Want to work with multiple SAP systems (DEV, QAS, PRD) simultaneously? The server supports configuring multiple systems in a single configuration file with easy system switching.

πŸ“š Multi-System Configuration Guide

Quick example:

Create .sap-systems.json in the project root:

{
  "version": "1.0",
  "default": "DEV",
  "systems": {
    "DEV": {
      "name": "Development",
      "url": "https://dev-sap.example.com:443",
      "client": "100",
      "auth": { "type": "basic", "username": "${SAP_DEV_USER}", "password": "${SAP_DEV_PASS}" }
    },
    "QAS": {
      "name": "Quality",
      "url": "https://qas-sap.example.com:443",
      "client": "200",
      "auth": { "type": "sso", "cookiePath": "./tmp/qas_cookies.json" }
    }
  }
}

Key features:

  • Configure multiple systems with different authentication methods

  • Set a default system and switch between them at runtime

  • Use system parameter on any tool to target a specific system

  • Supports both Basic Auth and SSO per system

  • Environment variable interpolation with ${ENV_VAR} syntax

New tools:

  • ListSystems - View all configured systems

  • SetDefaultSystem - Change the active system

  • GetSystemInfo - Shows multi-system configuration and status

See the complete guide for configuration details, examples, and troubleshooting.

LLM Access Setup (SAP Internal)

SAP Employees: Before configuring MCP tools in your development environment, you must set up the Hyperspace AI Proxy to access LLM capabilities.

Most AI coding assistants (Cline, Claude Code CLI, Cursor, etc.) require LLM access to function. At SAP, this is provided through the Hyperspace AI Proxy.

Setting Up Hyperspace AI Proxy

Complete setup guide: Hyperspace AI Proxy Documentation

Quick Overview:

  1. Install the hai CLI - Command-line tool for managing LLM proxy

  2. Configure your AI coding assistant - Connect your tool (Cline, Claude Code, Cursor, etc.) to the proxy

  3. Start the proxy - Run the proxy service before using AI tools

Tool-Specific Guides:

⚠️ Complete this setup first before proceeding to configure the MCP server in your AI tool. Without LLM access, your AI coding assistant won't function.

AI Agent Integration

This MCP server integrates with various AI coding assistants. Choose your preferred tool:

Cline (VS Code Extension)

Cline is a VS Code extension that uses MCP servers for AI-assisted development.

Setup:

  1. Install Cline extension in VS Code

  2. Open Cline Settings:

    • VS Code Settings (Ctrl+,)

    • Search "Cline MCP Settings"

    • Click "Edit in settings.json"

  3. Add Server Configuration:

    {
      "mcpServers": {
        "mcp-abap-adt": {
          "command": "node",
          "args": ["C:/PATH_TO/mcp-abap-adt/dist/index.js"],
          "disabled": false,
          "autoApprove": []
        }
      }
    }
  4. Test Connection:

    • Server appears in "MCP Servers" panel

    • Ask Cline to retrieve ABAP source code

    • Verify it uses the MCP server tools

πŸ“š For detailed Cline integration, see docs/Cline_Integration_Guide.md

Claude Code CLI (SAP Internal)

SAP Employees Only: Claude Code CLI is officially approved for productive code development at SAP when used with the Hyperspace LLM Proxy.

Claude Code CLI provides a command-line interface for AI-assisted coding.

Prerequisites:

Setup:

  1. Open Claude Code Settings: Open file .claude.json in your user home folder in your default editor (note: it might be hidden, make sure to view hidden files)

  2. Add MCP Server Configuration: Add to the mcpServers section (or add the whole section to the root of the json):

    {
      "mcpServers": {
        "mcp-abap-adt": {
          "command": "node",
          "args": ["C:/PATH_TO/mcp-abap-adt/dist/index.js"],
          "disabled": false
        }
      }
    }

    Replace C:/PATH_TO/ with the actual path to your cloned repository.

  3. Start Coding:

    # Terminal 1: Start the proxy (if not already running)
    hai proxy start
    
    # Terminal 2: Launch Claude Code
    claude
  4. Test Connection:

    • Server loads automatically when Claude Code starts

    • Ask Claude to retrieve ABAP source code

    • Verify it uses the MCP server tools

Important Notes:

  • βœ… Production ready when used with Hyperspace LLM Proxy

  • βœ… Only use Anthropic models (Haiku, Sonnet, Opus)

  • ⚠️ Keep hai proxy running while using Claude Code CLI

  • ⚠️ Use absolute paths in MCP configuration

  • ⚠️ Do not login - use proxy authentication configured in settings.json

Troubleshooting:

  • MCP server not loading: Check path in settings.json, ensure npm run build was executed

  • hai proxy issues: Run hai proxy status, restart with hai proxy start

  • Configuration issues: See manual configuration guide

πŸ“š Complete documentation: Hyperspace LLM Proxy Claude Code CLI Guide

Other AI Agents

This server works with any MCP-compatible client:

Available Tools & Resources

MCP Resources

Resources provide cacheable, token-efficient access to ABAP objects. Always prefer resources over tools when available.

Resource URI

Description

Token Usage

Documentation

abap://packages/top-level/names

Lightweight package names list

~5K

TopLevelPackagesResource.md

abap://packages/top-level

Complete top-level packages

~35K

TopLevelPackagesResource.md

abap://package/{name}

Detailed package information

~2-5K

PackageResource.md

rap-bo-analysis:///{bo_name}

Complete RAP BO analysis

~20-50K

RAP_Analysis_Resource.md

abap://class/{name}

ABAP class source code

Varies

Resources.md

abap://cds/{name}

CDS view source and metadata

Varies

Resources.md

abap://table/{name}

Database table structure

Varies

Resources.md

cds-view-data:///{name}?params

CDS view data with filtering

Varies

Resources.md

agent-guide://auto

Auto-detect agent-specific guide

~15K

AGENTS.md

πŸ“š Complete resource documentation: docs/Resources.md

Core ABAP Object Retrieval

Retrieve source code and definitions from your ABAP system.

Tool

Description

Documentation

GetProgram

Retrieve ABAP program source code

GetProgram.md

GetClass

Retrieve ABAP class source (supports local includes)

GetClass.md

GetClassInclude

Retrieve specific class include (CCIMP, CCDEF, etc.)

GetClassInclude.md

GetInterface

Retrieve ABAP interface source code

GetInterface.md

GetInclude

Retrieve ABAP include program source

GetInclude.md

GetFunction

Retrieve function module source code

GetFunction.md

GetFunctionGroup

Retrieve entire function group source

GetFunctionGroup.md

GetTable

Retrieve database table structure and metadata

GetTable.md

GetStructure

Retrieve DDIC structure definitions

GetStructure.md

GetDomain

Retrieve domain definitions with data types and values

GetDomain.md

GetDataElement

Retrieve data element definitions with labels

GetDataElement.md

GetTypeInfo

Retrieve ABAP type information

-

GetPackage

Retrieve package details and contained objects

GetPackage.md

GetPackageContents

List objects within a package

GetPackageContents.md

GetTransaction

Retrieve transaction code details

GetTransaction.md

SearchObject

Search for ABAP objects using wildcards (e.g., Z*)

SearchObject.md

Data Query & Analysis

Query table and CDS view data with advanced filtering and batch operations.

Tool

Description

Documentation

GetTableContents

Query table data with filtering, pagination, and batch support

GetTableContents.md

GetCDSViewContents

Query CDS view data with parameters and filtering

GetCDSViewContents.md

Key Features:

  • Advanced WHERE conditions (equality operator)

  • Column selection and ordering

  • Pagination with offset

  • Batch queries (multiple tables/views in one call)

  • Column metadata inclusion

Transport & Version Control

Manage transport requests and track version history across your ABAP landscape. NEW: Improved tools with automatic task/request hierarchy handling, formatted output, and direct version comparison.

Tool

Description

Documentation

GetTransportVersions ⭐

Quick analysis: Combines transport + version analysis in one command

GetTransportVersions.md

CompareObjectVersions ⭐

Compare versions: Shows exactly what changed between two versions (unified diff, side-by-side, or summary)

CompareObjectVersions.md

ListUserTransports

List ALL transport requests for a user (modifiable + released) with optional date filtering

ListUserTransports.md

GetTransportRequest

Show transport hierarchy, objects, and next steps (formatted output)

GetTransportRequest.md

GetVersionHistory

View version history with transport hierarchy guidance

GetVersionHistory.md

Key Capabilities:

  • Direct version comparison - see exact changes with unified diff, side-by-side, or summary formats

  • Automatic task/parent request hierarchy detection - no manual investigation needed

  • Intelligent version filtering - automatically skips test transports and untransported versions

  • Formatted, human-readable output - clear hierarchy visualization with guided next steps

  • Complete workflow documentation - see TRANSPORT_WORKFLOWS.md

  • Date-filtered transport listing - efficiently find recent transports with from_date parameter (avoids token waste)

  • Filter transport requests by user, status, and target system

  • View detailed transport contents including all objects, tasks, and locks

  • View complete version history including dates, authors, and transport numbers

  • Support for classes, programs, function groups, interfaces, CDS views, and more

Typical Workflows:

Quick Analysis (Recommended):

  1. GetTransportVersions - One command to analyze what changed in a transport

    • Automatically handles task β†’ parent request hierarchy

    • Finds the relevant version and suggests comparison

  2. CompareObjectVersions - See exactly what changed (one command instead of manual diff)

    • Choose format: unified (git diff), side-by-side, or summary

Step-by-Step Analysis:

  1. GetTransportRequest - Understand transport hierarchy and see all objects

  2. GetVersionHistory - View version history (look for parent request if analyzing a task)

  3. CompareObjectVersions - Compare versions directly to see exact changes

Finding Changes by User:

  1. ListUserTransports - Find ALL transports for a specific user (add from_date parameter for recent transports)

  2. GetTransportVersions - Analyze each transport quickly

  3. CompareObjectVersions - Review changes in detail

πŸ“š Complete Workflow Guide: See docs/TRANSPORT_WORKFLOWS.md for:

  • SAP transport hierarchy explanation (Request β†’ Task β†’ Objects)

  • 4 step-by-step workflows with examples

  • Common pitfalls and how to avoid them

  • Version numbering patterns for different object types

RAP Development Tools

Full support for RESTful ABAP Programming (RAP) development.

Tool

Description

Documentation

GetCDSView

Retrieve CDS view source code and annotations

RAP_Tools.md

GetBehaviorDefinition

Retrieve RAP behavior definition source

RAP_Tools.md

GetServiceDefinition

Retrieve RAP service definition source

RAP_Tools.md

GetServiceBinding

Retrieve RAP service binding details

RAP_Tools.md

GetMetadataExtension

Retrieve metadata extension (UI annotations)

RAP_Tools.md

GetAccessControl

Retrieve access control (DCL) definition

RAP_Tools.md

GetBehaviorForRapBo

Retrieve interface behavior for RAP Business Objects

RAP_Tools.md

SearchRapBo

Search RAP Business Objects by description

RAP_Tools.md

πŸ“š Complete RAP tools documentation: docs/RAP_Tools.md

Class Management Tools

Create, modify, and manage ABAP classes directly.

Tool

Description

Documentation

CreateClass

Create new ABAP class in local package ($TMP)

CreateClass.md

CreateClassTests

Create or replace test classes within existing class

CreateClassTests.md

ActivateClasses

Activate one or multiple ABAP classes

ActivateClasses.md

CheckSyntax

Validate ABAP source code syntax

CheckSyntax.md

DeleteLocalClass

Delete local ABAP class (Z/Y classes only)

DeleteLocalClass.md

Typical Workflow:

  1. CheckSyntax - Validate class source code

  2. CreateClass - Create the class (auto_activate: false)

  3. CheckSyntax - Validate test source code

  4. CreateClassTests - Add unit tests

  5. RunClassTests - Execute tests

  6. ActivateClasses - Activate after tests pass

πŸ“š Auto-activation guide: docs/AutoActivation.md

Testing & Quality Assurance

Execute tests, analyze coverage, validate quality, and ensure ABAP Cloud compliance.

Tool

Description

Documentation

GetClassTests

Retrieve local test classes from a class

GetClassTests.md

RunClassTests

Execute unit tests and retrieve results

RunClassTests.md

RunPackageTests

Execute tests for all objects in a package

RunPackageTests.md

GetClassCoverage

Run tests and retrieve code coverage metrics

GetClassCoverage.md

GetObjectUsages

Find where-used list for ABAP objects (classes, interfaces, etc.)

GetObjectUsages.md

GetClassUsages

Find where ABAP classes are used (convenience wrapper)

GetClassUsages.md

Coverage Targets:

  • RAP Behavior Implementation: 80% minimum, 90% target

  • Business Logic Classes: 70% minimum, 85% target

  • Utility/Helper Classes: 60% minimum, 75% target

Running the Server Manually

Typically, you don't run this server standalone - it's integrated into MCP clients. However, you can run it manually for testing:

Standalone Mode

npm run start

Server starts and waits for MCP client connections.

Development/Debug Mode (with Inspector)

npm run dev

Opens MCP Inspector at http://localhost:5173 for interactive testing.

Using the Inspector:

  1. Open the URL in your browser

  2. Click "Connect" on the left

  3. Click "Tools" β†’ "List Tools"

  4. Select a tool (e.g., GetProgram)

  5. Enter parameters and test

Docker Deployment

Deploy the MCP server using Docker for containerized environments.

Build and Run

# Build the image
docker build -t mcp-abap-adt .

# Run with environment variables
docker run -d \
  -e SAP_URL=https://your-sap-system.com:8000 \
  -e SAP_USERNAME=your_username \
  -e SAP_PASSWORD=your_password \
  -e SAP_CLIENT=100 \
  -p 5173:5173 \
  mcp-abap-adt

Using Docker Compose

Create docker-compose.yml:

version: "3.8"
services:
  mcp-abap-adt:
    build: .
    environment:
      - SAP_URL=https://your-sap-system.com:8000
      - SAP_USERNAME=your_username
      - SAP_PASSWORD=your_password
      - SAP_CLIENT=100
    ports:
      - "5173:5173"

Run with:

docker-compose up -d

πŸ“š Advanced configuration: See Dockerfile

Troubleshooting

Common Issues

Node.js/npm not found:

  • Verify installation: node -v and npm -v

  • Ensure Node.js is in your system PATH

  • Reinstall Node.js if needed

npm install fails:

  • Check internet connection

  • Delete node_modules folder and retry

  • Configure proxy if behind corporate firewall: npm proxy settings

MCP client doesn't connect:

  • Verify correct absolute path in client configuration

  • Ensure server is built: npm run build

  • Restart your MCP client (VS Code, etc.)

  • Check server logs for errors

SAP connection errors:

  • Verify credentials in .env file

  • Ensure SAP system is accessible from your network

  • Check user authorizations for ADT services

  • Verify ADT services are active in transaction SICF

  • For self-signed certificates, set NODE_TLS_REJECT_UNAUTHORIZED=0 (development only!)

Tool-specific issues:

  • Check tool documentation in docs/ folder

  • Verify object names and parameters

  • Review error messages for specific guidance

Getting Help

Contributing & Support

Contributing

We welcome contributions from SAP internal teams and external developers:

For SAP Internal Contributors:

  1. Report Issues: Use GitHub Issues

  2. Suggest Features: Add to Enhancement Proposals

  3. Submit Code: See CONTRIBUTING.md for guidelines (coming soon)

  4. Share Feedback: Help us improve MCP capabilities for ABAP development

Development Setup:

# Install dependencies and setup hooks
npm install

# Run tests
npm test

# Run all checks (format, lint, typecheck, tests)
npm run validate

CI/CD Configuration:

The project uses GitHub Actions for continuous integration. Required GitHub secrets:

  • CODECOV_TOKEN (optional): Token for uploading test coverage to Codecov

    • Get from: https://codecov.io/

    • If not configured, coverage upload will be skipped but builds will still succeed

    • Set in repository Settings β†’ Secrets and variables β†’ Actions

For External Contributors:

  • This fork focuses on SAP-internal evaluation scenarios

  • For the upstream project, see mario-andreschak/mcp-abap-adt

  • Feature contributions welcome that enhance MCP evaluation capabilities

Project Goals:

  • Explore how MCP can improve AI-assisted ABAP development

  • Serve as a reference implementation for MCP server development

  • Enable practical use of AI coding assistants for ABAP tasks

Documentation

  • AI Agent Guide: AGENTS.md - Comprehensive guide for AI coding assistants

  • Agent-Specific Guides: agents/ folder - Optimized guides for specific AI agents

  • Tool Documentation: docs/ folder - Detailed documentation for each tool

  • Example Project: Example_AGENTS.md - Sample AGENTS.md for ABAP projects

Standards & Best Practices

Version Information


This MCP server bridges the gap between AI coding assistants and SAP ABAP systems, enabling intelligent, context-aware development workflows.

Available Tools

65 tools
ActivateClassesA

Activate ABAP classes after creation or modification. Provide either class_name for a single class or class_names array for multiple classes.

Inputs: class_name, class_names, preaudit_requested.

CheckSyntaxA

Check ABAP source code syntax and return detailed error information. Supports three input modes: file_path (from tmp folder), source_code (direct code), or object_name (existing object). Priority: file_path > source_code > object_name.

Inputs: file_path, object_name, object_type, source_code.

CompareObjectVersionsA

Compare two versions of an ABAP object and return a formatted diff. Supports multiple output formats: unified (like git diff), side-by-side, or summary. Use with GetVersionHistory or GetTransportVersions to identify version IDs, then compare them to see exactly what changed.

Inputs: object_name (required), object_type (required), version_new (required), version_old (required), +2 more.

CreateBehaviorDefinitionA

Create or replace a RAP Behavior Definition (BDEF) in the SAP system. Only supports local packages ($TMP, $LOCAL, $-prefixed). Supports managed, unmanaged, projection, and abstract types. Auto-activates by default.

Inputs: bdef_type (required), source_code (required), behavior_name (required), package, +3 more.

CreateCDSViewA

Create or replace a local CDS DDL view in the SAP system. Only supports local packages ($TMP, $LOCAL, $-prefixed). Auto-activates by default.

Inputs: view_name (required), source_code (required), package, description, +2 more.

CreateClassB

Create a new ABAP class in local package ($TMP) without transport assignment

Inputs: class_name (required), source_code (required), package, description, +2 more.

CreateClassImplementationB

Write or replace the local class implementations include (CCIMP) of an existing global ABAP class. Use this to update method implementations for local classes defined in the class.

Inputs: class_name (required), source_code (required), auto_activate, preaudit_requested.

CreateClassTestsB

Create or replace test classes within an existing global ABAP class

Inputs: test_source_code (required), parent_class_name (required), auto_activate, backup_existing, +1 more.

CreateServiceDefinitionA

Create or replace a Service Definition (SRVD) in the SAP system. Only supports local packages ($TMP, $LOCAL, $-prefixed). Auto-activates by default.

Inputs: source_code (required), service_name (required), package, description, +2 more.

DeleteLocalClassA

Delete a local ABAP class (only Z/Y classes in local packages)

Inputs: class_name (required).

ExportAccessControlToFileA

Export a CDS access control (DCL) from the system directly to a file in the tmp folder with .dcls.asdcls extension. Automatically converts DCL name to Z-namespace.

Inputs: dcl_name (required).

ExportBehaviorDefinitionToFileA

Export a RAP behavior definition from the system directly to a file in the tmp folder with .bdef.asbdef extension. Automatically converts behavior name to Z-namespace.

Inputs: behavior_name (required).

ExportCDSViewToFileA

Export a CDS DDL view from the system directly to a file in the tmp folder with .ddls.asddls extension. Automatically converts view name and SQL view name to Z-namespace.

Inputs: view_name (required).

ExportClassToFileA

Export an ABAP class from the system directly to file(s) in the tmp folder. Optionally export all includes (definitions, implementations, macros, testclasses). Automatically creates the tmp folder if it does not exist.

Inputs: class_name (required), single_file, include_types.

ExportFunctionGroupToFileA

Export an ABAP function group from the system directly to a file in the tmp folder with .fugr.abap extension. Automatically converts function group name to Z-namespace.

Inputs: function_group (required).

ExportInterfaceToFileA

Export an ABAP interface from the system directly to a file in the tmp folder with .intf.abap extension. Automatically converts interface name to Z-namespace.

Inputs: interface_name (required).

ExportMetadataExtensionToFileA

Export a CDS metadata extension from the system directly to a file in the tmp folder with .ddlx.asddlxs extension. Automatically converts extension name to Z-namespace.

Inputs: extension_name (required).

ExportProgramToFileB

Export an ABAP program from the system directly to a file in the tmp folder with .prog.abap extension. Automatically converts program name to Z-namespace.

Inputs: program_name (required).

GetAccessControlC

Retrieve access control (DCL) definition source code

Inputs: dcl_name (required).

GetBehaviorDefinitionC

Retrieve RAP behavior definition source code and metadata

Inputs: cds_view_name (required).

GetBehaviorForRapBoC

Retrieve interface behavior definition for RAP Business Object from RONT_NODE table

Inputs: rap_bo_name (required).

GetBopfBusinessObjectB

Retrieve BOPF/BOPF Business Object definition including nodes, properties, associations, actions, determinations, and validations

Inputs: bo_name (required), analyze.

GetCDSViewC

Retrieve CDS view source code and metadata

Inputs: view_name (required), include_annotations.

GetCDSViewContentsA

Query CDS view data with filtering, pagination, parameter support, and batch queries. Either provide view_name for a single query, or provide queries array for batch mode.

Inputs: offset, columns, queries, max_rows, +5 more.

GetClassA

Retrieve ABAP class source code. Optionally fetch local includes (definitions, implementations, macros, testclasses). Use output_format=structured for JSON output suitable for downstream compression.

Inputs: class_name (required), include_types, output_format.

GetClassCoverageC

Run unit tests for a class and retrieve test coverage results

Inputs: class_name (required), auto_activate, preaudit_requested.

GetClassIncludeC

Retrieve a specific include from an ABAP class (definitions, implementations, macros, testclasses, or main)

Inputs: class_name (required), include_type (required).

GetClassTestsC

Retrieve local test classes from a class

Inputs: class_name (required).

GetClassUsagesA

[DEPRECATED - Use GetObjectUsages instead] Retrieve usages for an ABAP class. This tool is deprecated and will be removed in a future version.

Inputs: class_name (required).

GetDataElementB

Retrieve ABAP data element definition including domain reference, field labels, and documentation

Inputs: dataelement_name (required).

GetDomainB

Retrieve ABAP domain definition including data type, length, fixed values, and conversion exit

Inputs: domain_name (required).

GetFunctionB

Retrieve ABAP Function Module source code

Inputs: function_name (required), function_group (required).

GetFunctionGroupC

Retrieve ABAP Function Group source code

Inputs: function_group (required).

GetIncludeB

Retrieve ABAP Include Source Code

Inputs: include_name (required).

GetInterfaceC

Retrieve ABAP interface source code

Inputs: interface_name (required).

GetMetadataExtensionB

Retrieve metadata extension (UI annotations) source code

Inputs: extension_name (required).

GetObjectUsagesC

Retrieve comprehensive where-used list for ABAP objects (classes, interfaces, programs, function groups, type groups). Supports filtering by object types and usage grades.

Inputs: object_name (required), group_by, max_results, object_type, +7 more.

GetPackageB

Retrieve comprehensive ABAP package information including metadata, attributes, hierarchy (super/sub-packages), transport details, application component, and package interfaces

Inputs: package_name (required).

GetPackageContentsC

Retrieve objects and contents within an ABAP package, with optional recursive sub-package exploration

Inputs: package_name (required), recursive, include_subpackages.

GetProgramB

Retrieve ABAP program source code

Inputs: program_name (required).

GetRuntimeErrorB

Retrieve detailed information about a specific runtime error dump (ST22). Returns formatted text with error analysis, call stack, variables, and source code extract.

Inputs: dump_id (required), content.

GetServiceBindingB

Retrieve RAP service binding details and configuration

Inputs: binding_name (required).

GetServiceDefinitionB

Retrieve RAP service definition source code and metadata

Inputs: service_name (required).

GetStructureC

Retrieve ABAP Structure

Inputs: structure_name (required).

GetSystemInfoA

Returns the active SAP ABAP backend connection details: system URL, SAP client number, authentication method (basic/SSO), and whether the ADT connection is reachable. Use ONLY to troubleshoot ADT connectivity or confirm which SAP backend is currently targeted. Do NOT call this as a prerequisite for reading ABAP objects, running searches, or any other ABAP operation β€” all other tools establish the ADT connection automatically.

Inputs: no named parameters.

GetTableB

Retrieve ABAP table structure

Inputs: table_name (required).

GetTableContentsA

Retrieve contents of an ABAP table with advanced filtering, pagination, and batch query support. Either provide table_name for a single query, or provide queries array for batch mode.

Inputs: offset, columns, queries, max_rows, +4 more.

GetTransactionC

Retrieve ABAP transaction details

Inputs: transaction_name (required).

GetTransportRequestA

Retrieve detailed transport information showing task/request hierarchy and object list. IMPORTANT: Use this FIRST when analyzing a specific transport to understand if it is a task (child) or request (parent), as version history may record changes under the parent request. Returns formatted output with hierarchy, objects, and guidance for next steps.

Inputs: transport_number (required).

GetTransportVersionsA

Helper tool that combines transport analysis and version history in one command. Given a transport number and object, automatically handles task/parent request hierarchy, finds the relevant version(s), and suggests comparison steps. This is the recommended starting point for analyzing what changed in a specific transport.

Inputs: object_name (required), object_type (required), transport_number (required).

GetTypeInfoC

Retrieve ABAP type information

Inputs: type_name (required).

GetVersionHistoryA

Retrieve version history for an ABAP object across transports. Returns formatted table with version IDs, dates, authors, and transport numbers. IMPORTANT: Transport numbers shown may be either tasks or parent requests - use GetTransportRequest to understand the hierarchy. Version "00000" = CURRENT/ACTIVE for all object types (may have earlier timestamp than transported versions but contains current code). See footer notes for complete guidance on transport hierarchy and version numbering.

Inputs: object_name (required), object_type (required).

ImportClassFromFileA

Import an ABAP class from a file in the tmp folder and create it in the SAP system. Only supports local classes (Z/Y prefix) in local packages.

Inputs: class_name (required), package, description, auto_activate, +1 more.

ListATCCheckVariantsA

List available ATC check variants on the SAP system. Returns variant names and descriptions. Use this to discover which check variants are available before running ATC checks.

Inputs: no named parameters.

ListRuntimeErrorsA

List recent ABAP runtime errors (ST22 dumps) from the system. Returns error type, program, user, timestamp, and dump ID for each entry. Use GetRuntimeError to retrieve detailed analysis of a specific dump.

Inputs: to, from, user, max_results.

ListSystemsA

List all configured SAP systems from .sap-systems.json. Shows system IDs, names, URLs, clients, authentication methods, and indicates which is the default/active system.

Inputs: no named parameters.

ListUserTransportsA

⚠️ IMPORTANT: Always use from_date parameter to ensure recent transports are visible!

List ALL transport requests for a user by querying CTS database tables (E070/E07T) directly.

βœ… WORKS FOR BOTH MODIFIABLE AND RELEASED TRANSPORTS

This tool:

  • Queries CTS database tables (E070, E07T) directly

  • Shows ALL transports: Modifiable (D), Released (R), and others

  • Returns results in DESCENDING order (newest first)

  • Provides transport type, status, date, target system, and description

  • Auto-defaults to previous year if no from_date specified (prevents missing recent data)

⚠️ CRITICAL LIMITATION:

  • Can only fetch 500 rows per query (ADT API limit)

  • If result count equals limit, MORE RECENT TRANSPORTS MAY BE HIDDEN

  • SOLUTION: Always provide from_date parameter (e.g., "20260101" for 2026 onwards)

  • Tool will warn you if limit is reached

Common status values:

  • D: Modifiable (in development)

  • R: Released

  • L: Modifiable + Protected

  • O: Released + ready for import

Use this tool to find a developer's transports, both in-progress and released.

Inputs: user (required), status, from_date, max_results.

RunATCA

Run ATC (ABAP Test Cockpit) static code analysis on an ABAP object. Returns findings including errors, warnings, and informational messages with locations and check IDs.

Inputs: object_name (required), object_type (required), max_findings, check_variant, +1 more.

RunClassTestsC

Run unit tests for a class and retrieve results

Inputs: class_name (required), auto_activate, preaudit_requested.

RunPackageTestsB

Run unit tests for all test-enabled objects in a package and retrieve aggregated results

Inputs: package_name (required).

SapBrowserLoginA

Trigger browser-based SSO authentication for an SAP system. Opens Chrome for interactive login (supports any IDP: SAP IAS, ADFS, certificate, 2FA). Use this to proactively authenticate before making requests, or to re-authenticate when SSO cookies expire. Not needed for systems using Basic Auth.

Inputs: systemId.

SearchBopfBusinessObjectsA

Search for BOPF/BOBF Business Objects by name pattern in the /BOBF/OBM_BO registry table. Supports wildcard * in query and package (e.g. "SALES", "/IAM/*"). Returns name, object category, and generated flag for each match. When package is provided, also returns the package name per result.

Inputs: query (required), objcat, package, max_results.

SearchObjectC

Search for ABAP objects using quick search

Inputs: query (required), maxResults.

SearchRapBoA

Search for RAP Business Objects by description and return the best matching technical name

Inputs: search_term (required).

SetDefaultSystemA

Change the active SAP system at runtime. All subsequent operations will use this system unless explicitly overridden with the "system" parameter. Note: This change is temporary and only applies to the current session.

Inputs: system_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 65 tools

    Disambiguation3/5

    Most tools are distinct by ABAP object type and action, but several overlaps exist: GetClassCoverage vs RunClassTests both run unit tests, GetClassTests vs GetClassInclude both expose test classes, GetObjectUsages vs the deprecated GetClassUsages are redundant, and transport/version tools (GetVersionHistory, GetTransportVersions, GetTransportRequest) have intersecting purposes. Descriptions help, but boundaries are occasionally blurry.

    Naming Consistency4/5

    The dominant pattern is PascalCase Verb+Object (GetProgram, CreateClass, ExportClassToFile, RunClassTests), which is predictable and readable. Minor deviations include SapBrowserLogin (starts with a noun phrase) and RunATC (verb+acronym), but the set is largely consistent.

    Tool Count1/5

    With 65 tools, this server far exceeds the ideal 3–15 range and lands in the extreme-mismatch category (50+ tools). Even for a broad ADT integration, the volume creates significant choice overload for an agent selecting among many similar read, export, and test tools.

    Completeness4/5

    The surface covers a wide lifecycle: read/search objects, create/replace, activate, export/import, run tests/ATC, inspect transports, compare versions, and check syntax. Minor gaps remain around delete/update for non-class artifacts and a few specialized administrative operations, but core development workflows are well supported.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    • Anaplan MCP server for ChatGPT, Claude and any AI agent: list models, list actions, upload import file, run import, run process, run export, get model history and add user in your own Anaplan account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Anaplan yourself; Cotlet does not store your password and you need no Anaplan API key. About the official Anaplan API: Yes. Anaplan has an official REST API, the Integration API v2.0, and an official MCP server, the Anaplan AI Gateway, but Anaplan's help says the AI Gateway gives external AI systems read-only access (checked 5 Nov 2026). Setup and FAQ: https://cotlet.dev/integrations/anaplan-api-mcp-server

      https://cotlet.dev/mcp/v1/anaplan
    • Nextcloud MCP server for ChatGPT, Claude and any AI agent: upload file, share file, create calendar event, add contact, create Deck card and search files in your own Nextcloud account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Nextcloud yourself; Cotlet does not store your password and you need no Nextcloud API key. About the official Nextcloud API: Yes. Every Nextcloud instance has WebDAV for files, CalDAV for calendars, CardDAV for contacts, an OCS Share API and a Deck API, and they accept an app password (checked 16 Oct 2026). Setup and FAQ: https://cotlet.dev/integrations/nextcloud-api-mcp-server

    • Connect AI assistants to your Webanto workspace to review products and copy proposals, explore SEO and imported Search Console opportunities, and search organization knowledge. Inspect workspace capabilities, connection health, usage, and supported operations. Access requires OAuth or a scoped Webanto API key and follows the authorized organization, permissions, and scopes. With separate consent for the applicable paid AI operation, create a product copy proposal and track its job for review; this workflow does not publish changes to your store. A Webanto account and the relevant connected services or uploaded knowledge are required. Paid AI operations require the applicable subscription and available credits. Authentication is required for MCP discovery; an anonymous HTTP 401 is an access challenge, not evidence of a service outage. Official connector repository: https://github.com/empline/webanto-mcp. Support: support@webanto.com.

      https://webanto.com/api/mcp
    • Service Autopilot MCP server for ChatGPT, Claude and any AI agent: create job, reschedule visit, send estimate, list invoices, add client and get route in your own Service Autopilot account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Service Autopilot yourself; Cotlet does not store your password and you need no Service Autopilot API key. About the official Service Autopilot API: Service Autopilot has no public API, developer portal or self-service API keys (checked 11 Oct 2026). Data moves through a two-way QuickBooks sync, a few partners the vendor picks, a Zapier trigger that only sends completed jobs out, and manual import and export; the QuickBooks sync needs the Pro or Pro Plus plan. Setup and FAQ: https://cotlet.dev/integrations/service-autopilot-api-mcp-server

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables interaction with SAP ABAP systems through ABAP Development Tools (ADT), providing access to repository objects, source code, where-used analysis, and SQL queries with support for both on-premise and BTP systems.
      4
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to perform ABAP Development Tools operations on SAP ERP (ECC and S/4HANA) systems, including source code editing, object activation, syntax checks, and ABAP unit tests.
      14 npm
      MIT