
Mdk Mcp Server
io.github.SAP由 GitHub 账号 SAP 发布v1.0.0更新于 Nov 3, 2026
Model Context Protocol (MCP) server for AI-assisted development of MDK applications.
概览
SAP 的本地 MCP 服务器,为 AI 编程助手提供 MDK 知识与工具,用于创建、生成、校验、迁移和部署 Mobile Development Kit 应用。
- 可以做什么
- 按 CRUD、列表-详情或基础模板创建 MDK 项目或实体元数据
- 生成页面、动作、国际化文件,并检索 JavaScript 规则示例
- 构建、部署、校验、迁移项目,显示引导二维码并打开 Mobile App Editor
- 检索 MDK 文档、组件架构、属性说明与示例,包括 GitHub 教程样例
- 从 Mobile Services 目标获取 OData 元数据并保存为 .service.metadata 文件
- 通过 ilodata 工具查询离线 OData 存储
- 适用场景
- 适用于开发或维护 SAP Mobile Development Kit 应用时,希望由 AI 助手搭建项目、添加页面与动作、检查或迁移架构版本、查阅 MDK 文档,或部署到 SAP Mobile Services 的场景。
- 运行要求
- 以本地 stdio 进程运行,从 npm 安装 @sap/mdk-mcp-server,需要 Node.js 24.11.1;macOS 仅支持 Apple Silicon(v0.4.0 起不支持 Intel Mac),另支持 Linux 与 Windows。对接 SAP Mobile Services 创建应用需要 Cloud Foundry CLI、cf 登录以及 .service.metadata 文件。可选的 GitHub 知识导入使用 GITHUB_TOKEN 环境变量。
安装
在 SourceWeft 中
- 打开 控制台中的 Mdk Mcp Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Welcome to @sap/mdk-mcp-server
What is MCP server for Mobile Development Kit (MDK)?
This open-source server provides AI agents with comprehensive MDK knowledge and tools. By combining best practice guidelines, project-aware context information, templates for creating new projects, and access to the MDK CLI tools, the MDK MCP server transforms AI agents into MDK development experts.
What is Mobile Development Kit?
The mobile development kit is a powerful framework that enables developers to build cross-platform mobile applications using a metadata-driven approach. It is part of SAP Business Technology Platform and integrates tightly with SAP Mobile Services. Some of SAP’s larger and complex mobile apps are built using MDK. An example is SAP Service and Asset Manager.
Table of Contents
- Setup
- Available Tools
- Ingesting GitHub Knowledge (Advanced)
- Offline OData Querying (Advanced)
- Support, Feedback, Contributing
- Telemetry
- Security / Disclosure
- Code of Conduct
- Licensing
- Acknowledgments
Setup
Platform Support
The MDK MCP server supports the following platforms:
- macOS: Apple Silicon (ARM64) only
- ⚠️ Note: Intel Mac (x64) is not supported in v0.4.0+ due to onnxruntime-node ≥1.24 dropping darwin/x64 binaries
- Linux: x64, ARM64, and other architectures
- Windows: x64, ARM64
If you're on an Intel Mac, you may need to:
- Use Rosetta 2 to run the ARM64 version (performance may vary)
- Or stay on an earlier version that uses onnxruntime-node <1.24
Installation Steps
-
Install node.js 24.11.1.
-
To install the MDK MCP server, you have two options:
a. Use npm to install it from the public npmjs registry at @sap/mdk-mcp-server.
b. Clone the open-source code repository at https://github.com/SAP/mdk-mcp-server, and use
npmto install. -
Configure your MCP client (AI agent) to connect to the server. Note that configuration will vary depending on the AI agent used.
Cline in VS Code: Example using the Cline extension.
- With Cline open, look below the prompt box and click Manage MCP Servers.
- In the dialog, click Settings. The MCP Servers page opens.
- Click Configure MCP Servers. This will open the
cline_mcp_settings.jsonfile in your editor. - In the JSON settings file, add a configuration block for MDK MCP server within the
mcpServerssection, and save the file. The supported schema versions include 26.9 (default), 26.6, 26.3, 25.9, 25.6, 24.11, and 24.7.
Note:
If the MCP server is not listed with its available tools in the Cline extension immediately, restart VS Code.Expand: Usage in Claude Code (VS Code Extension)
Claude Code discovers MCP servers from its configuration.
- Open (or create) your Claude Code configuration file:
- Add the following MCP server configuration:
Note: If
~/.claude.jsonalready exists, merge themdk-mcpentry into the existingmcpServerssection rather than replacing the entire file.- Reload the VS Code window (or restart VS Code).
Verify the installation
Open the Claude Code panel in VS Code and run:
You should see
mdk-mcplisted as an available MCP server.Expand: Usage in OpenCode
An example using OpenCode:
Expand: Usage in Cursor
Edit the file
~/.cursor/mcp.json:Expand: Usage in Claude Desktop
Use the absolute path to Node.js in your Claude Desktop configuration file.-
Find your Node.js installation path by running the terminal command:
This might output something like
/usr/local/bin/nodeor/opt/homebrew/bin/node. -
Edit
~/Library/Application Support/Claude/claude_desktop_config.jsonand update thecommandfield to use the absolute path: -
Restart Claude Desktop.
Note: Adjust the paths based on your actual Node.js and MDK MCP server installation locations.
Once configured, your AI agent will have access to the MDK MCP server. Depending on your IDE settings, you may need to approve initial tool calls.
-
Create a Rule File: To ensure your AI coding assistant uses the MCP servers appropriately for your project, define rules and guidelines in a file named
AGENTS.md. In the Cline extension for VS Code, click the Manage Cline Rules & Workflows icon below the prompt box, click + to create a new rule file (e.g.,AGENTS.md) and add the example rules shown below: -
Verify your LLM Provider and AI model.
When you add Cline to VS Code, it serves as the default API provider. You can choose a different LLM provider, such as SAP AI Core. To add an SAP AI Core API provider in the Cline extension for VS Code, follow these steps:
- With Cline open, look below the prompt box and click Select Model / API Providers.
- Choose your API provider (such as SAP AI Core) and enter your details. See the instructions here for a detailed setup.
- Select your preferred AI model.
-
Integration with SAP Mobile Services: To create a new MDK application, the MCP server uses the Cloud Foundry CLI and a
.service.metadatafile containing:- The mobile application defined in the SAP Mobile Services instance.
- Mobile Services API Endpoint
- Mobile Services App ID
- Mobile Destinations including OData service metadata.
We include a tool to help with creating or updating this file as part of our VS Code extension: Mobile development kit extension for VS Code. This is how you can use this tool to create or update the
.service.metadatafile:- Install the Mobile development kit extension for VS Code version 1.32.0 or later.
- Install the Cloud Foundry CLI.
- Log in to your SAP BTP Cloud Foundry environment. For more details you can refer to this help documentation.
- Create an empty folder on your machine and open it in VS Code.
- Open the Command Palette in VS Code and select MDK: Open Mobile App Editor.
- Create a new or select an existing mobile app.
- Select a destination.
- Click Add App to Project.
- The mobile application defined in the SAP Mobile Services instance.
-
Your environment is now ready for the MDK development with MCP server. You can now enter a prompt to:
- Generate a new MDK project displaying OData entities information.
- Enhance an existing project by adding additional UI controls on a given page.
- Validate your current MDK project schema.
- Migrate old MDK projects to latest schema.
- Deploy your MDK project.
- Generate onboarding QR code.
- Explain specific properties.
- Find information about control properties or any aspect of the documentation.
Available Tools
[!NOTE] Tools are meant to be used by AI models and do not constitute a stable API.
This release of the MDK MCP server includes the following tools, which can be accessed by your AI agent:
Ingesting GitHub Knowledge (Advanced)
The MDK MCP server can ingest additional knowledge from GitHub repositories to enhance the search-samples operation. This allows the AI agent to search through MDK tutorial samples and code examples.
What Gets Ingested
By default, the server ingests knowledge from:
- MDK Tutorial Samples: https://github.com/SAP-samples/cloud-mdk-tutorial-samples
- MDK Sample and Showecase Apps: https://github.com/SAP-samples/cloud-mdk-samples
When to Run Ingestion
You typically only need to run ingestion in these scenarios:
- First-time setup (if you want to use
search-samplesoperation) - Updating knowledge base (when new samples are added to GitHub repositories)
- After cloning the repository (ingested data is not included in the repo)
Note: The ingestion process is optional. The server will work without it, but the
search-samplesoperation will not return results until ingestion is completed.
How to Ingest
Basic ingestion (uses cached data if available):
Fresh ingestion (ignores cache, re-downloads everything):
With GitHub token (recommended for better rate limits):
Custom options:
Command Line Options
GitHub Token Setup
To avoid GitHub API rate limits, create a personal access token:
- Go to https://github.com/settings/tokens
- Click Generate new token (classic)
- Select scopes:
public_repo(read access to public repositories) - Copy the token and set it as an environment variable:
Ingestion Output
The ingestion process will:
- Fetch content from configured GitHub repositories
- Chunk the content into manageable pieces
- Generate embeddings using the AI model
- Store embeddings in a vector database
- Enable semantic search via the
search-samplesoperation
Example output:
Troubleshooting
Issue: GitHub API rate limit exceeded
- Solution: Set up a GitHub token (see above)
Issue: Ingestion takes too long
- Solution: Use
--no-cacheonly when necessary; cached runs are much faster
Issue: Out of memory
- Solution: Reduce
--chunk-sizeor process fewer repositories
Offline OData Querying (Advanced)
The MDK MCP server can help you query offline OData stores using the ilodata command-line tool. This is useful for debugging offline applications or inspecting data stored locally on devices during development.
Prerequisites
- MDK SDK
- ilodata Tool: Extract from
SAPOfflineOData-xx.xx.xx-Tools.zipin the MDK SDK - Offline Store Files: A pair of
.udband.rq.udbfiles from your offline application
Setup Steps
-
Extract the ilodata tool:
-
Prepare your offline store files:
Querying Offline Stores
Once set up, you can use natural language prompts with the MDK MCP server to query offline stores:
Example Prompts:
Basic query:
Filtered query:
Specific fields:
Count entities:
How It Works
The AI agent will:
- Understand your natural language query
- Construct the appropriate
ilodatacommand - Execute the command against your offline store
- Return the results in a readable format
Support, Feedback, Contributing
This project is open to feature requests/suggestions, bug reports, and so on, via GitHub issues. Contribution and feedback are encouraged and always welcome.
Contributing
These instructions help contributors set up, test, and maintain code quality for this project. All commands should be run from your project folder in a terminal.
- Test:
npm test - Build:
npm run build - Lint:
npm run lint:all
For more information about how to contribute, the project structure, as well as additional contribution information, see our Contribution Guidelines.
Telemetry
You can enable or disable the collection of analytics. By default, non-personally identifiable information is collected to help understand how you use the product and improve the MDK MCP Server. If you want to opt-out, there are two ways to disable telemetry:
Method 1: Configuration File
Create or change the file ~/.fioritools/telemetrysettings.json:
Set enableTelemetry to false to disable telemetry collection.
Method 2: Environment Variable
Set the environment variable SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY to true:
Setting this environment variable disables the telemetry client.
Security / Disclosure
If you find a bug that may pose a security problem, please follow our instructions in our security policy on how to report it. Please do not create GitHub issues for security-related doubts or problems.
Code of Conduct
As members, contributors, and leaders, we pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its Code of Conduct at all times.
Licensing
Copyright 2025 SAP SE or an SAP affiliate company. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available [REUSE status].
Acknowledgments
- @huggingface/transformers.js is used to compare the output of the WordPiece tokenizer.
- @modelcontextprotocol/sdk provides the SDK for MCP.
来源:README.md,提交 da22ba0
工具
0版本历史
1- v1.0.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分