MS

mariodefelipe/sap-datasphere-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

49 stars 17 forks Качество 86 Тренд 33MIT

mariodefelipe/sap-datasphere-mcp - кандидат на сервер MCP, импортированный из https://github.com/mariodefelipe/sap-datasphere-mcp.

Обзор

mariodefelipe/sap-datasphere-mcp - кандидат на сервер MCP, импортированный из https://github.com/mariodefelipe/sap-datasphere-mcp.

Обзор (машинный перевод)

Сервер готовый к производству Model Context Protocol (MCP), который позволяет помощникам ИИ беспрепятственно взаимодействовать с средами SAP Datasphere для обнаружения реальных данных арендаторов, исследования метаданных, аналитических операций, извлечения данных ETL, управления пользователями базы данных, анализа данных и профилирования данных на уровне колонок - со встроенным PII на основе конфигураций, маскирующим настолько чувствительные поля, что они никогда не достигают 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 сохраняется в качестве резервного для более старых источников. См. [8].

Что нового в v1.4.0

** PII / Sensitive-Field Masking** — маскирующий слой, закрытый по умолчанию, теперь проходит внутри конвейера реагирования MCP. Чувствительные столбцы отредактированы, удалены, хешированы или токенизированы * до того, как данные когда-либо достигнут LLM *, на основе файла политики YAML / JSON, который вы контролируете. Никакая подсказка не может обойти его.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

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.
Открыть полный README на GitHub

Установка

npx @mariodefe/sap-datasphere-mcp
Новичок в 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" } } } }