mhprol/win-cli-mcp-server
Hardened MCP server for Windows CLI (PowerShell, CMD, Git Bash) and SSH. Maintained fork of @simonb97/server-win-cli.
Platform-specific configuration:
{
"mcpServers": {
"win-cli-mcp-server": {
"command": "npx",
"args": [
"-y",
"win-cli-mcp-server"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
Hardened MCP server for Windows CLI and SSH interactions. Provides controlled access to PowerShell, CMD, Git Bash, and remote systems via SSH from MCP clients like Claude Desktop.
This is a maintained, hardened fork:
[SimonB97/win-cli-mcp-server](https://github.com/SimonB97/win-cli-mcp-server) (original, development stalled) -> [delorenj/super-win-cli-mcp-server](https://github.com/delorenj/super-win-cli-mcp-server) (super-win-cli variant) -> this repo (bug fixes, hardening, dependency updates)
The original project is no longer actively maintained. This fork fixes critical bugs, updates dependencies, and is used in production daily.
windowsHide: true to child_process.spawn(). Shell windows no longer flash on screen during MCP execution.Client instance, causing memory leaks. Fixed by creating a fresh Client on each reconnect and using .once() for connection-scoped events.output || errorOutput). Now both streams are combined.config.json caused JSON.parse() to throw, silently falling back to restrictive defaults. BOM is now stripped before parsing.@modelcontextprotocol/server-memory-dynamic pointed to file:../servers/src/memory (author's local dev path). Removed.password or privateKeyPath. If neither was specified, the entire config load failed. Now optional -- ssh2 falls back to ssh-agent automatically.Loading reviews...