magicsword-mcp

v0.1.7
io.github.magicsword-io/magicsword-mcp Checked 2 days ago Published 28 days ago

Manage MagicSword endpoints, alerts, policies, and private intelligence through MCP.

Values you need

VariableWhat it is
MAGICSWORD_API_KEYrequired secret MagicSword Customer API key from Portal settings.

npm (npx)

Requires Node.js 18+

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

For AI agents

  1. Ask the user for: MAGICSWORD_API_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. 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