为DA项目生成UE配置
用于在AEM边缘交付项目中启用和管理通用编辑器的MCP(模型上下文协议)服务器。此服务器自动化了分析块、生成配置和设置通用编辑器基础架构的过程。
安装
光标AI设置
- 首选
Cursor Settings→MCP - 添加一个
New global MCP server - 添加此配置:
{
"da-ue-enabler": {
"command": "npx",
"args": [
"https://github.com/kmurugulla/mcp-da-ue-enabler"
]
}
}对于当地发展:
{
"da-ue-enabler": {
"command": "node",
"args": [
"/absolute/path/to/mcp-da-ue-enabler/src/index.js"
]
}
}GitHub令牌设置(可选)
仅当代理在非eds项目文件夹中启动和/或想要分析来自远程GitHub存储库/分支或私有存储库的块时才需要。 注意-如果代理交互从EDS项目开始,工具将考虑来自本地项目的代码
- 首选https://github.com/settings/tokens/new
- 设置令牌名称(例如,“AEM UE Enabler-只读”)
- 选择范围:
- 公共仓库: public_repo - 私有仓库: repo
- 生成并复制令牌
- 添加到MCP配置中:
{
"da-ue-enabler": {
"command": "npx",
"args": [
"https://github.com/kmurugulla/mcp-da-ue-enabler"
],
"env": {
"GITHUB_TOKEN": "ghp_your_token_here"
}
}
}注: 该令牌仅用于从存储库读取块代码。不需要写访问权限。
用法
安装后,在Cursor中使用自然语言与MCP服务器交互:
Initialize Universal Editor in my project at /path/to/projectList all blocks in my projectAnalyze the accordion block structureGenerate UE configuration for the hero block许可证
麻省理工学院
仓库
https://github.com/kmurugulla/mcp-da-ue-enabler
