DD

dnic-dev/bw-modeling-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

89 stars 32 forks 质量 86 趋势 21MIT

dnic-dev/bw-modeling-mcp 是从 https://github.com/dnic-dev/bw-modeling-mcp. 导入的 MCP 服务器候选服务器

概览

dnic-dev/bw-modeling-mcp 是从 https://github.com/dnic-dev/bw-modeling-mcp. 导入的 MCP 服务器候选服务器

概述(AI 翻译)

模型上下文协议(MCP)服务器使像Claude这样的AI助手能够直接在HANA系统上的SAP BW/4HANA或SAP BW 7.5中工作——通过Eclipse BWMT和BW/4HANA Cockpit使用的相同内部SAP API读取、创建和修改BW建模对象:BW建模REST API(/sap/bw/modeling/)用于对象、查询和实时数据,ADT API(/sap/bc/adt/)用于BW生成的ABAP和AMDP例程,BW/4HANA 管理API用于请求监控和运行时,以及Push API(/sap/bw4/)用于数据加载。

这不是模拟。 每次工具调用都连接到实时的 BW 系统——写入操作会产生真实的变化。


☁️ 运行于SAP BTP Cloud Foundry

除了 stdio,服务器还可以作为 HTTP 服务运行于 SAP BTP Cloud Foundry 与 XSUAA 之间 OAuth 在前面,BTP 目的地在后——可以是共享的技术用户 ([BasicAuthentication)或主传播,其中每个呼叫者到达BW时为 他们自己和BW自行授权。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

bw-modeling-mcp

A Model Context Protocol (MCP) server that enables AI assistants like Claude to work directly inside SAP BW/4HANA or SAP BW 7.5 on HANA systems — reading, creating and modifying BW modeling objects via the same internal SAP APIs that Eclipse BWMT and the BW/4HANA Cockpit use: the BW Modeling REST API (/sap/bw/modeling/) for objects, queries and live data, the ADT API (/sap/bc/adt/) for the ABAP and AMDP routines BW generates, the BW/4HANA manage API for the request monitor and runtime, and the Push API (/sap/bw4/) for data loads.

This is not a simulation. Every tool call connects to a live BW system — write operations produce real changes.


☁️ Running on SAP BTP Cloud Foundry

Besides stdio, the server can run as an HTTP service on SAP BTP Cloud Foundry with XSUAA OAuth in front and a BTP destination behind — either a shared technical user (BasicAuthentication) or principal propagation, where each caller reaches BW as themselves and BW applies their own authorizations.

Three role collections decide what a user is offered: BW MCP Reader (everything that only reads), BW MCP Analyst (a small reporting client — run queries and understand what they return) and BW MCP Developer (everything, including changes). stdio is unchanged — npm start behaves exactly as before. Setup: docs/CENTRAL-HOSTING-SETUP.md (step-by-step) and docs/CLOUD-FOUNDRY.md (reference).

What central hosting changes

Scenario stdio only Hosted on BTP
One analyst, one BW system runs on the analyst’s machine server-side, the analyst logs in with their own identity
Several analysts, one server not possible, no central auth all log in via BTP, each caller’s identity reaches BW
Tool permissions none — whoever runs it can call every tool granted per role, independent of BW authorizations: a BW developer can be read-only in the MCP, or the querying tools can be withheld from someone who may otherwise view data
BW authorizations enforced through the user’s own credentials unchanged, still fully enforced — with principal propagation each caller acts as themselves, never as a shared identity
Audit trail limited XSUAA logs every login; with principal propagation the BW session log shows the real user

A new tool stays unavailable to read-only callers until it is explicitly classified as a read, so the surface never widens by accident; write implies read, never the reverse. The three role collections are a starting point and can be split further in xs-security.json.

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "bw-modeling-mcp": { "command": "node", "args": ["/path/to/bw-modeling-mcp/dist/stdio.js"], "env": { "BW_URL": "https://your-bw-host:50001", "BW_USER": "YOUR_USER", "BW_PASSWORD": "YOUR_PASSWORD", "BW_CLIENT": "001", "BW_LANGUAGE": "EN" } } } }