@coaspe/sap-abap-mcp

中文文档
2.2.0发布于 2026/10/21MITTypeScriptES Module构建来源已验证近 30 天下载 1899

Headless MCP server for SAP ABAP Development Tools

原始使用文档
文档目录7 节
  1. Quick start
  2. Fixes in 2.2.0
  3. One existing-object change
  4. Verified environments and limits
  5. If setup fails
  6. Reference and release status
  7. Privacy Policy

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.

版本与发布记录

@coaspe/sap-abap-mcp 共发布 39 个版本,首次发布于 2026/07/13;过去 12 个月发布了 39 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.2.0latest2026/10/2120 天前
2.1.02026/10/2021 天前
2.0.12026/10/1229 天前
2.0.02026/10/081 个月前
1.7.12026/09/151 个月前
1.7.02026/09/082 个月前

其他发布通道:preview → 0.1.1。

关于 @coaspe/sap-abap-mcp 的常见问题

@coaspe/sap-abap-mcp 是什么?

Headless MCP server for SAP ABAP Development Tools

如何安装 @coaspe/sap-abap-mcp?

在项目目录运行 npm install @coaspe/sap-abap-mcp,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 sap-abap-mcp,可以用 npx sap-abap-mcp 直接运行。

@coaspe/sap-abap-mcp 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@coaspe/sap-abap-mcp 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@coaspe/sap-abap-mcp 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@coaspe/sap-abap-mcp 可以商用吗?

@coaspe/sap-abap-mcp 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@coaspe/sap-abap-mcp 的下载量有多少?

根据 npm 官方下载统计,@coaspe/sap-abap-mcp 在 2026/10/10 – 2026/11/08 这 30 天内被下载 1,899 次,日均约 63 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@coaspe/sap-abap-mcp 还在维护吗?

最新版本 2.2.0 发布于 2026/10/21(20 天前);至今共发布 39 个版本,其中过去 12 个月发布了 39 个;首次发布于 2026/07/13。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。