返回市场
麦普赛可罗服务器

麦普赛可罗服务器

作者:Antonytm34 星标更新:2025-10-27

项目介绍

Model Context Protocol 服务器用于 Sitecore

构建 欢迎提交 PR smithery 徽章

实现工具

  • GraphQL API

    • introspection-grahpql-{schema}: 返回 GraphQL 模式
    • query-graphql-{schema}: 执行 GraphQL 查询
  • 项目服务 API

    • item-service-get-item: 根据 ID 返回一个项目
    • item-service-get-item-children: 根据 ID 返回项目的子项
    • item-service-get-item-by-path: 根据路径返回一个项目
    • item-service-create-item: 通过提供模板 ID 和父路径创建一个项目
    • item-service-edit-item: 根据 ID 编辑一个项目
    • item-service-delete-item: 根据 ID 删除一个项目
    • item-service-search-items: 搜索项目
    • item-service-run-stored-query: 运行存储查询
    • item-service-run-stored-search: 运行存储搜索
    • 组合项目服务 API
      • item-service-get-languages: 返回实例中的 Sitecore 语言
      • item-service-get-item-descendants: 根据 ID 返回项目的后代
  • Sitecore PowerShell

    • get-powershell-documentation: 返回描述所有 Sitecore PowerShell 命令的文档
    • run-powershell-script: 运行 PowerShell 脚本并返回输出
    • 安全性
      • security-get-current-user: 返回当前用户
      • security-get-user-by-identity: 根据名称返回用户
      • security-get-user-by-filter: 根据过滤器返回用户
      • security-new-domain: 创建新域
      • security-new-user: 创建新用户
      • security-new-role: 创建新角色
      • security-remove-domain: 移除域
      • security-remove-user: 移除用户
      • security-remove-role: 移除角色
      • security-get-domain: 返回域
      • security-get-domain-by-name: 根据名称返回域
      • security-get-role-by-identity: 根据名称返回角色
      • security-get-role-by-filter: 根据过滤器返回角色
      • security-get-role-member: 返回角色成员
      • security-enable-user: 启用用户
      • security-disable-user: 禁用用户
      • security-set-user-password: 更改用户的密码
      • security-lock-item-by-id: 根据 ID 锁定项目
      • security-unlock-item-by-id: 根据 ID 解锁项目
      • security-lock-item-by-path: 根据路径锁定项目
      • security-unlock-item-by-path: 根据路径解锁项目
      • security-protect-item-by-id: 根据 ID 保护项目
      • security-protect-item-by-path: 根据路径保护项目
      • security-unprotect-item-by-id: 根据 ID 取消保护项目
      • security-unprotect-item-by-path: 根据路径取消保护项目
      • security-test-account: 测试账户
      • security-unlock-user: 解锁用户
        • 测试覆盖率需要使用错误密码登录用户
      • security-login-user: 登录用户。被SPE问题阻止。
      • security-logout-user: 注销用户。被SPE问题阻止。
      • security-export-user: 导出用户。被SPE问题阻止。
      • security-import-user: 导入用户。被SPE问题阻止。
      • security-export-role: 导出角色。被SPE问题阻止。
      • security-import-role: 导入角色。被SPE问题阻止。
      • security-add-role-member: 将成员添加到角色中
      • security-remove-role-member: 从角色中移除成员
      • security-test-item-acl-by-id: 根据 ID 测试项目 ACL
      • security-test-item-acl-by-path: 根据路径测试项目 ACL
      • security-add-item-acl-by-id: 根据 ID 添加项目 ACL
      • security-add-item-acl-by-path: 根据路径添加项目 ACL
      • security-clear-item-acl-by-id: 根据 ID 清除项目 ACL
      • security-clear-item-acl-by-path: 根据路径清除项目 ACL
      • security-set-item-acl-by-id: 根据 ID 设置项目 ACL
      • security-set-item-acl-by-path: 根据路径设置项目 ACL
    • 提供者
      • provider-get-item-by-id: 根据 ID 返回一个项目
      • provider-get-item-by-path: 根据路径返回一个项目
      • provider-get-item-by-query: 根据查询返回一个项目
      • provider-get-item-by-path: 根据路径返回一个项目
    • 展示
      • presentation-get-layout-by-id: 根据 ID 返回项目展示布局
      • presentation-get-layout-by-path: 根据路径返回项目展示布局
      • presentation-set-layout-by-id: 根据 ID 设置项目展示布局
      • presentation-set-layout-by-path: 根据路径设置项目展示布局
      • presentation-reset-layout-by-id: 根据 ID 重置项目展示布局
      • presentation-reset-layout-by-path: 根据路径重置项目展示布局
      • presentation-merge-layout-by-id: 根据项目 ID 合并最终和共享布局
      • presentation-merge-layout-by-path: 根据项目路径合并最终和共享布局
      • presentation-get-layout-device: 获取指定设备的布局
      • presentation-get-default-layout-device: 获取默认布局
      • presentation-get-rendering-by-id: 根据项目 ID 获取渲染定义
      • presentation-get-rendering-by-path: 根据项目路径获取渲染定义
      • presentation-remove-rendering-by-path: 根据所有者的项目路径从项目中删除渲染
      • presentation-remove-rendering-by-id: 根据所有者的项目 ID 从项目中删除渲染
      • presentation-add-rendering-by-path: 根据路径向指定项目的展示中添加渲染
      • presentation-add-rendering-by-id: 根据项目 ID 向指定项目的展示中添加渲染
      • presentation-set-rendering-by-path: 使用新值更新由项目路径指定的渲染
      • presentation-set-rendering-by-id: 使用新值更新由项目 ID 指定的渲染
      • presentation-switch-rendering-by-id: 使用替代渲染替换由项目 ID 指定的现有渲染
      • presentation-switch-rendering-by-path: 使用替代渲染替换由路径指定的现有渲染
      • presentation-switch-rendering-by-unique-id: 使用替代渲染替换由唯一 ID 指定的现有渲染
      • presentation-get-placeholder-setting-by-id: 获取由 ID 指定的项目上分配的占位符设置
      • presentation-get-placeholder-setting-by-path: 获取由路径指定的项目上分配的占位符设置
      • presentation-add-placeholder-setting-by-id: 向由 ID 指定的项目添加占位符设置
      • presentation-add-placeholder-setting-by-path: 向由路径指定的项目添加占位符设置
      • presentation-remove-placeholder-setting-by-id: 从由 ID 指定的项目中移除占位符设置
      • presentation-remove-placeholder-setting-by-path: 从由路径指定的项目中移除占位符设置
      • presentation-get-rendering-parameter-by-id: 获取由 ID 指定的项目的渲染参数
      • presentation-get-rendering-parameter-by-path: 获取由路径指定的项目的渲染参数
      • presentation-remove-rendering-parameter-by-id: 从放置在由 ID 指定的项目上的渲染中移除指定的渲染参数
      • presentation-remove-rendering-parameter-by-path: 从放置在由路径指定的项目上的渲染中移除指定的渲染参数
      • presentation-set-rendering-parameter-by-id: 更新放置在由 ID 指定的项目上的渲染中的指定渲染参数
      • presentation-set-rendering-parameter-by-path: 更新放置在由路径指定的项目上的渲染中的指定渲染参数
    • 索引
      • indexing-initialize-search-index: 初始化一个或多个搜索索引
      • indexing-get-search-index: 返回一个搜索索引
      • indexing-find-item: 在搜索索引中查找一个项目
      • indexing-suspend-search-index: 暂停一个或多个正在运行的搜索索引
      • indexing-stop-search-index: 停止一个或多个正在运行的搜索索引
      • indexing-resume-search-index: 恢复一个或多个暂停的搜索索引
      • indexing-initialize-search-index-item-by-id: 重建具有指定根项目的给定树的索引
      • indexing-initialize-search-index-item-by-path: 重建具有指定根项目的给定树的索引
      • indexing-remove-search-index-item-by-id: 从搜索索引中移除具有指定 ID 的项目
      • indexing-remove-search-index-item-by-path: 从搜索索引中移除具有指定路径的项目
      • indexing-initialize-item: 使用 PowerShell 自动属性初始化每个字段的项目。 跳过,对 MCP 服务器无价值。
    • 公共
      • common-add-base-template-by-id: 根据 ID 向模板项目添加基础模板
      • common-add-base-template-by-path: 根据路径向模板项目添加基础模板
      • common-add-item-version-by-id: 根据其 ID 在新语言中基于现有语言版本创建项目的版本
      • common-add-item-version-by-path: 根据其路径在新语言中基于现有语言版本创建项目的版本
      • common-convert-from-item-clone-by-id: 根据 ID 将项目从克隆转换为完全独立的项目
      • common-convert-from-item-clone-by-path: 根据路径将项目从克隆转换为完全独立的项目
      • common-get-archive: 获取 Sitecore 数据库存档
      • common-get-archive-item: 获取指定存档中的项目列表
      • common-get-cache: 获取有关 Sitecore 缓存的信息
      • common-get-database: 获取有关 Sitecore 数据库的信息
      • common-get-item-field-by-id: 根据 ID 获取项目字段作为名称、字段或模板字段
      • common-get-item-field-by-path: 根据路径获取项目字段作为名称、字段或模板字段
      • common-get-item-clone-by-id: 根据 ID 获取指定项目的克隆
      • common-get-item-clone-by-path: 根据路径获取指定项目的克隆
      • common-get-item-reference-by-id: 根据 ID 获取 Sitecore 项目的引用(它在哪里被使用)
      • common-get-item-reference-by-path: 根据路径获取 Sitecore 项目的引用(它在哪里被使用)
      • common-get-item-referrer-by-id: 获取引用指定项目的项目(哪些项目引用它)
      • common-get-item-referrer-by-path: 获取引用指定项目的项目(哪些项目引用它)
      • common-get-item-template-by-id: 根据 ID 获取 Sitecore 项目的模板信息
      • common-get-item-template-by-path: 根据路径获取 Sitecore 项目的模板信息
      • common-get-item-workflow-event-by-id: 获取指定项目的流程历史记录条目
      • common-get-item-workflow-event-by-path: 获取指定项目的流程历史记录条目
      • common-get-sitecore-job: 获取当前 Sitecore 作业列表
      • common-invoke-workflow-by-id: 根据 ID 执行 Sitecore 项目的流程操作
      • common-invoke-workflow-by-path: 根据路径执行 Sitecore 项目的流程操作
      • common-new-item-clone-by-id: 根据提供的 ID 创建新的项目克隆
      • common-new-item-clone-by-path: 根据提供的路径创建新的项目克隆
      • common-new-item-workflow-event-by-id: 根据 ID 在 Sitecore 项目的流程历史记录中创建新的条目
      • common-new-item-workflow-event-by-path: 根据路径在 Sitecore 项目的流程历史记录中创建新的条目
      • common-publish-item-by-id: 根据 ID 发布 Sitecore 项目
      • common-publish-item-by-path: 根据路径发布 Sitecore 项目
      • common-remove-archive-item: 永久地从指定存档中移除项目
      • common-remove-base-template-by-id: 根据 ID 从模板项目中移除基础模板
      • common-remove-base-template-by-path: 根据路径从模板项目中移除基础模板
      • common-remove-item-version-by-id: 根据 ID 移除 Sitecore 项目的版本
      • common-remove-item-version-by-path: 根据路径移除 Sitecore 项目的版本
      • common-reset-item-field-by-id: 根据 ID 重置项目字段,指定为名称、字段或模板字段
      • common-reset-item-field-by-path: 根据路径重置项目字段,指定为名称、字段或模板字段
      • common-restart-application: 重启 Sitecore 应用程序池
      • common-restore-archive-item: 将项目恢复到原始数据库
      • common-set-item-template-by-id: 根据 ID 设置项目模板
      • common-set-item-template-by-path: 根据路径设置项目模板
      • common-test-base-template-by-id: 检查项目是否继承自指定的模板
      • common-test-base-template-by-path: 检查项目是否继承自指定的模板
      • common-update-item-referrer-by-id: 更新指向指定项目的引用,使其指向新目标或移除链接
      • common-update-item-referrer-by-path: 更新指向指定项目的引用,使其指向新目标或移除链接
    • 日志
      • logging-get-logs: 从日志目录检索 Sitecore 日志,并带有过滤选项
  • Sitecore CLI

    • sitecore-cli-documentation: 获取 Sitecore CLI 文档以提供更多上下文

工具选择

AI 代理可能对其可以使用的工具数量有限制。请确保您已禁用了不需要的工具。这将使您的代理更快、更便宜且更高效。

安装

将以下 Model Context Protocol 服务器添加到您的 Cursor、VS Code 或 Claude:

    "Sitecore": {
        "type": "stdio",
        "command": "npx",
        "args": ["@antonytm/mcp-sitecore-server@latest"],
        "env": {
          "TRANSPORT": "stdio",
          "GRAPHQL_ENDPOINT": "https://xmcloudcm.localhost/sitecore/api/graph/",
          "GRAPHQL_SCHEMAS": "edge,master,core",
          "GRAPHQL_API_KEY":