pwsh-exec-mcp

v1.0.1
io.github.Jason26214/pwsh-exec-mcp Checked 2 days ago Published 5 months ago

A minimal, transparent PowerShell 7 MCP for Windows — one tool: raw exit code, stdout, stderr.

Values you need

VariableWhat it is
PWSH_EXEC_DEFAULT_DIRoptional Default working directory for commands (defaults to %TEMP%/pwsh-exec).

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add pwsh-exec-mcp -- uvx pwsh-exec==1.0.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "pwsh-exec-mcp": {
      "args": [
        "pwsh-exec==1.0.1"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "pwsh-exec-mcp": {
      "args": [
        "pwsh-exec==1.0.1"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "pwsh-exec-mcp": {
      "args": [
        "pwsh-exec==1.0.1"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.pwsh-exec-mcp]
command = "uvx"
args = ["pwsh-exec==1.0.1"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: run_command.
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json