nextjs-cache-handler-mcp

v0.1.2
io.github.leejpsd/nextjs-cache-handler-mcp Checked 1 hour ago Published 4 months ago

Inspect and operate Next.js Redis caches: health, tag state, SWR simulation, safe invalidation.

Values you need

VariableWhat it is
REDIS_URLrequired secret Redis connection string the cache handler uses
DEPLOYMENT_VERSIONoptional Deploy namespace (recommended)
HASH_TAGoptional Set 'true' when handlers use hashTag: true (Redis Cluster)

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add nextjs-cache-handler-mcp -e 'REDIS_URL=<REDIS_URL>' -- npx -y @leejpsd/nextjs-cache-handler-mcp@0.1.2
Add to claude_desktop_config.json
{
  "mcpServers": {
    "nextjs-cache-handler-mcp": {
      "args": [
        "-y",
        "@leejpsd/nextjs-cache-handler-mcp@0.1.2"
      ],
      "command": "npx",
      "env": {
        "REDIS_URL": "<REDIS_URL>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "nextjs-cache-handler-mcp": {
      "args": [
        "-y",
        "@leejpsd/nextjs-cache-handler-mcp@0.1.2"
      ],
      "command": "npx",
      "env": {
        "REDIS_URL": "<REDIS_URL>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "REDIS_URL",
      "id": "redis-url",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "nextjs-cache-handler-mcp": {
      "args": [
        "-y",
        "@leejpsd/nextjs-cache-handler-mcp@0.1.2"
      ],
      "command": "npx",
      "env": {
        "REDIS_URL": "${input:redis-url}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.nextjs-cache-handler-mcp]
command = "npx"
args = ["-y", "@leejpsd/nextjs-cache-handler-mcp@0.1.2"]
env = { "REDIS_URL" = "<REDIS_URL>" }

For AI agents

  1. Ask the user for: REDIS_URL. 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: cache_health, cache_search, cache_inspect, tag_state, explain_key, simulate_swr, invalidate_tag.
  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