Token导航 LogoToken导航TokenDH.com
Custom Sitecore MCP Server logo
开发工具未说明官方级别未说明来源级核验

Custom Sitecore MCP Server

MCP Server

一个全面的模型上下文协议(MCP)服务器,使Claude和其他LLM应用程序能够在Windows系统上执行PowerShell命令、脚本和系统操作。

工具数

0

提示词数

0

GitHub Stars

0

资源数

0
PowerShellJavaScriptClaudeLLM应用Claude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

MartinMiles

提供方

MartinMiles

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

PowerShell MCP服务器

一个全面的模型上下文协议(MCP)服务器,使Claude和其他LLM应用程序能够在Windows系统上执行PowerShell命令、脚本和执行系统操作。

🛠️ 可用工具

PowerShell工具

  • sym-search-replace -在Sitecore环境中对内容执行搜索和替换操作

脚本

📋 先决条件

  • 视窗 10/11或Windows Server 2016+
  • Node.js 18.0.0或更高
  • PowerShell 5.1+或PowerShell Core 7+
  • 网站核心 启用SPE远程传输的环境

环境变量

在启动服务器之前,您必须在下面设置 .env 文件:

# PowerShell Script Path
DEFAULT_SEARCH_REPLACE_SCRIPT=c:\Projects\Symposium\Custom-Sitecore-MCP-Server\examples\SearchReplace-SitecoreContent.ps1

# Sitecore SPE Remoting Configuration
SITECORE_CONNECTION_URI=https://xmcloudcm.localhost/
SITECORE_USERNAME=sitecore\speremoting
SPE_REMOTING_SECRET=YOUR_SPE_REMOTING_SECRET

🚀 快速设置

# Clone the repository
git clone https://github.com/Zont-Innovation/Custom-Sitecore-MCP-Server.git
cd Custom-Sitecore-MCP-Server

# Install dependencies
npm install

# Safely add to existing configuration
node recovery.js add-powershell

# Restart your MCP client (ie. Claude Desktop)

📖 使用示例

问克劳德:

  • *“将/SiteCore/content/Zont下的所有字段值‘SiteCore’替换为‘SiteCore’”*
  • …您可能想要实现的任何其他工具

🔧 命令

服务器命令

# Start the server
npm start

# Test components
npm test

# Run diagnostics
node diagnose.bat

# Start server directly
node src/server.js

📁 项目结构

Custom-Sitecore-MCP-Server/
├── examples/               # Tool PowerShell script
├── src/
│   ├── server.js           # Main MCP server
│   ├── tools/              # Tool implementations
│   │   ├── sym-tools.js
│   └── utils/              # Utility modules
│       └── system-utils.js
├── scripts/                # Setup utilities
└── README.md

⚙️ Claude桌面配置

服务器使用此配置:

{
  "mcpServers": {
    "powershell": {
      "command": "node",
      "args": ["c:/Projects/Symposium/Custom-Sitecore-MCP-Server/src/server.js"],
      "env": {}
    }
  }
}

配置位置: %APPDATA%/Claude/claude_desktop_config.json

🛡️ 安全特性

  • 安全执行:用途 -ExecutionPolicy Bypass-NoProfile 出于安全考虑
  • 输入验证:所有输入均已Zod模式验证
  • 会话管理:PowerShell会话在使用后已正确处理
  • 错误处理:全面的错误处理可防止系统问题
  • 日志记录:记录到stderr的所有操作(不干扰JSON-RPC)

🐛 故障排除

服务器无法启动

# Check Node.js version (need 18+)
node --version

# Check dependencies
npm install

# Test components
node test-server.js

Claude桌面集成问题

# Run setup again
setup.bat

# Check configuration
type "%APPDATA%/Claude/claude_desktop_config.json"

# Restart Claude Desktop completely

PowerShell执行问题

# Test PowerShell
powershell -Command "Get-Date"

# Check execution policy
Get-ExecutionPolicy

# Run diagnostics
node diagnose.bat

目录标签

目录标签

PowerShellJavaScriptClaudeLLM应用本地部署Windows系统操作脚本执行自动化工具

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP