CI MCP Server

CI MCP Server

Enables AI assistants to manage SAP Cloud Integration (CPI) landscapes through natural language by exposing CPI OData APIs as MCP tools.

Category
访问服务器

README

CI MCP Server

An MCP (Model Context Protocol) server for SAP Cloud Integration (CPI), powered by odata-mcp-proxy. It exposes CPI OData APIs as MCP tools, allowing AI assistants like Claude to manage your integration landscape through natural language.

The entire server is defined through a single JSON config file -- no custom code required.

How It Works

This project uses the odata-mcp-proxy npm package, which maps OData/REST services to MCP tools based on a configuration file. You provide a config describing your APIs and entity sets, and the proxy generates the corresponding MCP tools automatically.

AI Assistant (Claude, Cursor, etc.)
        |
        | MCP Protocol (HTTP or stdio)
        v
  odata-mcp-proxy
        |
        | REST + OAuth2 (via BTP Destination Service)
        v
  SAP Cloud Integration OData API

Think of it like the SAP Application Router -- a ready-made runtime you configure, not code you write.

Exposed CPI APIs

The config file (ci-api-config.json) exposes the SAP Cloud Integration OData API, organized into the following categories:

Integration Content

Tool Operations Description
IntegrationPackages list, get, create, update, delete Logical containers that group iFlows, value mappings, and other design-time artifacts
IntegrationDesigntimeArtifacts list, get, create, update, delete iFlow design-time definitions (editable integration logic before deployment)
IntegrationRuntimeArtifacts list, get Deployed integration artifacts (deployment status, version, and errors)
ValueMappingDesigntimeArtifacts list, get, create, update, delete Lookup tables that translate codes/identifiers between sender and receiver systems
MessageMappingDesigntimeArtifacts list, get, create, update, delete Graphical structure-to-structure transformations between message formats
ScriptCollectionDesigntimeArtifacts list, get, create, update, delete Reusable Groovy or JavaScript libraries shared across iFlows
CustomTagConfigurations list, get, create, update, delete Tenant-level labels for categorizing and filtering integration packages
BuildAndDeployStatus list, get Track whether an iFlow deployment is queued, running, or finished

Message Processing Logs

Tool Operations Description
MessageProcessingLogs list, get Execution history for iFlows, used to debug failed messages or monitor processing
IdMapFromId2s list ID mapping entries for exactly-once processing (source-to-target ID mappings)
IdempotentRepositoryEntries list Duplicate-check records ensuring a message is processed only once

Message Stores

Tool Operations Description
DataStoreEntries list, get, delete Key-value records persisted by iFlows for cross-message data sharing
Variables list, get Runtime variables persisted between iFlow executions (timestamps, counters, delta tokens)
NumberRanges list, get Auto-incrementing counters for generating unique sequence numbers
MessageStoreEntries list, get Full messages persisted via the Persist step for later retrieval or retry
JmsBrokers list, get Messaging broker instances provisioned on the tenant
JmsResources list Individual JMS message queues with depth, capacity, and consumer status

Log Files

Tool Operations Description
LogFiles list, get Tenant-level runtime logs (HTTP, default trace, audit) for troubleshooting
LogFileArchives list, get Compressed historical log bundles available for download

Security Content

Tool Operations Description
KeystoreEntries list, get, delete SSL/TLS certificates, key pairs, and trusted CA certificates
CertificateResources list, get Full X.509 certificate chains for verifying trust paths
SSHKeyResources list, get Public/private key pairs for SFTP adapter connectivity
UserCredentials list, get, create, update, delete Stored username/password pairs for basic-auth connections
OAuth2ClientCredentials list, get, create, update, delete Client ID/secret pairs and token endpoints for OAuth2 connections
SecureParameters list, get, create, update, delete Encrypted key-value entries for sensitive configuration values
CertificateUserMappings list, get, create, update, delete Rules mapping inbound client certificates to CPI user roles
AccessPolicies list, get, create, update, delete Fine-grained authorization rules for integration artifacts

Partner Directory

Tool Operations Description
Partners list, get, create, update, delete Trading partner entries driving dynamic iFlow routing
StringParameters list, get, create, update, delete Partner-specific text configuration values (endpoints, format codes)
BinaryParameters list, get, create, update, delete Partner-specific file-based configuration (XSLT, certificates, mappings)
AlternativePartners list, get, create, update, delete Additional partner identifiers (DUNS, GLN) mapping to a primary partner
AuthorizedUsers list, get, create, update, delete Users permitted to send messages on behalf of a specific partner

All _list tools support OData query parameters: $filter, $select, $expand, $orderby, $top, $skip.

Prerequisites

  • Node.js 18+ (20+ recommended)
  • SAP BTP account with a Cloud Foundry environment
  • SAP Cloud Integration tenant (part of SAP Integration Suite)
  • BTP Destination configured for the CPI OData API with OAuth2 authentication
  • Cloud Foundry CLI (cf) and MBT Build Tool (mbt) for deployment

Project Structure

ci-mcp-server/
├── package.json              # Start script + odata-mcp-proxy dependency
├── ci-api-config.json        # API configuration (defines all MCP tools)
├── mta.yaml                  # BTP Cloud Foundry deployment descriptor
├── xs-security.json          # XSUAA OAuth2 configuration
├── default-env.json          # Local dev credentials (gitignored)
└── LICENSE

Getting Started

1. Install dependencies

npm install

2. Configure BTP destination

Create a BTP Destination pointing to the CPI OData API:

Destination URL
CPI_DESTINATION https://<tenant>.it-cpi0<xx>.cfapps.<region>.hana.ondemand.com

The destination should use OAuth2 client credentials authentication with the CPI service key credentials.

3. Local development

Create a default-env.json with your BTP service bindings (XSUAA, Destination, Connectivity) to run locally:

npm start

This runs odata-mcp-proxy --config ci-api-config.json.

4. Deploy to BTP

npm run build:btp     # Build MTA archive
npm run deploy:btp    # Deploy to Cloud Foundry

The MTA deployment provisions three service instances:

  • Destination (lite) -- resolves the CPI API endpoint and manages OAuth2 tokens
  • Connectivity (lite) -- enables secure backend connectivity
  • XSUAA (application) -- handles OAuth2 authentication with role-based access control

Security

The XSUAA configuration (xs-security.json) defines three role templates:

Role Scopes Description
MCPViewer read Read-only access to CPI data
MCPEditor read, write Read and modify CPI data
MCPAdmin read, write, admin Full administrative access

OAuth2 redirect URIs are pre-configured for Claude.ai, Cursor, Microsoft Teams, and local development.

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选