# io.github.leejpsd/nextjs-cache-handler-mcp (npm · @leejpsd/nextjs-cache-handler-mcp)

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

- Trust score: 73/100 (medium)
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-08-03

## Components

- npm · `@leejpsd/nextjs-cache-handler-mcp`: 73/100 (this document), [markdown](https://verifymcp.io/servers/leejpsd-nextjs-cache-handler-mcp/leejpsd-nextjs-cache-handler-mcp.md), [page](https://verifymcp.io/servers/leejpsd-nextjs-cache-handler-mcp/leejpsd-nextjs-cache-handler-mcp)

## Channel facts

- Registry: `npm`
- Package: `@leejpsd/nextjs-cache-handler-mcp`
- Version: `0.1.2`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-08-03.

- **Supply Chain Security**: 87/100
  - No malware found by supply-chain analysis.
  - Only part of the dependency tree could be resolved (102 of 106), so this covers what we could see, not the whole tree.
  - No install/post-install scripts declared.
  - Only part of the dependency tree could be resolved (102 of 106), so this covers what we could see, not the whole tree.
- **Provenance & Transparency**: 97/100
  - Source repository is publicly reachable at the declared URL.
  - Cryptographically verified build provenance (signed, bound to leejpsd/nextjs-cache-handler).
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 1 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 71/100
  - AI-judged instruction clarity (good).
  - Tool/resource definitions use about 404 tokens (~57/item across 7 items; 7 tools + 0 resources), lean.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 0/100
  - Stability not yet verified: not enough scan history yet (needs a 30-day window).
- **Tool Coverage**: 78/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 33% of tool parameters carry a description.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

**Unverified: 1 category.** A category scored 0 because we could not verify it: a data source with nothing on this package, evidence we could not reach, or a check we could not run. We only credit what we can confirm.

## Install

### Claude

```bash
claude mcp add leejpsd-nextjs-cache-handler-mcp -- npx -y @leejpsd/nextjs-cache-handler-mcp
```

### Codex

```bash
codex mcp add leejpsd-nextjs-cache-handler-mcp -- npx -y @leejpsd/nextjs-cache-handler-mcp
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "leejpsd-nextjs-cache-handler-mcp": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@leejpsd/nextjs-cache-handler-mcp"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add leejpsd-nextjs-cache-handler-mcp --command npx --arg -y --arg @leejpsd/nextjs-cache-handler-mcp
```

### Hermes

```yaml
mcp_servers:
  leejpsd-nextjs-cache-handler-mcp:
    command: "npx"
    args: ["-y", "@leejpsd/nextjs-cache-handler-mcp"]
```

### Other

```json
{
  "mcpServers": {
    "leejpsd-nextjs-cache-handler-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@leejpsd/nextjs-cache-handler-mcp"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-08-02 (score 73)

First indexed and scored.

## MCP tools (7)

### `cache_health` (~29 tokens)

Ping Redis and summarize cache key counts per layer/kind. First tool to run when debugging cache issues.

### `cache_search` (~64 tokens)

Scan cache keys by glob pattern (e.g. 'next-incremental:entry:*/blog*'). Returns up to `limit` keys.

Input parameters:

- `limit` (integer)
- `pattern` (string, required): Redis MATCH glob, e.g. next-cache:entry:*

### `cache_inspect` (~49 tokens)

Decode a cache entry: kind, timestamps, tags, TTL, sizes, compression. Values are summarized, never dumped in full.

Input parameters:

- `key` (string, required): Full Redis key of a cache entry

### `tag_state` (~64 tokens)

Show invalidation state for a tag across BOTH cache layers: the ISR tag state (stale/expired timestamps) and the 'use cache' tag-expiration marker. Answers 'is this tag invalidated right now, and since when?'

Input parameters:

- `tag` (string, required)

### `explain_key` (~29 tokens)

Parse a Redis key into layer / kind / namespace / cache key.

Input parameters:

- `key` (string, required)

### `simulate_swr` (~82 tokens)

Given entry timing values, classify freshness the way the handler does (fresh / stale / expired) and explain what a read would do.

Input parameters:

- `expireSec` (number, required): 0 means 'never hard-expire'
- `nowMs` (number)
- `revalidateSec` (number, required)
- `timestampMs` (number, required): entry.timestamp (ms epoch)

### `invalidate_tag` (~87 tokens)

Invalidate a tag across both layers. DRY-RUN by default: shows exactly what would be written/deleted. Pass confirm=true to execute. mode 'soft' = stale-while-revalidate (revalidateTag(tag,'max') semantics); 'hard' = delete entries now.

Input parameters:

- `confirm` (boolean)
- `mode` (string)
- `tag` (string, required)

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/leejpsd-nextjs-cache-handler-mcp/leejpsd-nextjs-cache-handler-mcp#diagnostics

## Score history

- 2026-08-03: 73
- 2026-08-02: 73

## Links

- npm package: https://www.npmjs.com/package/@leejpsd/nextjs-cache-handler-mcp
- Socket report: https://socket.dev/npm/package/@leejpsd/nextjs-cache-handler-mcp
- Repository: https://github.com/leejpsd/nextjs-cache-handler
- Changelog RSS feed: https://verifymcp.io/servers/leejpsd-nextjs-cache-handler-mcp/leejpsd-nextjs-cache-handler-mcp/changelog.xml
- Changelog JSON feed: https://verifymcp.io/servers/leejpsd-nextjs-cache-handler-mcp/leejpsd-nextjs-cache-handler-mcp/changelog.json
- HTML version of this page: https://verifymcp.io/servers/leejpsd-nextjs-cache-handler-mcp/leejpsd-nextjs-cache-handler-mcp
