SAP ADT MCP
Reads SAP CTS transport requests and tasks, marks personal modifiable Workbench tasks, and validates CTS task selection for publication previews.
Connects to SAP ADT to search and read ABAP repository objects and source, inspect metadata/DDIC/function/OData interfaces, run SAP syntax checks, query where-used references, list CTS transports, and prepare publication previews and inactive writebacks for Z/Y reports.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
SAP ADT MCP
给 AI 编程客户端使用的本地 SAP ABAP Development Tools MCP。它把 SAP Studio Code 的对象检索、源码读取、SAP 语法检查、接口查询和写回预览能力做成独立工具。每台电脑通过一次性的本地配置接入 SAP HTTPS ADT,支持直连、系统 VPN、SSH 跳板和已有本地转发。随后 AI 客户端通过 STDIO 自行调用 SAP 工具。无需安装原插件。
安装与客户端配置 · 示例连接配置 · English quick start
先配置连接,再注册 MCP
uvx --python 3.12 --from git+https://github.com/socik-dot/sap-adt-mcp.git@v0.2.0 sap-adt-mcp setup向导会收集 SAP ADT 地址、SID、client、开发账号和连接方式,现场核对 SAP 身份后保存配置。密码默认存入当前系统用户的凭据存储。选用 SSH 时,还可配置跳板账号、SSH Agent、私钥或密码,以及跳板机看到的 SAP 地址。完成后按 安装说明 注册,AI 可直接搜索、读取源码和检查语法。
Related MCP server: abap-adt-mcp
功能
MCP 工具 | 能力 |
| 核对配置的 SAP SID 和 client,返回服务器公布的 ADT 集合 |
| 按名称或模式搜索 SAP 仓库对象,可按 ADT 类型筛选 |
| 读取对象描述、包、源码单元和 SAP 返回的类或接口成员 |
| 读取 active 或 inactive 源码及 SHA-256,单次批读最多 12 项 |
| 递归读取主程序和静态 INCLUDE,返回依赖关系和缺口 |
| 读取 ADT 公布的事务码入口 |
| 读取表、结构、数据元素、域、视图元数据或 CDS DDL |
| 获取函数模块参数、方向、类型及异常,必要时读取固定的 FUPARAREF 接口目录 |
| 读取 SAP Gateway V2/V4 |
| 查询 SAP 仓库对象的使用位置 |
| 读取 CTS 传输请求和任务,标记个人可修改的 Workbench 任务 |
| 调用 SAP ADT |
| 比较现有 Z/Y REPORT,返回候选差异、CTS 任务校验和 SAP 语法检查结果 |
源码工具覆盖 REPORT、INCLUDE、CLASS、INTERFACE、FUNCTION、CDS、RAP 行为定义和服务定义。函数接口的目录回退、事务入口和其他可选能力取决于服务器版本及权限。DDIC 未返回完整字段时会标出缺口,分开展示可读取的定义源码。ABAP 运行结果和动态调用链超出静态 INCLUDE 解析范围。一个 MCP 实例绑定一个目标,各 SAP 系统分别配置。
使用示例
在 AI 客户端中请求按顺序调用如下工具。示例对象名和服务路径请用目标 SAP 中实际存在的值替换。
sap_get_adt_capabilities({})
sap_search_objects({"query":"ZDEMO*","object_type":"PROG/P"})
sap_read_program_context({"program":"ZDEMO_REPORT"})
sap_check_syntax_memory({"name":"ZDEMO_REPORT","source":"REPORT zdemo_report.\nWRITE 'Hello'.\n"})
sap_read_function_interface({"name":"BAPI_USER_GET_DETAIL"})
sap_read_odata_metadata({"service_path":"/sap/opu/odata/sap/ZDEMO_SRV"})
sap_list_transports({})这些接口按 SAP 返回的内容工作。ADT 查询与语法检查在 SAP 后端执行。若系统返回 HTTP 403,请让 SAP Basis 核对该账号对相应 ADT 资源的权限。分别参见 SAP ADT 文档 和 SAP Gateway OData 文档。
人工写回与 CTS
AI 可运行发布预览。操作者在终端运行 publish,输入写账号密码,检查 SAP 当前版本、候选差异与传输任务,再输入显示的确认短语。程序在 SAP 对象锁内重读基线,经 ADT 保存 inactive 版本,再回读 active 和 inactive 验证结果。
uvx --python 3.12 --from git+https://github.com/socik-dot/sap-adt-mcp.git@v0.2.0 sap-adt-mcp --config "/absolute/path/dev-write.local.toml" publish ZDEMO_REPORT "./ZDEMO_REPORT.abap" --task DEVK900123适用范围是有相应权限的 DEV / TEST,QAS 需要额外传入 --allow-qas。现有 Z/Y REPORT 的包由 SAP 返回。非本地包须给出当前账号下可修改的 Workbench 任务。$TMP 省略 --task。已有独立的 inactive 版本会阻止新写回。激活、CTS 创建/释放/导入仍由操作者在 SAP Studio Code、ADT 或 SAP GUI 完成。
若超时、回读不匹配或解锁未确认,本地日志会保留待核对记录。使用相同的连接和对象运行 reconcile ZDEMO_REPORT,查看两版摘要并在 SAP 核实锁、源码及任务后再确认清除记录。日志保存在运行账号的 ~/.sap-adt-mcp/publication.sqlite3,保存版本哈希和结果。
验证范围
仓库测试使用模拟 SAP 后端校验 HTTP 请求、ADT XML、CTS 筛选、语法诊断、版本回读和写回边界,也启动实际 MCP STDIO 进程和模拟 SSH 跳板,验证搜索、源码读取、语法诊断以及 SSH/TLS 身份检查。真实 SAP 的版本、证书、网络、账号权限和端点需要各安装环境自行验收。
uv sync --locked --no-editable
uv run --no-sync pytest -qEnglish quick start
Install uv, run the same command below with setup once to create a verified local profile, then register serve as the STDIO command. Direct, system VPN, managed SSH and existing local forwarding are supported. The setup wizard stores the password in the OS credential store by default.
uvx --python 3.12 --from git+https://github.com/socik-dot/sap-adt-mcp.git@v0.2.0 sap-adt-mcp serveThe MCP tools expose ADT discovery, search, active/inactive source, syntax diagnostics, DDIC, function and OData metadata, where-used, CTS lookup, and publication preview. For existing customer reports, the separate operator command can save an inactive version after a terminal review. Each workstation needs network access to the configured SAP HTTPS endpoint and its own credentials.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Query your team's AI coding history and act on HypAware recommendations from any MCP client.
Read-only AI coding tools for change verification, release readiness, capacity, and guidance.
The Cortex MCP server provides read-only access to real-time engineering context from the Cortex developer portal, allowing AI coding assistants to answer natural language questions about your organization's catalog (microservices, libraries, domains, teams, infrastructure), scorecards (engineering standards and best practices), initiatives (goals and deadlines), and Engineering Intelligence metrics. It includes tools for querying documentation, tracking personal entities, and accessing AI-assisted insights across the entire Cortex ecosystem.
Serves your design system and coding standards to coding agents, so they stop guessing.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to access SAP ADT APIs for reading, writing, debugging, deploying, and testing ABAP code through natural language or DSL automation.541MIT
- AlicenseAqualityDmaintenanceEnables AI agents to read, write, activate, and transport ABAP code in SAP systems via ABAP ADT REST API, without needing SAP GUI.24MIT
- AlicenseNot gradedqualityBmaintenanceEnables 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 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to work with SAP ABAP systems through the ADT REST API, supporting repository search, source code read/write, activation, syntax checks, and transport request management.1Apache 2.0