# stalemap

Flags npm package changes released after an agent's training cutoff. It keeps assistants from writing deprecated API calls in modern JavaScript codebases.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 102
- Author: Umair
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Umair/stalemap
- Updated: 2026-10-21
- HTML: https://affpapa.org/en/nevibecode/mcp/stalemap

## What it does

Coding models assume APIs match their training cutoff date. When modern repositories pin newer versions, agents generate removed parameters, broken imports, or outdated conventions.

stalemap compares installed dependencies against cutoff dates from models.dev or explicit settings. It exposes MCP tools including `search_changes`, `package_changes`, `project_changes`, and `check_notes`, while writing summary blocks directly into `AGENTS.md` or `CLAUDE.md`.

The utility targets JavaScript and TypeScript projects. For custom model awareness, you must configure the `STALEMAP_MODEL` environment variable upon registration.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `STALEMAP_MODEL` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env STALEMAP_MODEL=<STALEMAP_MODEL> --transport stdio stalemap -- npx -y stalemap
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add stalemap --env STALEMAP_MODEL=<STALEMAP_MODEL> -- npx -y stalemap
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "stalemap": {
            "command": "npx",
            "args": [
                "-y",
                "stalemap"
            ],
            "env": {
                "STALEMAP_MODEL": "<STALEMAP_MODEL>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "stalemap": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "stalemap"
            ],
            "env": {
                "STALEMAP_MODEL": "<STALEMAP_MODEL>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e STALEMAP_MODEL=<STALEMAP_MODEL> stalemap npx -y stalemap
```
Replace <…> with your own values

## When to use it
- Stop agents from generating removed methods from newer npm dependencies
- Query recent library API modifications using the search_changes tool
- Export fresh package diff summaries into AGENTS.md or CLAUDE.md
- Surface type discrepancies caused by post-cutoff library updates

## Example prompts
- Check stalemap to see what broke in our zod dependency past your training cutoff
- Run search_changes to find the current syntax for next.config rewrites
- Review package_changes to inspect breaking edits across our dependencies

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
