abap2UI5 MCP配置与使用教程
io.github.abap2UI5/mcp-server · v1.0.0
abap2UI5 dev loop for AI agents: validate views, screenshot, deploy and run apps - no SAP system
建议先在本页复制安装配置,再到上游核对文档与权限。
产品介绍
abap2UI5 dev loop for AI agents: validate views, screenshot, deploy and run apps - no SAP system abap2UI5 是一个MCP Server,收录自 官方 MCP Registry。支持 stdio 传输。本页提供产品介绍、配置教程、安装命令与适用场景,支持 Trae、通义灵码、Cursor、Claude Code、VS Code 等。
适用场景
AgentHub Verified 可用性验证技术测试通过
自动化测试流水线已校验安装命令、传输协议与客户端兼容性
按平台快速复制
选择你的平台查看安装方式
- 打开项目根目录下的 .cursor/mcp.json(没有就新建)
- 点击「复制配置」粘贴进去;若已有其他 MCP,只合并 mcpServers 里的本条目
- 将 env 中的 <占位符> 替换为真实密钥(见下方「环境变量」)
- 保存后按 Cmd+Shift+P(Windows:Ctrl+Shift+P)→ 输入 Reload Window 并执行
预填环境变量与密钥(可选)
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@abap2ui5/mcp-server"
]
}
}
}配置教程
- 打开 abap2UI5 详情页,确认这是你需要的 MCP Server(来源 官方 MCP Registry)。
- 按客户端选择 Trae、通义灵码、Cursor、Claude Code 或 VS Code,复制 JSON 配置或 CLI 命令。
- 将配置合并进 mcpServers,并把环境变量占位符替换为真实密钥。
- 重载窗口后,在 Agent 对话中调用该 MCP 提供的工具。
安装命令
以下安装命令与配置步骤已写入页面 HTML,搜索引擎与未启用 JavaScript 的浏览器均可直接读取。
Claude Code(本地)
- 确保已安装 Claude Code CLI
- 复制下方命令,将 <占位符> 替换为真实环境变量值后,在终端执行
- 若下方列出了环境变量,请对照填写
claude mcp add mcp-server -- npx -y @abap2ui5/mcp-serverCursor — .cursor/mcp.json(本地)
- 打开项目根目录下的 .cursor/mcp.json(没有就新建)
- 点击「复制配置」粘贴进去;若已有其他 MCP,只合并 mcpServers 里的本条目
- 将 env 中的 <占位符> 替换为真实密钥(见下方「环境变量」)
- 保存后按 Cmd+Shift+P(Windows:Ctrl+Shift+P)→ 输入 Reload Window 并执行
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@abap2ui5/mcp-server"
]
}
}
}VS Code — .vscode/mcp.json(本地)
- 确保 VS Code 已安装 GitHub Copilot 扩展并支持 MCP
- 打开项目根目录下的 .vscode/mcp.json(没有就新建)
- 点击「复制配置」粘贴;若已有其他 MCP,只合并 mcpServers 里的本条目
- 将 env 中的 <占位符> 替换为真实密钥(见下方「环境变量」)
- 保存后重新加载 VS Code 窗口
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@abap2ui5/mcp-server"
]
}
}
}Claude Desktop — claude_desktop_config.json(本地)
- 打开 Claude Desktop 的 claude_desktop_config.json(路径见远程指引)
- 点击「复制配置」合并到 mcpServers
- 将 env 中的 <占位符> 替换为真实密钥
- 完全退出并重启 Claude Desktop
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@abap2ui5/mcp-server"
]
}
}
}Trae — .trae/mcp.json(本地)
- 打开 Trae → 设置 → MCP,或编辑 .trae/mcp.json / 全局 mcp.json
- 点击「复制配置」粘贴并合并 mcpServers
- 将 env 中的 <占位符> 替换为真实密钥
- 保存后重载 Trae 窗口
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@abap2ui5/mcp-server"
]
}
}
}Cherry Studio — MCP 设置(本地)
- 打开 Cherry Studio → 设置 → MCP 服务器 → 添加(STDIO)
- 也可直接导入下方 JSON:点击「复制配置」合并到 mcpServers
- 将 env 中的 <占位符> 替换为真实密钥,并确保本机已安装 Node.js / uv(npx、uvx)
- 启用服务并查看工具列表是否加载成功
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@abap2ui5/mcp-server"
]
}
}
}通义灵码 — MCP 配置(本地)
- 通义灵码:个人设置 → MCP 服务 → 「+」→ 手工添加(STDIO)或配置文件添加
- 点击「复制配置」合并 mcpServers;命令/参数/环境变量与 JSON 一致
- 将 env 中的 <占位符> 替换为真实密钥;本机需 Node.js 18+(npx)或已安装 uv(uvx)
- 确认服务状态为已连接后再在智能体对话中调用
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@abap2ui5/mcp-server"
]
}
}
}Windsurf — mcp_config.json(本地)
- 编辑 ~/.codeium/windsurf/mcp_config.json
- 点击「复制配置」合并 mcpServers(本地 stdio 与 Cursor 格式相同)
- 将 env 中的 <占位符> 替换为真实密钥后保存并刷新 Cascade
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@abap2ui5/mcp-server"
]
}
}
}Cline — MCP Servers(本地)
- Cline 面板 → 设置 → MCP Servers
- 点击「复制配置」粘贴并合并
- 将 env 中的 <占位符> 替换为真实密钥后保存
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@abap2ui5/mcp-server"
]
}
}
}WorkBuddy — .workbuddy/mcp.json(本地)
- 编辑 ~/.workbuddy/mcp.json(用户级)或项目目录 .workbuddy/mcp.json
- 也可在界面:插件 → MCP 服务器 → 配置 MCP,粘贴下方 JSON
- 将 env 中的 <占位符> 替换为真实密钥;Windows 下 command/脚本路径建议用绝对路径
- 保存并重启 WorkBuddy,确认连接器状态为绿色
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@abap2ui5/mcp-server"
]
}
}
}常见报错排查与运行避坑 (Troubleshooting)FAQ
针对 abap2UI5 在 Cursor、Claude Code 中的常见连接错误与解决办法
在 Cursor / Claude Code 中配置 abap2UI5 提示 connection closed 或 exit code 1?
通常由本地运行时环境缺失或命令路径未被 IDE 继承引起。排查步骤: 1. 确认已安装 Node.js 18+(支持 npx)或 Python 3.10+(支持 uvx); 2. 尝试在终端运行 which npx 或 which uvx,把配置文件中的 "command" 字段改为完整绝对路径; 3. 修改 mcp.json 后,必须完全重载或重启客户端窗口。
# 终端测试命令是否存在: which npx node -v
提示 spawn npx ENOENT 或 command not found?
这是因为编辑器后台进程未加载完整的终端环境变量(PATH)。解决方案:在全局安装该包(如 npm install -g 包名),或在配置文件中将 command 设置为系统的实际路径(如 Windows 下的 C:\Program Files\nodejs\npx.cmd,Mac 下的 /usr/local/bin/npx)。
提示 Missing required environment variable 或 API 认证失败?
abap2UI5 依赖环境变量(如 AI_VIEW_CHECK_HOME、A2UI5_HOME、SAMPLES_CONTROLS_HOME、SAMPLES_HOME、SAMPLES_STACK_HOME、APP_TEMPLATE_HOME、DOCS_HOME、ABAP_CLOUD_GUI_HOME、POPUPS_HOME、OPENUI5_SRC、A2UI5_MCP_WORKSPACE、A2UI5_MCP_BACKEND、A2UI5_MCP_RUNTIME_VERSION、A2UI5_MCP_PORT、A2UI5_MCP_UI、A2UI5_MCP_APP_FORMAT、A2UI5_MCP_OFFLINE、A2UI5_MCP_REMOTE、A2UI5_MCP_REMOTE_DIR、A2UI5_MCP_REMOTE_TTL_MS、A2UI5_MCP_UI5_CACHE_MB、A2UI5_MCP_RENDER_PAGES、A2UI5_MCP_CHROMIUM、A2UI5_MCP_SCREENSHOT_DIR、A2UI5_MCP_PREBUILT_URL、A2UI5_MCP_LINT_WORKER、A2UI5_MCP_LINT_IDLE_MS、A2UI5_MCP_LINT_TIMEOUT_MS、A2UI5_MCP_SCOPE_TIMEOUT_MS、A2UI5_MCP_BUILD_TIMEOUT_MS、A2UI5_MCP_UNIT_TIMEOUT_MS、A2UI5_MCP_SYSTEM_URL、A2UI5_MCP_SYSTEM_USER、A2UI5_MCP_SYSTEM_PASSWORD、A2UI5_MCP_SYSTEM_PASSWORD_CMD、A2UI5_MCP_SYSTEM_INSECURE_TLS、GITHUB_TOKEN)。请在客户端配置文件的 "env" 对象中填入有效密钥,注意不要包含多余空格或未闭合的双引号。
// .cursor/mcp.json 或 claude_desktop_config.json
{
"env": {
"API_KEY": "your_actual_key_here"
}
}免安装模拟调用 (Playground)
仿真环境abap2UI5 核心接口调用仿真 · 无需配置本地环境,直接预览调用参数与返回格式
{
"target": "abap2UI5",
"action": "execute",
"options": {
"mode": "standard",
"timeoutMs": 5000
}
}点击上方「模拟运行」按钮
查看该工具在 Agent 内部的返回数据格式
选型与决策建议(为什么选它?)
帮助你快速判断该资源是否契合当前项目,避免盲目折腾
- PR 自动审查
- 生成 changelog
- 跨仓库 Issue 检索
- 替代人工安全审计
- 在无授权仓库上操作
abap2UI5 + 对应场景 Prompt → 组成标准 Agent 自动化任务
MCP 实战教程:从安装到看见效果
按完整实例走一遍(含期望效果与对比验收)。装完本页资源后,用教程里的提示词核对是否真正生效。
相关资源
Actual Budget
v0.10.7
io.github.henfrydls/actual-budget-mcp
Spending analysis and safe writes for Actual Budget: every delete previews and asks first.
Fairquery Agent Trust & Data Safety
v1.0.4
io.github.fairquery/fairquery-agent-trust-mcp
PII/secret redaction, email checks, sanctions screening and OSV vulnerability lookups for AI agents.
Cowork
v1.0.0
io.github.slashman413/cowork
Self-hosted MCP task inbox shared by Claude Code, Codex, Gemini CLI and local LLMs.
seo-audit-console
v0.16.0
io.github.houtini-ai/seo-audit-console
Technical SEO in Claude: GSC + crawl + DataForSEO - audit, market sizing, content recon.
Bulk Article Extractor
v0.1.0
io.github.Nero-Engine/bulk-article-extractor
Full text, author, date and image for every news or blog link in a dataset, CSV or Google Sheet.
Faable — Deploy & Auth
v4.16.0
com.faable/mcp
Deploy apps from GitHub, read build/runtime logs, and manage your app's users from your AI agent.
常搭配使用
中文公文写作
v2.0.35
io.clawhub.gongyu0918-debug/chinese-official-writing
用于中文公文、事务性材料和新闻稿件的起草、改写、压缩、润色、审校、文种核对、去口语化、降 AI 味及 Word 格式处理,适用于机关、企事业单位、学校和新闻机构。涵盖申请、请示、报告、通知、通告、意见、决定、决议、议案、公报、命令、函、复函、批复、说明、方案、纪要、公告、公示、通报、制度、规定、办法、细则、操作规程、工作要点、总结、调研、讲话、致辞、主持词、述职、可研、审查材料、技术需求、新闻消息、编者按、新闻评论,以及采购、整改、反馈和 AI 算力等场景。
Canonry
v7.45.1+c90d226
io.clawhub.arberx/canonry
通过已连接的 MCP 工具或 cnry CLI 导航 Canonry,检查证据、诊断变更、规划度量、审查集成并报告结果。这是一个可选的宿主原生技能,适用于 CLI 工作流与详细引用;已接入 MCP 的用户可通过 canonry_help 操作,无需安装本地运行时或技能。
AI 保险顾问(中国大陆)
v2.0.163
io.clawhub.mnetfairy/ai-insurance-advisor
中国大陆保险顾问。本 skill 仅覆盖 6 项实际实现的能力:保险需求分析(needs_analyzer.py)、产品对比(premium_calculator.py + 本地 products.json)、保费计算(premium_calculator.py)、方案设计(plan_designer.py)、保险知识问答(insurance-knowledge.md)、合规要点提示(compliance.md)。不提供核保预审、理赔代办、朋友圈/营销文案生成、培训话术、代理人展业工具等能力——这些场景请转人工或调用专业服务。
中国大陆 AI 保险顾问
v2.0.178
io.clawhub.mnetfairy/insurance-advisor-china
中国大陆AI保险顾问。为个人和家庭提供全方位的保险咨询、产品对比、方案设计、投保指导。当用户询问保险配置、保险方案、产品对比、重疾险/医疗险/寿险/意外险/储蓄险推荐、保费计算、保障缺口分析、需求分析、核保合规、理赔等问题时使用。
继续逛 AgentHub
大多数人安装前还会对比同类工具或看场景方案——下面这些能帮你少走弯路。
收录徽章:把 AgentHub 挂到你的官网
复制下面任意一段代码到项目主页、官网或 GitHub README。徽章是 SVG 热链,无需上传文件,链接指向本页,访客可由此直接找到安装方式。
<a href="https://myagenthub.cn/p/io.github.abap2UI5/mcp-server" title="AgentHub 已收录:abap2UI5" target="_blank" rel="noopener">
<img src="https://myagenthub.cn/badge/io.github.abap2UI5/mcp-server" alt="AgentHub 已收录:abap2UI5" height="20" style="border:0"/>
</a>[](https://myagenthub.cn/p/io.github.abap2UI5/mcp-server)徽章由 /badge/<资源ID> 动态生成,名称与收录状态变化后自动更新;请保留链接指向,它是收录来源的判定依据。
统一 Manifest
{
"id": "io.github.abap2UI5/mcp-server",
"type": "mcp-server",
"version": "1.0.0",
"displayName": "abap2UI5",
"description": "abap2UI5 dev loop for AI agents: validate views, screenshot, deploy and run apps - no SAP system",
"repository": {
"url": "https://github.com/abap2UI5/mcp-server",
"source": "github"
},
"homepage": "https://abap2ui5.github.io/docs/advanced/mcp_server.html",
"distribution": {
"packages": [
{
"registryType": "npm",
"identifier": "@abap2ui5/mcp-server",
"version": "1.0.0",
"runtimeHint": "npx",
"transport": "stdio",
"environmentVariables": [
{
"name": "AI_VIEW_CHECK_HOME",
"description": "Checkout or install of @abap2ui5/linter (validate_view, fix_view, screenshot_view). Default: the peer npm installs beside the server. A set value is authoritative."
},
{
"name": "A2UI5_HOME",
"description": "abap2UI5 framework checkout (app_guide, api_reference, pitfalls; backend when present). Default: ../abap2UI5, else the GitHub mirror and the npm runtime."
},
{
"name": "SAMPLES_CONTROLS_HOME",
"description": "samples-controls checkout (capabilities, examples, generation_rules, scope_of, UI5 for screenshots). Default: ../samples-controls, else the GitHub mirror."
},
{
"name": "SAMPLES_HOME",
"description": "abap2UI5/samples checkout, one of the catalogues examples searches. Default: ../samples, else the GitHub mirror."
},
{
"name": "SAMPLES_STACK_HOME",
"description": "abap2UI5/samples-stack checkout (OData, RAP, APC, launchpad samples). Default: ../samples-stack, else the GitHub mirror."
},
{
"name": "APP_TEMPLATE_HOME",
"description": "abap2UI5/app-template checkout that scaffold_app serves and add_agent_setup executes. Default: ../app-template, else the GitHub mirror."
},
{
"name": "DOCS_HOME",
"description": "abap2UI5/docs checkout that docs_search reads. Default: ../docs, else the GitHub mirror."
},
{
"name": "ABAP_CLOUD_GUI_HOME",
"description": "abap2UI5-addons/abap-cloud-gui checkout (with npm ci done) whose report2cloud converter migrate_report runs. Default: ../abap-cloud-gui; no mirror."
},
{
"name": "POPUPS_HOME",
"description": "abap2UI5-addons/popups checkout whose popups migrate_report with deploy: true writes into the dev sandbox beside the converted class. Default: .deps/popups of the abap-cloud-gui checkout, ../popups beside it, then its build/popups."
},
{
"name": "OPENUI5_SRC",
"description": "OpenUI5 source checkout scope_of reads the JSDoc from (via samples-controls). Default: ../fork-openui5 next to samples-controls."
},
{
"name": "A2UI5_MCP_WORKSPACE",
"description": "Where the npm backend installs, the dev sandbox lives and a framework clone lands. Default: ~/.abap2ui5-mcp."
},
{
"name": "A2UI5_MCP_BACKEND",
"description": "Which backend runs the apps: npm (the @abap2ui5/node-runtime package, even beside a checkout) or clone (clone the framework). Default: decided per call."
},
{
"name": "A2UI5_MCP_RUNTIME_VERSION",
"description": "Pin the @abap2ui5/node-runtime release (X.Y.Z) the npm backend installs. Default: the registry's latest."
},
{
"name": "A2UI5_MCP_PORT",
"description": "Port of the local backend run_app boots against. Default: 3000."
},
{
"name": "A2UI5_MCP_UI",
"description": "Whether app_start/app_describe/app_act declare their MCP Apps screen (ui://abap2ui5/app-screen): auto (default - when the client advertises the io.modelcontextprotocol/ui extension), on, off."
},
{
"name": "A2UI5_MCP_APP_FORMAT",
"description": "The default answer format of the app tools: snapshot (default) or adaptive-card (the snapshot plus an Adaptive Card 1.5 as an embedded resource, for card-rendering hosts)."
},
{
"name": "A2UI5_MCP_OFFLINE",
"description": "Set to 1 for no network: no UI5 CDN fallback, no GitHub mirror, no registry lookup."
},
{
"name": "A2UI5_MCP_REMOTE",
"description": "Set to 0 to switch off the read-only GitHub mirror used when no checkout is found."
},
{
"name": "A2UI5_MCP_REMOTE_DIR",
"description": "Cache directory of the GitHub mirror. Default: <tmp>/abap2ui5-mcp-remote."
},
{
"name": "A2UI5_MCP_REMOTE_TTL_MS",
"description": "How long a mirrored copy is used before it is refreshed, in milliseconds. Default: one day."
},
{
"name": "A2UI5_MCP_UI5_CACHE_MB",
"description": "How many MB of UI5 answers from the CDN (sdk.openui5.org) run_app and interact_app keep in memory across calls, so a second boot does not download them again. 0 switches the cache off. Default: 64."
},
{
"name": "A2UI5_MCP_RENDER_PAGES",
"description": "Pages (Chromium tabs) of validate_view's warm render gate, which concurrent calls queue on. Default: 2 (1 to 8)."
},
{
"name": "A2UI5_MCP_CHROMIUM",
"description": "Chromium binary for run_app and interact_app. Default: CHROMIUM_BIN, Playwright's managed browser, then a system chromium."
},
{
"name": "A2UI5_MCP_SCREENSHOT_DIR",
"description": "Where run_app and interact_app write their PNGs (the newest 50 are kept) and build_backend its log. Default: <tmp>/abap2ui5-mcp-screenshots."
},
{
"name": "A2UI5_MCP_PREBUILT_URL",
"description": "Where build_backend mode prebuilt downloads the backend from. Default: the framework's release asset."
},
{
"name": "A2UI5_MCP_LINT_WORKER",
"description": "Set to 0 to run every lint as a fresh abaplint process. Default: a long-lived worker keeps @abaplint/core with the framework parsed and lints a deploy in milliseconds (the CLI runs whenever the worker cannot stand in for it)."
},
{
"name": "A2UI5_MCP_LINT_IDLE_MS",
"description": "How long the warm lint worker (about 300 MB with the framework parsed) is kept without a request before it exits, in milliseconds; the next lint starts a fresh one. 0 keeps it for the server's life. Default: 10 minutes."
},
{
"name": "A2UI5_MCP_LINT_TIMEOUT_MS",
"description": "Hard timeout of the abaplint run, in milliseconds. Default: 5 minutes."
},
{
"name": "A2UI5_MCP_SCOPE_TIMEOUT_MS",
"description": "Hard timeout of scope_of, in milliseconds. Default: 5 minutes."
},
{
"name": "A2UI5_MCP_BUILD_TIMEOUT_MS",
"description": "Hard timeout of a build, the prebuilt download and the npm install, in milliseconds. Default: 30 minutes."
},
{
"name": "A2UI5_MCP_UNIT_TIMEOUT_MS",
"description": "Hard timeout of the ABAP Unit runner, in milliseconds. Default: 10 minutes."
},
{
"name": "A2UI5_MCP_SYSTEM_URL",
"description": "Switches on the SYSTEM MODE: the app tools against this real SAP system instead of the sandbox loop. The launch URL, e.g. https://host:44300/sap/bc/z2ui5?app_start={class}&sap-client=100."
},
{
"name": "A2UI5_MCP_SYSTEM_USER",
"description": "System mode: the SAP user the app tools log on with (Basic authentication)."
},
{
"name": "A2UI5_MCP_SYSTEM_PASSWORD",
"description": "System mode: the password of A2UI5_MCP_SYSTEM_USER. Or A2UI5_MCP_SYSTEM_PASSWORD_CMD, to keep it out of the configuration.",
"isSecret": true
},
{
"name": "A2UI5_MCP_SYSTEM_PASSWORD_CMD",
"description": "System mode: a shell command that prints the password (a keychain lookup) - instead of A2UI5_MCP_SYSTEM_PASSWORD."
},
{
"name": "A2UI5_MCP_SYSTEM_INSECURE_TLS",
"description": "System mode: set to 1 to accept a certificate that cannot be verified. NODE_EXTRA_CA_CERTS with the CA is the better fix."
},
{
"name": "GITHUB_TOKEN",
"description": "Optional token sent to api.github.com only, to raise the rate limit of the docs tree listing (GH_TOKEN is read too).",
"isSecret": true
}
]
}
],
"remotes": []
},
"dependencies": [],
"installTargets": [
"claude-code",
"claude-desktop",
"cursor",
"vscode",
"trae",
"cherry-studio",
"lingma",
"windsurf",
"cline",
"workbuddy"
],
"keywords": [],
"provenance": {
"origin": "official-mcp-registry",
"originalId": "io.github.abap2UI5/mcp-server",
"originalUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.abap2UI5%2Fmcp-server/versions/latest",
"isOfficial": true,
"status": "active"
}
}