ARC-1

ARC-1

MCP server for SAP ABAP systems

Category
访问服务器

README

ARC-1 — SAP ADT MCP Server

ARC-1 (pronounced arc one [ɑːrk wʌn]) — Enterprise-ready MCP server for SAP ABAP systems. Secure by default, deployable to BTP or on-premise, and hardened with large unit/integration/E2E test coverage.

ARC-1 connects AI assistants (Claude, GitHub Copilot, Copilot Studio, and any MCP client) to SAP systems via the ADT REST API. It ships as an npm package and Docker image.

Full Documentation | Setup Guide | Tool Reference

Why ARC-1?

Built for organizations that need AI-assisted SAP development with guardrails. Inspired by the pioneering work of abap-adt-api, mcp-abap-adt, and vibing-steampunk — ARC-1 adds what's needed to run in production:

Security & Admin Controls

  • Safe by default — read-only, no free SQL, no table preview, no transports out of the box. Use --profile developer or explicit flags to enable capabilities
  • Operation allowlists/denylists — control exactly which operation types (read, write, search, query, activate, transport) are permitted
  • Package restrictions — limit AI write operations (create, update, delete) to specific packages with wildcards (--allowed-packages "Z*,$TMP"). Read operations are not restricted by package — use SAP's native authorization for read-level access control
  • Data access control — enable table data preview (--block-data=false) or free-form SQL (--block-free-sql=false)
  • Transport safety — require transport assignments, restrict to specific transports, or make transports read-only. Update/delete operations auto-use the lock correction number when no explicit transport is provided
  • Safety profiles — preconfigured roles: viewer, viewer-data, viewer-sql, developer, developer-data, developer-sql
  • Writes restricted to $TMP when enabled — only local/throwaway objects; writing to transportable packages requires explicit --allowed-packages

Authentication

  • API key — simple Bearer token for internal deployments
  • OIDC / JWT — Entra ID, Keycloak, or any OpenID Connect provider
  • OAuth 2.0 — browser-based login for BTP ABAP Environment
  • XSUAA — SAP BTP native auth with automatic token proxy for MCP clients
  • Principal Propagation — per-user identity forwarded through Cloud Connector (every SAP action runs as the actual user, not a technical account)

BTP Cloud Foundry Deployment

Deploy ARC-1 as a Cloud Foundry app on SAP BTP with full platform integration:

  • Destination Service — connect to SAP systems via managed destinations
  • Cloud Connector — reach on-premise systems through the connectivity proxy
  • Principal Propagation — user identity forwarded end-to-end via X.509 certificates
  • XSUAA OAuth proxy — MCP clients authenticate via standard OAuth, ARC-1 handles the BTP token exchange
  • Audit logging — structured events to stderr, file, or BTP Audit Log Service

Token Efficiency

  • 11 intent-based tools (~5K schema tokens) instead of 200+ individual tools — keeps the LLM's context window small
  • Method-level read/edit — read or update a single class method, not the whole source (up to 20x fewer tokens)
  • Context compression — SAPContext returns public API contracts of all dependencies in one call (7-30x compression)

Built-in Object Caching

  • Automatic source caching — every SAP object read is cached in memory (stdio) or SQLite (http-streamable). Repeated reads return instantly without calling SAP.
  • Dependency graph caching — SAPContext dep resolution keyed by source hash; unchanged objects skip all ADT calls on subsequent runs.
  • Pre-warmer — start with ARC1_CACHE_WARMUP=true to pre-index all custom objects at startup, enabling reverse dependency lookup (SAPContext(action="usages")).
  • Write invalidation — when SAPWrite modifies an object, its cache entry is automatically dropped; next read fetches fresh source.

See docs/caching.md for full documentation.

Testing

  • 1,367+ unit tests (53 unit test files, mocked HTTP)
  • ~160 integration tests against live SAP systems, with explicit skip reasons when credentials or fixtures are missing
  • ~70 E2E tests that execute real MCP tool calls against a running ARC-1 server and live SAP system
  • CRUD lifecycle and BTP smoke lanes included (test:integration:crud, test:integration:btp:smoke)
  • CI matrix on Node 22 and 24; integration + E2E run on push to main and internal PRs
  • Reliability telemetry + coverage published as informational CI signals (non-blocking)

Tools Refined for Real-World Usage

The 11 tools are designed from real LLM interaction feedback:

Tool What it does
SAPRead Read ABAP source, table data, CDS views, metadata extensions (DDLX), service bindings (SRVB), message classes, BOR objects, deployed UI5/Fiori apps (BSP, BSP_DEPLOY). Structured format for classes returns metadata + decomposed includes as JSON
SAPSearch Object search + full-text source code search across the system
SAPWrite Create/update/delete ABAP source and DDIC metadata with automatic lock/unlock (PROG, CLAS, INTF, FUNC, INCL, DDLS, DDLX, BDEF, SRVD, DOMA, DTEL). Batch creation for multi-object workflows (e.g., RAP stack or domain+data element in one call)
SAPActivate Activate ABAP objects — single or batch (essential for RAP stacks). Publish/unpublish OData service bindings (SRVB)
SAPNavigate Go-to-definition, find references, code completion
SAPQuery Execute ABAP SQL with table-not-found suggestions
SAPTransport CTS transport management (list, create, release)
SAPContext Compressed dependency context — one call replaces N SAPRead calls
SAPLint Local ABAP lint (system-aware presets, auto-fix, pre-write validation)
SAPDiagnose Syntax check, ABAP Unit tests, ATC code quality, short dumps, profiler traces
SAPManage Feature probing — detect what the system supports before acting

Tool definitions automatically adapt to the target system (BTP vs on-premise), removing unavailable types and adjusting descriptions so the LLM never attempts unsupported operations.

Feature Detection

ARC-1 probes the SAP system at startup and adapts its behavior:

  • Detects HANA, abapGit, RAP/CDS, AMDP, UI5, and transport availability
  • Auto-detects BTP vs on-premise systems
  • Maps SAP_BASIS release to the correct ABAP language version
  • Each feature can be forced on/off or left on auto-detect

Quick Start

npx arc-1@latest --url https://your-sap-host:44300 --user YOUR_USER

For Docker, BTP deployment, client configuration (Claude Desktop, Claude Code, VS Code, Copilot Studio), and all authentication methods, see the Setup Guide.

Documentation

Full documentation is available at marianfoo.github.io/arc-1.

Guide Description
Setup Guide Deployment options, auth methods, client configuration
Tool Reference Complete reference for all 11 tools
Architecture System architecture with diagrams
Docker Guide Docker deployment reference
Enterprise Auth All authentication methods
BTP Deployment Cloud Foundry deployment on SAP BTP
AI Usage Patterns Agent workflow patterns and best practices

Development

npm ci && npm run build && npm test

See CLAUDE.md for codebase structure, testing commands, and contribution guidelines.

Credits

Project Author Contribution
vibing-steampunk oisee Original Go MCP server — ARC-1's starting point
abap-adt-api Marcello Urbani TypeScript ADT library, definitive API reference
mcp-abap-adt Mario Andreschak First MCP server for ABAP ADT
abaplint Lars Hvam ABAP parser/linter (used via @abaplint/core)

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选