ai newsFr., 4. Dez.
EilmeldungAlibaba Releases Qwen4-35B-A3B: Open-Weight MoE Model With 1M Context

SAP liefert offiziellen MCP-Server für ABAP in den Development Tools

SAP hat einen offiziellen MCP-Server für ABAP als Teil der ABAP-Entwicklungswerkzeuge für VS Code veröffentlicht. Die Version 1.2.0 ist aktuell, zunächst im Read-only-Modus, Anbindung an Claude Code, Copilot und Codex möglich.

dev.toMittwoch 16:03 · 02.12.DE5 Min. Lesezeit
Bild: dev.to

Veröffentlicht am 2. Dezember, ursprünglich publiziert auf abapforagents.com

Im Jahr 2026 lieferte SAP einen offiziellen MCP-Server für ABAP aus. Er ist Teil der ABAP-Entwicklungswerkzeuge für die VS-Code-Erweiterung (SAPSE.adt-vscode), die am 29. Mai 2026 im Visual Studio Marketplace erschien. Version 1.2.0, veröffentlicht am 16. Oktober 2026, ist die Version, die SAPs eigene Tutorials inzwischen verlangen. SAP beschreibt den ADT MCP Server als eine Implementierung des Model Context Protocol, das "MCP-Werkzeuge für ABAP-Entwicklungsaufgaben wie das Erstellen von ABAP-Entwicklungsobjekten, das Anlegen von Transporten und das Generieren kompletter RAP-Anwendungen anbietet".

Für einen KI-Agenten ist der nützliche Teil nicht die Codegenerierung. Es ist die Tatsache, dass der Agent Ihr System fragen kann, statt zu raten: Existiert diese Klasse, wie sieht ihre Signatur aus, besteht die Syntaxprüfung, was sagt ATC. Fehlende Objekte und falsche Signaturen sind der häufigste Fehler bei KI-geschriebenem ABAP.

Dieser Beitrag behandelt, was der Server einem Agenten bietet, wie man GitHub Copilot, Claude Code und Codex anbindet, und ein Setup, das mit Nur-Lese-Zugriff beginnt. Alles stammt aus SAPs Dokumentation im SAP Help Portal, SAPs Tutorials auf GitHub, den Einstellungsbeschreibungen der Erweiterungsversion 1.2.0 sowie der MCP-Dokumentation von Claude Code und Codex. Die vollständige Quellenliste findet sich im Original-Guide. Wir haben dieses Setup nicht gegen ein reales SAP-System getestet. Bezeichnungen von Einstellungen und Namen der Werkzeuge ändern sich zwischen Releases, prüfen Sie sie daher gegen Ihre installierte Version.

MCP ist ein offener Standard, der es einem KI-Agenten ermöglicht, Werkzeuge in anderen Systemen aufzurufen. Der ADT MCP Server läuft innerhalb der VS-Code-Erweiterung auf Ihrem Rechner und nutzt die eigene Verbindung der Erweiterung zu Ihrem ABAP-System (ein sogenanntes "Destination"). Wenn Sie ihn aktivieren, startet die Erweiterung einen lokalen HTTP-Server unter http://localhost:<port>/mcp, standardmäßig Port 2236, und erzeugt dafür einen Bearer-Token. SAPs RAP130-Workshop beschreibt ihn als "einen lokalen HTTP-Server, der innerhalb der ADT-for-Visual-Studio-Code-Erweiterung läuft", er existiert also nur, solange VS Code läuft.

Die Erweiterung verbindet sich laut ihrer Marketplace-Seite über RFC mit On-Premise-Systemen und SAP S/4HANA Cloud Private Edition sowie über HTTP mit der SAP BTP ABAP-Umgebung und SAP S/4HANA Cloud Public Edition.

SAPs Seite zu den Model Context Protocol Tools listet die Werkzeuge auf. Nach Funktion gruppiert:

Dieselbe Seite markiert einige Werkzeuge als Joule-Lizenz und Tokenverbrauch erforderlich: abap_explain_object, abap_docs_dcp und die KI-basierten ATC-Fixes. Sie weist außerdem darauf hin, dass die Werkzeugnamen in einem kürzlichen Release aktualisiert wurden, sodass ältere Tutorials, Skills und Agent-Dateien weiterhin die alten Namen verwenden können.

In settings.json sehen die Einstellungs-IDs der Erweiterungsversion 1.2.0 so aus:

{ "adt.mcpServer.accessRestrictionsEnabled": true, "adt.mcpServer.accessRestrictions": { "destinations": "DEV_100", "packages-objectChanges": "" }, "adt.mcpServer.enableEditFileToolForABAPObjects": false, "adt.mcpServer.port": 2236, "adt.mcpServer.enabled": true } DEV_100 steht für den Namen Ihrer Destination. Was jede Einstellung bewirkt, gemäß SAPs Seite Enabling ADT MCP Server und den Einstellungsbeschreibungen:

SAPs eigene Tutorials bezeichnen die Beschränkungseinstellungen etwas anders (einer sagt Allowlist), suchen Sie also nach "mcp" in den Einstellungen, falls eine Bezeichnung nicht übereinstimmt.

Die Erweiterung registriert den Server bei VS Code, sodass Copilot Chat ihn ohne Konfigurationsdatei erkennt. Gemäß SAPs Seite Configuring ADT MCP Server:

Die Erweiterung bringt außerdem einen eigenen Custom-Agenten namens abap-developer mit. Dessen Anweisungen weisen den Agenten an, Objekte zu erstellen, zu bearbeiten und zu aktivieren; verwenden Sie ihn daher nicht für einen Nur-Lese-Start.

SAPs Dokumentation besagt, dass jeder MCP-Host den Server über HTTP mit einem Header Authorization: Bearer <token> nutzen kann und dass "das Konfigurationsformat je nach MCP-Host variieren kann". In Claude Code fügen Sie einen HTTP-Server mit einem Header hinzu, wie in dessen MCP-Dokumentation beschrieben:

claude mcp add --transport http sap-adt http://localhost:2236/mcp \ --header "Authorization: Bearer <token from the VS Code setting>" Damit wird der Server im lokalen Scope (~/.claude.json) gespeichert, was Claude Code für Zugangsdaten empfiehlt, die nicht in die Versionsverwaltung sollen. Um die Definition stattdessen in einer project.mcp.json zu teilen, halten Sie den Token mit Variablenexpansion aus der Datei heraus:

{ "mcpServers": { "sap-adt": { "type": "http", "url": "http://localhost:2236/mcp", "headers": { "Authorization": "Bearer ${ADT_MCP_TOKEN}" } } } } Halten Sie VS Code geöffnet, mit angemeldeter Destination, und führen Sie dann in Claude Code /mcp aus, um zu prüfen, ob sap-adt verbunden ist.

Codex liest MCP-Server aus ~/.codex/config.toml oder einer projektlokalen codex/config.toml, gemäß der Codex-MCP-Dokumentation. Ein Streamable-HTTP-Server benötigt eine url und kann den Bearer-Token aus einer Umgebungsvariablen lesen:

[mcp_servers.sap_adt] url = "http://localhost:2236/mcp" bearer_token_env_var = "ADT_MCP_TOKEN" Führen Sie codex mcp list aus, um die konfigurierten Server zu sehen.

SAPs Einstellungen machen das eigene Editierwerkzeug des Servers opt-in, aber Nur-Lese im Agenten ist eine separate Entscheidung. SAPs Beispiel für eine Agenten-Schleife lässt den Agenten einen Transportauftrag anlegen, die Klasse mit abap_object_create erstellen, Code mit dem "im MCP-Host eingebauten Editierwerkzeug (nicht vom ADT MCP Server)" hinzufügen und sie aktivieren. Die Einstellungsbeschreibung der Erweiterung warnt außerdem, dass eingebaute Editierwerkzeuge von Copilot oder anderen Hosts mit dem ADT-Editierwerkzeug kollidieren können. Das Abschalten des Edit-File-Werkzeugs allein macht einen Agenten also nicht Nur-Lese. Beschränken Sie zusätzlich die Werkzeuge im Agenten.

Phase 1: nur Nachschlagen und Prüfen. Erlauben Sie nur diese Werkzeuge und nichts anderes:

abap_destination_list abap_repository_search_object abap_object_get_file_uri abap_object_list_file_uris abap_object_read_file abap_object_get_aff_specification abap_object_check abap_unit_run_tests abap_atc_run_start abap_atc_run_get_result abap_business_service_list abap_business_service_get_info abap_transport_get_request abap_transport_get_unified_diff Copilot: in Configure Tools alle weiteren Werkzeuge des ADT-Servers abwählen und die Edit-File-Einstellung der Erweiterung ausgeschaltet lassen. Codex: fügen Sie der Tabelle des Servers eine Allowlist hinzu. Codex wendet disabled_tools nach enabled_tools an, und default_tools_approval_mode = "prompt" fragt vor jedem Aufruf nach: [mcp_servers.sap_adt] url = "http://localhost:2236/mcp" bearer_token_env_var = "ADT_MCP_TOKEN" default_tools_approval_mode = "prompt" enabled_tools = [ "abap_destination_list", "abap_repository_search_object", "abap_object_get_file_uri", "abap_object_list_file_uris", "abap_object_read_file", "abap_object_get_aff_specification", "abap_object_check", "abap_unit_run_tests", "abap_atc_run_start", "abap_atc_run_get_result", "abap_business_service_list", "abap_business_service_get_info", "abap_transport_get_request", "abap_transport_get_unified_diff", ] Claude Code: verweigern Sie die Änderungswerkzeuge in.claude/settings.json.

Claude Code benennt MCP-Werkzeuge als mcp__<server>__<tool>, und eine Deny-Regel entfernt das Werkzeug aus Claudes Kontext, gemäß der Dokumentation zu Berechtigungen: { "permissions": { "deny": [ "mcp__sap-adt__abap_object_edit_file", "mcp__sap-adt__abap_object_create", "mcp__sap-adt__abap_object_activate", "mcp__sap-adt__abap_objects_generator_run", "mcp__sap-adt__abap_transport_create_request", "mcp__sap-adt__abap_atc_quickfixes_apply", "mcp__sap-adt__abap_atc_ai_start_fix", "mcp__sap-adt__abap_atc_exemption_request", "mcp__sap-adt__abap_object_run_action" ] } } Danach teilen Sie dem Agenten in seiner Instruktionsdatei mit (AGENTS.md / CLAUDE.md, Copilot-Anweisungen oder Cursor Rules), wie er den Server nutzen soll. Eine Regel in dieser Art funktioniert:

Phase 2: Änderungen in einem Paket. Wenn die Nur-Lese-Ergebnisse gut sind, fügen Sie der Paketbeschränkung ein Sandbox-Paket hinzu (oder $TMP), schalten Sie das Edit-File-Werkzeug ein, falls der Agent über den Server bearbeiten soll, und erlauben Sie die Änderungswerkzeuge einzeln mit Freigabe pro Aufruf. Prüfen Sie jede Änderung so wie die eines Kollegen. SAPs Werkzeugliste enthält abap_transport_get_unified_diff, das Ihnen vor der Freigabe einen Diff eines Transports liefert.

Die längere Fassung dieses Beitrags mit allen verlinkten Quellen finden Sie auf abapforagents.com. Wenn Sie fertige Regeln für dieses Setup möchten, enthält das kostenlose, MIT-lizenzierte ABAP for Agents Lite auf GitHub die Kernregeln (einschließlich der obigen Nur-Lese-MCP-Regel) für Cursor, Claude Code, Copilot, Windsurf und AGENTS.md, auf Englisch und Portugiesisch. Das vollständige Rules Pack (v1.1.0, 19 Euro) ergänzt über 300 Regeln zu 20 Themen und 8 Agent-Skills, auf Englisch und Portugiesisch.

Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.

Original (Englisch) anzeigen

Posted on Dec 2 • Originally published at abapforagents.com

In 2026 SAP shipped an official MCP server for ABAP. It's part of the ABAP development tools for VS Code extension ( SAPSE.adt-vscode ), which appeared on the Visual Studio Marketplace on 29 May 2026. Version 1.2.0, released on 16 October 2026, is the one SAP's own tutorials now ask for. SAP describes the ADT MCP server as an implementation of the Model Context Protocol "offering MCP tools for ABAP development tasks such as creating ABAP development objects, creating transports, and generating complete RAP applications".

For an AI agent, the useful part is not code generation. It's that the agent can ask your system instead of guessing: does this class exist, what's its signature, does the syntax check pass, what does ATC say. Missing objects and wrong signatures are the most common failure in AI-written ABAP.

This post covers what the server gives an agent, how to connect GitHub Copilot, Claude Code and Codex, and a setup that starts read-only. Everything comes from SAP's documentation on the SAP Help Portal, SAP's tutorials on GitHub, the setting descriptions shipped with extension version 1.2.0, and the MCP documentation of Claude Code and Codex. The full source list is in the original guide. We haven't tested this setup against a real SAP system. Setting labels and tool names change between releases, so check them against your installed version.

MCP is an open standard that lets an AI agent call tools in other systems. The ADT MCP server runs inside the VS Code extension, on your machine, and uses the extension's own connection to your ABAP system (a "destination"). When you enable it, the extension starts a local HTTP server at http://localhost:<port>/mcp, port 2236 by default, and generates a bearer token for it. SAP's RAP130 workshop describes it as "a local HTTP server that runs inside the ADT for Visual Studio Code extension", so it only exists while VS Code is running.

The extension connects over RFC to on-premise systems and SAP S/4HANA Cloud Private Edition, and over HTTP to the SAP BTP ABAP environment and SAP S/4HANA Cloud Public Edition, according to its Marketplace page.

SAP's Model Context Protocol Tools page lists the tools. Grouped by what they do:

The same page marks a few tools as needing a Joule licence and token consumption: abap_explain_object, abap_docs_dcp and the AI-based ATC fixes. It also notes that the tool names were updated in a recent release, so older tutorials, skills and agent files can still use the old names.

In settings.json, the setting IDs from extension version 1.2.0 look like this:

{ "adt.mcpServer.accessRestrictionsEnabled": true, "adt.mcpServer.accessRestrictions": { "destinations": "DEV_100", "packages-objectChanges": "" }, "adt.mcpServer.enableEditFileToolForABAPObjects": false, "adt.mcpServer.port": 2236, "adt.mcpServer.enabled": true } Enter fullscreen mode Exit fullscreen mode DEV_100 stands for your destination's name. What each setting does, according to SAP's Enabling ADT MCP Server page and the setting descriptions:

SAP's own tutorials label the restriction settings slightly differently (one says Allowlist ), so search for "mcp" in the settings if a label doesn't match.

The extension registers the server with VS Code, so Copilot Chat sees it without a configuration file. Following SAP's Configuring ADT MCP Server page:

The extension also ships an abap-developer custom agent. Its instructions tell the agent to create, edit and activate objects, so don't use it for a read-only start.

SAP's documentation says any MCP host can use the server over HTTP with an Authorization: Bearer <token> header, and that "the configuration format may differ across MCP hosts". In Claude Code, add an HTTP server with a header, as described in its MCP documentation:

claude mcp add --transport http sap-adt http://localhost:2236/mcp \ --header "Authorization: Bearer <token from the VS Code setting>" Enter fullscreen mode Exit fullscreen mode This stores the server in local scope ( ~/.claude.json ), which Claude Code recommends for credentials you don't want in version control. To share the definition in a project.mcp.json instead, keep the token out of the file with variable expansion:

{ "mcpServers": { "sap-adt": { "type": "http", "url": "http://localhost:2236/mcp", "headers": { "Authorization": "Bearer ${ADT_MCP_TOKEN}" } } } } Enter fullscreen mode Exit fullscreen mode Keep VS Code open with the destination logged on, then run /mcp in Claude Code to check that sap-adt is connected.

Codex reads MCP servers from ~/.codex/config.toml or a project.codex/config.toml, per the Codex MCP documentation. A Streamable HTTP server takes a url and can read the bearer token from an environment variable:

[mcp_servers.sap_adt] url = "http://localhost:2236/mcp" bearer_token_env_var = "ADT_MCP_TOKEN" Enter fullscreen mode Exit fullscreen mode Run codex mcp list to see the configured servers.

SAP's settings make the server's own edit tool opt-in, but read-only in the agent is a separate decision. SAP's agentic loop example has the agent create a transport request, create the class with abap_object_create, add code with the "built-in edit tool from MCP host (Not from ADT MCP Server)" and activate it. The extension's setting description also warns that built-in edit tools of Copilot or other hosts can conflict with the ADT edit tool. So switching off the edit file tool alone doesn't make an agent read-only. Restrict the tools in the agent as well.

Phase 1: look up and check only. Allow these tools and nothing else:

abap_destination_list abap_repository_search_object abap_object_get_file_uri abap_object_list_file_uris abap_object_read_file abap_object_get_aff_specification abap_object_check abap_unit_run_tests abap_atc_run_start abap_atc_run_get_result abap_business_service_list abap_business_service_get_info abap_transport_get_request abap_transport_get_unified_diff Enter fullscreen mode Exit fullscreen mode Copilot: in Configure Tools, untick everything else from the ADT server, and keep the extension's edit file setting off. Codex: add an allow list to the server's table. Codex applies disabled_tools after enabled_tools, and default_tools_approval_mode = "prompt" asks before each call: [mcp_servers.sap_adt] url = "http://localhost:2236/mcp" bearer_token_env_var = "ADT_MCP_TOKEN" default_tools_approval_mode = "prompt" enabled_tools = [ "abap_destination_list", "abap_repository_search_object", "abap_object_get_file_uri", "abap_object_list_file_uris", "abap_object_read_file", "abap_object_get_aff_specification", "abap_object_check", "abap_unit_run_tests", "abap_atc_run_start", "abap_atc_run_get_result", "abap_business_service_list", "abap_business_service_get_info", "abap_transport_get_request", "abap_transport_get_unified_diff", ] Enter fullscreen mode Exit fullscreen mode Claude Code: deny the change tools in.claude/settings.json.

Claude Code names MCP tools mcp__<server>__<tool>, and a deny rule removes the tool from Claude's context, per its permissions documentation: { "permissions": { "deny": [ "mcp__sap-adt__abap_object_edit_file", "mcp__sap-adt__abap_object_create", "mcp__sap-adt__abap_object_activate", "mcp__sap-adt__abap_objects_generator_run", "mcp__sap-adt__abap_transport_create_request", "mcp__sap-adt__abap_atc_quickfixes_apply", "mcp__sap-adt__abap_atc_ai_start_fix", "mcp__sap-adt__abap_atc_exemption_request", "mcp__sap-adt__abap_object_run_action" ] } } Enter fullscreen mode Exit fullscreen mode Then tell the agent how to use the server in its instruction file ( AGENTS.md / CLAUDE.md, Copilot instructions or Cursor rules). A rule along these lines works:

Phase 2: changes in one package. When the read-only results are good, add one sandbox package (or $TMP ) to the package restriction, switch on the edit file tool if you want the agent to edit through the server, and allow the change tools one at a time with per-call approval. Review every change as you would a colleague's. SAP's tool list includes abap_transport_get_unified_diff, which gives you a diff of a transport before release.

The longer version of this post, with all sources linked, is on abapforagents.com. If you want ready-made rules for this setup, the free, MIT-licensed ABAP for Agents Lite on GitHub has the core rules (including the read-only MCP rule above) for Cursor, Claude Code, Copilot, Windsurf and AGENTS.md, in English and Portuguese. The full Rules Pack (v1.1.0, 19 €) adds 300+ rules across 20 topics and 8 agent skills, in English and Portuguese.

Originaltitel: SAP's ADT MCP server for ABAP: connect Claude Code, Copilot and Codex, read-only firstQuelle: dev.to (dev.to). Original öffnen