← Back to DAGDA | Support | Source: https://github.com/michalkonopa/arc-1
Skip to content
michalkonopaPublic
forked from arc-mcp/arc-1

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

69 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arc1 — SAP ADT MCP Server

Enterprise-ready MCP server for SAP ABAP systems. Secure by default, deployable to BTP or on-premise, battle-tested with 700+ tests.

arc1 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.

Continued from oisee/vibing-steampunk (Go), rewritten in TypeScript with enterprise security, BTP deployment, and production-grade tooling.

Vibing ABAP Developer

Full Documentation | Setup Guide | Tool Reference

Why arc1?

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 — arc1 adds what's needed to run in production:

Security & Admin Controls

  • Read-only mode — block all writes with a single flag (--read-only)
  • Operation allowlists/denylists — control exactly which operation types (read, write, search, query, activate, transport) are permitted
  • Package restrictions — limit AI access to specific packages with wildcards (--allowed-packages "Z*,$TMP")
  • Data access control — block table data preview (--block-data) or free-form SQL (--block-free-sql)
  • Transport safety — require transport assignments, restrict to specific transports, or make transports read-only
  • Safety profiles — preconfigured roles like --profile viewer, developer-data, or developer-sql
  • Writes restricted to $TMP by default — 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 arc1 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, arc1 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

  • 700+ tests across unit, integration, and E2E
  • Unit tests run without SAP system access (33 test files, mocked HTTP)
  • Integration tests against live SAP systems (on-premise + BTP ABAP)
  • E2E tests deploy the server and execute real MCP tool calls
  • CI matrix across Node 20, 22, and 24

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 with automatic lock/unlock (PROG, CLAS, INTF, FUNC, INCL, DDLS, DDLX, BDEF, SRVD). Batch creation for multi-object workflows (e.g., RAP stack 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
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

arc1 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 — arc1'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

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages