MS

mariodefelipe/sap-datasphere-mcp

开发工具

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

50 stars 17 forks 质量 86 趋势 14MIT

mariodefelipe/sap-datasphere-mcp 是从 https://github.com/mariodefelipe/sap-datasphere-mcp. 导入的 MCP 服务器候选服务器。

概览

mariodefelipe/sap-datasphere-mcp 是从 https://github.com/mariodefelipe/sap-datasphere-mcp. 导入的 MCP 服务器候选服务器。

概述(AI 翻译)

生产准备的模型上下文协议(MCP)服务器,使AI助手能够无缝与SAP Datasphere环境交互,实现真实租户数据发现、元数据探索、分析操作、ETL数据提取、数据库用户管理、数据血缘分析和列级数据剖析——内置配置驱动的个人身份信息掩蔽,确保敏感字段永远不会进入LLM。

📦 我该安装哪个版本?

软件包 MCP Python SDK 状态
2.x(当前) mcp>=2.0, =1.28, =2.0, 元素,而非遗留的 sap:* 属性。元数据工具现在同时读取两种形式,恢复之前空的 label、dimensions 和 measures,分别位于 get_relational_metadata / get_analytical_metadata / get_analytical_model。V2 属性路径作为旧源的备选。参见 CHANGELOG_v1.5.0.md。

v1.4.0 新增内容

** 🔏 配置驱动的个人信息(PII)/ 敏感字段掩蔽**——现在MCP响应流水线内运行一个失败封闭掩蔽层。敏感列会根据你控制的YAML/JSON策略文件,在数据到达LLM之前被涂黑、丢弃、哈希或令牌化。任何提示都无法绕过它。

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

README

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

🚀 SAP Datasphere MCP Server

Production-ready Model Context Protocol (MCP) server that enables AI assistants to seamlessly interact with SAP Datasphere environments for real tenant data discovery, metadata exploration, analytics operations, ETL data extraction, database user management, data lineage analysis, and column-level data profiling — with built-in config-driven PII masking so sensitive fields never reach the LLM.

📦 Which version do I install?

Package MCP Python SDK Status
2.x (current) mcp>=2.0,<3 Active development. Implements the 2026-07-28 stateless spec.
1.x mcp>=1.28,<2 Maintenance only — security and critical fixes.

pip install sap-datasphere-mcp gives you 2.x. The 2.x server is dual-era: it answers both the modern server/discover handshake and the legacy initialize one, so 2025-era clients keep working without changes.

Stay on 1.x only if your environment cannot install SDK 2.x:

pip install 'sap-datasphere-mcp<2'

🆕 What’s New (v2.0.1 — MCP SDK v2 / stateless spec)

  • Ported to MCP Python SDK 2.0.0 and the 2026-07-28 stateless specification. Handlers moved from the removed decorator API to Server(on_*=…) constructor kwargs. The dependency floor is now mcp>=2.0,<3 — this is why the package major changed.
  • Dual-era by default — modern and legacy clients are both served from the same process; no configuration needed.
  • Response cache hints (ttlMs / cacheScope, SEP-2549) on tools/list, prompts/list and resources/list, sourced from CacheManager so the protocol hint and the internal cache cannot drift. Hints are sent to modern clients only, as the spec requires. tools/list is deterministically ordered.
  • Per-asset capability discovery — Datasphere capability varies per asset, not per tenant. $count is now decided by reading the asset’s own Capabilities.CountRestrictions annotation rather than a blanket rule, and a lineage-gated filter verdict is remembered per asset instead of being rediscovered on every call.
在 GitHub 查看完整 README

安装

npx @mariodefe/sap-datasphere-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "sap-datasphere": { "command": "npx", "args": ["@mariodefe/sap-datasphere-mcp"], "env": { "DATASPHERE_BASE_URL": "https://your-tenant.eu20.hcs.cloud.sap", "DATASPHERE_CLIENT_ID": "your-client-id", "DATASPHERE_CLIENT_SECRET": "your-client-secret", "DATASPHERE_TOKEN_URL": "https://your-tenant.authentication.eu20.hana.ondemand.com/oauth/token" } } } }