Token导航 LogoToken导航TokenDH.com
mcpw (Cortexd Labs) logo
开发工具stdio官方级别未说明来源级核验

mcpw (Cortexd Labs)

MCP Server

@modelcontextprotocol/inspector

将Windows系统管理工具作为MCP服务器通过stdio暴露,由neurond调用,不直接暴露到网络。

工具数

0

提示词数

0

GitHub Stars

0

资源数

0
安全工具C#命令行工具

安装说明

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

作者 / 组织

cortexd-labs

提供方

cortexd-labs

最后核验

2026/5/17 20:23

运行时

Node.js

快速接入

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

命令预览

npx -y @modelcontextprotocol/inspector

详细介绍

mcpw

Windows MCP服务器 --将Windows系统管理工具公开为 主控程序 (模型上下文协议)服务器 stdio.

设计用于调用 神经元 (联盟代理)。从不直接接触网络。

______________________________________________________________________

需求

  • Windows 10/11或Windows Server 2019+
  • .NET 10 SDK (构建)或。NET 10运行时(运行预构建)
  • 对于 iis.* 工具:安装了管理控制台的IIS
  • 对于 ad.* / gpo.* 工具:RSAT或加入域的计算机
  • 对于 hyperv.* 工具:已启用Hyper-V角色
  • 对于 container.* 工具:Docker桌面或Docker引擎(Windows容器)

______________________________________________________________________

构建与运行

# Run from source
dotnet run --project src/Mcpw

# Publish self-contained single file
dotnet publish src/Mcpw/Mcpw.csproj -c Release -r win-x64 --self-contained -p:PublishSingleFile=true -o publish/

# Install as Windows Service
.\deploy\install.ps1

______________________________________________________________________

测试

# All unit tests (no Windows dependencies — everything behind interfaces + mocks)
dotnet test

# Run with filter
dotnet test --filter "Category=Integration"

# Test with MCP Inspector
npx -y @modelcontextprotocol/inspector
# Transport: stdio | Command: .\publish\mcpw.exe

______________________________________________________________________

配置

mcpw读取 C:\ProgramData\mcpw\config.json 在启动时。缺少文件=所有默认值。

{
  "allowedPaths": ["C:\\Users", "C:\\inetpub", "C:\\ProgramData"],
  "blockedPaths": ["C:\\Windows\\System32\\config", "C:\\Windows\\NTDS"],
  "enabledDomains": ["system","process","service","log","network","file","storage","security","container","hardware","schedule","registry","iis"],
  "disabledDomains": ["ad","hyperv","gpo"],
  "privilegeTier": "operate"
}

域名不在 enabledDomains 返回 ToolNotFound。只部署机器需要的东西。

______________________________________________________________________

建筑

mcpw (stdio)
├── Server.cs          JSON-RPC 2.0 router, TextReader/TextWriter based
├── Daemon.cs          IHostedService + Windows Service host (SCM)
├── Config.cs          config.json loader with defaults
├── InputValidator.cs  injection/traversal/blocklist guard
├── IToolHandler.cs    interface for all tool domain classes
│
├── Types/             POCOs serialized in MCP responses
├── Windows/           OS abstractions (interface + implementation)
│   ├── IWmiClient         → WmiClient (System.Management)
│   ├── IEventLogAccess    → EventLogAccess (Eventing.Reader)
│   ├── IRegistryAccess    → RegistryAccess (Microsoft.Win32)
│   ├── IServiceControl    → ServiceControl (ServiceProcess)
│   └── IPowerShellHost    → PowerShellHost (Management.Automation)
│
└── Tools/             One class per domain, all testable via mocked interfaces
    ├── SystemTools    system.*
    ├── ProcessTools   process.*
    ├── ServiceTools   service.*
    ├── LogTools       log.*
    ├── NetworkTools   network.*
    ├── FileTools      file.*
    ├── IdentityTools  identity.*
    ├── StorageTools   storage.*
    ├── SecurityTools  security.*
    ├── ContainerTools container.*
    ├── HardwareTools  hardware.*
    ├── ScheduleTools  schedule.*
    ├── RegistryTools  registry.*   (Windows-only)
    ├── IISTools       iis.*        (Windows-only)
    ├── ADTools        ad.*         (Windows-only)
    ├── HyperVTools    hyperv.*     (Windows-only)
    └── GPOTools       gpo.*        (Windows-only)

______________________________________________________________________

特权级别

层级工具必填
阅读system.info, process.list, service.list, log.tail, network.*, storage.usage, registry.get, hardware.*任何用户
操作service.start/stop, process.kill, iis.pool.recycle, file.write, schedule.add本地管理员
领域ad.*, gpo.*, hyperv.*域名帐户
危险system.reboot, registry.set/delete, ad.user.resetpw明确的神经元政策批准

______________________________________________________________________

安全

  • 无网络暴露 --仅限stdio,神经元处理mTLS+身份验证
  • 输入验证 --注入字符被拒绝,路径遍历被阻止
  • 路径阻止列表C:\Windows\System32\config, C:\Windows\NTDS 总是被封锁
  • WQL参数化 --WMI查询中没有字符串插值
  • PowerShell约束语言模式 --所有嵌入式PS运行都受到限制
  • 注册表阻止列表 --SAM和安全配置单元被阻止

______________________________________________________________________

工具参考

tools.md 关于输入模式的完整工具参考。

______________________________________________________________________

相关

______________________________________________________________________

许可证

麻省理工学院

目录标签

目录标签

安全工具C#命令行工具Windows系统管理本地部署MCP协议系统工具

接入字段

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

stdio

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

none

运行时(runtime,运行环境)

Node.js

来源包(packageName,安装包名)

@modelcontextprotocol/inspector

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

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

0

权限和风险

stdionone部署方式未说明

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

安装前确认

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

来源信息

继续浏览同类 MCP