Power Strip Security

v0.2.0
io.github.AlbertBalestrini/power-strip-security Checked 11 hours ago Published 1 month ago

Prompt-injection shield for agents: read pages, scan content, audit MCP servers and skills.

Values you need

VariableWhat it is
PSS_PRIVATE_KEYrequired secret Private key (0x...) of a dedicated wallet with a little USDC on Base
PSS_MAX_SPEND_USDoptional Spending cap per session in US dollars (default 1)

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add power-strip-security -e 'PSS_PRIVATE_KEY=<PSS_PRIVATE_KEY>' -- npx -y power-strip-security-mcp@0.2.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "power-strip-security": {
      "args": [
        "-y",
        "power-strip-security-mcp@0.2.0"
      ],
      "command": "npx",
      "env": {
        "PSS_PRIVATE_KEY": "<PSS_PRIVATE_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "power-strip-security": {
      "args": [
        "-y",
        "power-strip-security-mcp@0.2.0"
      ],
      "command": "npx",
      "env": {
        "PSS_PRIVATE_KEY": "<PSS_PRIVATE_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "PSS_PRIVATE_KEY",
      "id": "pss-private-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "power-strip-security": {
      "args": [
        "-y",
        "power-strip-security-mcp@0.2.0"
      ],
      "command": "npx",
      "env": {
        "PSS_PRIVATE_KEY": "${input:pss-private-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.power-strip-security]
command = "npx"
args = ["-y", "power-strip-security-mcp@0.2.0"]
env = { "PSS_PRIVATE_KEY" = "<PSS_PRIVATE_KEY>" }

Remote (hosted)

Run in a terminal
claude mcp add --transport http power-strip-security https://api.powerstripsecurity.workers.dev/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "power-strip-security": {
      "args": [
        "-y",
        "mcp-remote",
        "https://api.powerstripsecurity.workers.dev/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "power-strip-security": {
      "url": "https://api.powerstripsecurity.workers.dev/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "power-strip-security": {
      "type": "http",
      "url": "https://api.powerstripsecurity.workers.dev/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.power-strip-security]
command = "npx"
args = ["-y", "mcp-remote", "https://api.powerstripsecurity.workers.dev/mcp"]

For AI agents

  1. Ask the user for: PSS_PRIVATE_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: read_url, check_prompt_injection, audit_mcp_server, audit_agent_skill.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json