SAP ABAP MCP

io.github.Coaspe由 GitHub 帳號 Coaspe 發布v2.2.0更新於 Oct 29, 2026

Develop, test, analyze, and operate SAP ABAP systems through ADT from AI coding agents.

已驗證STDIO僅桌面資料庫開發者工具

概覽

AI 產生的概覽

將 AI 助理連接到啟用 ADT 的 SAP 系統,用來讀取 ABAP 程式碼、進行限定範圍的修改並檢視檢查結果。

可以做什麼
  • 尋找與檢視 SAP 能力:依關鍵字搜尋或瀏覽分類,並描述能力以取得精確的輸入 schema 與雜湊
  • 使用已描述的 schema 雜湊與參數呼叫讀取類能力
  • 使用已描述的 schema 雜湊與參數呼叫寫入類能力,例如限定範圍的原始碼修改
  • 使用已描述的 schema 雜湊與參數呼叫破壞性能力,例如啟用或傳輸作業
  • 查詢系統清單,並使用引導式工作流程提示修改既有物件
適用情境
適合 ABAP 開發人員讓 AI 編碼助理透過 ADT 在 SAP 系統中工作:讀取 ABAP 原始碼、對 Z 程式或類別做限定範圍的修改,並檢視實際檢查結果。首次評估時建議維持唯讀,只開放搜尋、描述與讀取三類閘道。
執行需求
以 npm 套件形式透過 stdio 在本機執行;需要 Node.js 22 或 24,並能連線到 SAP 系統,通常需連上公司 VPN。須先在終端機完成本機設定(onboard 或 register 指令),包含 SAP 連線資訊與存放於作業系統保護儲存區的憑證;未宣告任何環境變數或標頭。TLS 信任可能需要公司 CA 檔案。
安裝前請注意
它可以對運行中的 SAP 系統寫入並啟用物件;多物件寫入失敗時可能停在不確定狀態,且不會自動回復,重試前應先檢查狀態。SAP 憑證只在進行本機設定時處理,不應在對話中提供。目前 2.x 版本在真實 SAP 上的驗收未由留存的操作層級紀錄證實,舊版固定註冊需更新才能取得修正。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 SAP ABAP MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

SAP ABAP MCP

[npm version] [npm downloads]

Connect your AI assistant to an ADT-enabled SAP system to read ABAP, make scoped changes and inspect actual check results.

[SAP ABAP MCP demo]

Quick start

  1. Install Node.js 22/24 and connect to your company VPN.
  2. Run npx -y @coaspe/[email protected] onboard (npx.cmd on Windows).
  3. Verify and save your SAP connection, register your host, then restart the app and verify an actual SAP system read.
HostSetup command
Claude Codenpx -y @coaspe/[email protected] onboard
Codexnpx -y @coaspe/[email protected] onboard
VS Codenpx -y @coaspe/[email protected] register DEV100 --client vscode --apply
Cursornpx -y @coaspe/[email protected] register DEV100 --client cursor --apply
Gemini CLInpx -y @coaspe/[email protected] register DEV100 --client gemini --apply
Claude Desktopnpx -y @coaspe/[email protected] register DEV100 --client claude-desktop --apply

Version 2.2.0 includes company CA files, six-host registration and Windows SAP Logon import. Omit --apply to preview a registration; existing entries are preserved and existing settings files are backed up. Claude Desktop MCPB users should avoid a duplicate registration. On Windows replace npx with npx.cmd.

CA profiles use file format version 3 and need 2.2.0 or later. Existing npm registrations pin their package version: restart alone does not update a 2.1.0 registration. Use registration doctor and reviewed repair to update an existing registration to 2.2.0 before using a CA profile.

See setup details, including Linux environment-only credentials and registration recovery.

2.1.0 fixes noninteractive startup, native macOS credential storage and registration recovery. Windows DPAPI explicitly loads its native security module even when Node inherits a PowerShell 7 module path. Bundled npm/npx Windows launchers are resolved without a shell while preserving custom wrappers. This release also reduces the runtime package. Patched vendor bytes are preserved across Windows and Unix checkouts. Existing five gateways still reach 120 capabilities.

Fixes in 2.2.0

Repeated source patches use the same current-source view, preserve literal $ sequences and activate after unlock. Transport release supports ADT background runs; the release also improves RAP response recovery, V4 unpublish errors, old open-transport discovery, CTS-key object assignment, Dictionary checks and top-level package creation. See the eight fixes and validation limits.

These paths have local automated coverage. Live B4D write/release acceptance has not been established by this release. Older npm 2.1.0 still has the reported source-patch limitations; upgrading the package and its pinned host registration is required to use the fixes.

One existing-object change

Select the existing sap-change-object prompt, with the configured systemId, exact Z program/class as target, and desired behavior in goal. It reuses source, semantic/public API, dependency, quality and transport features.

Production/read-only policy, package restrictions, transport requirements and exact-source checks remain enforced. In 2.2.0, source writes recheck the same current-source view under lock, without an explicit inactive probe. A changed current version stops the write. Requested activation follows successful unlock and is skipped on syntax errors. Uncertain multi-object writes stop with saved/uncertain/unattempted identities; there is no automatic rollback or atomic-transaction claim. Inspect state before retrying. Zero tests, unsupported checks and partial findings cannot establish completion.

For a read-only evaluation, keep readOnly: true and expose only search, describe and invoke_read gateways in the host. Do not execute write, activation, Unit, ATC, debugger or profiling operations during that evaluation. See workflow prompts and T1–T5 criteria.

Verified environments and limits

ScopeEvidence and limit
Clean npm tarball, macOS arm64, Node 24Eight launch/profile combinations, Unicode/spaces, help, invalid commands and shutdown passed on the reliability candidate
macOS KeychainActual throwaway legacy-item/UTF-8/9,000-byte storage, renewal and deletion passed
Windows read-only field procedureOwner reports all supplied steps passed without candidate source changes; sanitized operation records were not supplied
Windows DPAPI / npx.cmd automationWindows CI passed: native storage/module-shadow regression, bundled launchers and eight installed-tarball protocol cases
Native Desktop MCPB / host restartStandalone bundle checks and an owner's overall field report remain distinct from retained app-level evidence
Current 2.x live-SAP acceptancenot verified by retained operation-level records; owner-reported read-only completion is recorded separately
Historical live SAP / model comparison2026-08-05 results are historical; no identical-model T1–T5 completion rate or product ranking is established

Candidate measurements reduced compressed npm size from 26.29 to 13.33 MB and installed dependency bytes from 118.89 to 91.81 MB. Three warm protocol sessions measured 346–351 to 223–239 ms. Cold install was 12.92 to 16.06 seconds; no cold speed improvement is claimed. See exact snapshots and limits.

If setup fails

SymptomNext action
MCP closes immediatelyKeep serve explicit, especially on 2.0.1; verify Node on the host PATH
SETUP_REQUIREDComplete local setup and reconnect; this state is not an accepted SAP installation
Removed Node/cache or old registered versionRun registration doctor and reviewed repair/update
Certificate untrusted / expired / hostname mismatchKeep verification enabled; use the company CA PEM file or ask the administrator to fix the certificate/URL. See TLS trust
SAP URL unknownOn Windows use SAP Logon import to find candidate URLs, then check ADT and confirm the endpoint with your administrator
SAP authentication/authorization failureRenew locally or ask the administrator for ADT permission; avoid blind repeated logins
Inactive conflict / uncertain writeRead current active/inactive state and reconcile with its owner before resuming

Reference and release status

Normal clients should omit both --api-version and --toolsets.

Privacy Policy

PRIVACY.md: no default remote telemetry. Credentials remain in OS-protected storage. Feedback exports are voluntary; public adopter names and quotes require separate explicit permission. Downloads and automated tests do not establish active users, task success or independent adoption.

來源:README.md,提交 d22c91d

工具

5

sap.capability.describe

Describe SAP Capability

Get exact input schemas and hashes: name or names (up to 10).

輸入參數namenamesincludeOutputSchema

sap.capability.invoke_read

Invoke Read SAP Capability

Invoke a read capability with its described schemaHash and arguments.

輸入參數name必填argumentsschemaHash必填

sap.capability.invoke_write

Invoke Write SAP Capability

Invoke a write capability with its described schemaHash and arguments.

輸入參數name必填argumentsschemaHash必填

sap.capability.invoke_destructive

Invoke Destructive SAP Capability

Invoke a destructive capability with its described schemaHash and arguments.

輸入參數name必填argumentsschemaHash必填

版本歷史

5
  1. v2.2.0最新Oct 21, 2026
  2. v2.1.0Oct 20, 2026
  3. v2.0.1Oct 12, 2026
  4. v2.0.0Oct 8, 2026
  5. v1.7.0Sep 16, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分