# Umair/stalemap [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/Umair/stalemap  
**GitHub Stars:** 106  
**npm Downloads (last month):** 451  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/umair-stalemap

## Description
Tells coding agents which npm dependencies changed after their training cutoff, and what changed: ranked notes in AGENTS.md/CLAUDE.md, a post-edit guard that explains type errors caused by changed APIs, and a searchchanges tool over type diffs, release notes and upgrade guides. npx stalemap setup --agent

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "stalemap": {
    "command": "npx",
    "args": ["-y","stalemap","mcp"]
  }
}
```

## Documentation

## What Umair/stalemap does

Umair/stalemap helps coding agents account for dependency changes that occurred after the model's training data cutoff. It examines the versions a project uses, determines what the model was likely aware of, and produces concise migration notes for APIs that changed in between.

The output can be written between managed markers in `AGENTS.md` or `CLAUDE.md`, allowing an agent to see the relevant warnings at the start of a session. The project also provides an edit-time guard and an MCP interface for investigating changes on demand.

## How it works

The tool identifies a model from its command-line option or supported agent configuration, then obtains a training cutoff from models.dev or a built-in fallback. A custom date can be supplied with `--cutoff`, and `--margin` controls how far before that date a release must have been published to count as known.

It scans imported direct dependencies and packages referenced by recognized configuration files. With `--all`, it checks every direct dependency. Pinned versions are read from installed packages or npm, pnpm, Yarn, and Bun lockfiles.

For each package, stalemap compares TypeScript declaration files using the compiler API. It detects removed, renamed, or relocated exports, changed parameters and options, and newly deprecated APIs. It can also inspect changelogs, GitHub Releases, upgrade guides, and optional verified examples. Notes about APIs and configuration used by the project are prioritized within a default token budget that can be adjusted with `--budget`.

After edits, the guard runs the project's own `tsc` check. It prioritizes dependency-related errors with matching migration notes, then reports changes that still compile, such as moved configuration keys or APIs whose behavior changed. It can also search relevant type changes, release notes, and upgrade-guide sections when no direct note explains an error.

## Setup and configuration

Run `npx stalemap setup --agent <agent>` for supported agent setup. The command can configure `cursor`, `codex`, `opencode`, or `claude`; `--dry-run` prints the proposed changes without writing them. Setup registers the MCP server, adds project notes, and installs the post-edit guard while preserving configuration entries it did not create.

For Claude Code, install the plugin through its marketplace. The plugin adds session-start and post-edit hooks, the MCP server, and skills for synchronizing notes or checking package changes. The hooks invoke `npx -y stalemap@latest`.

Any MCP client can launch the server with `npx -y stalemap@latest mcp`. The command-line interface also supports previewing changes, synchronizing notes, checking for stale notes, and running the guard manually. A GitHub Action can fail CI when notes are missing or stale, or comment on pull requests that change dependencies.

## Tools and capabilities

The MCP tools are:

- `search_changes`: search changes using a natural-language request and return relevant sources.
- `package_changes`: inspect changes for a package.
- `project_changes`: analyze dependency changes for the project.
- `check_notes`: check whether the project's notes are present and current.

Additional capabilities include ranked notes for `AGENTS.md` or `CLAUDE.md`, local scanning of JavaScript and TypeScript usage, type-diff analysis, release-note matching, optional upgrade-guide processing, and verified Before-to-After examples when enabled.

## Limitations and notes

The project is early and maintained by one person. Cursor, Codex, and OpenCode setup has not been tested in real installations. Cursor does not currently pass post-tool-use hook context to the model, so its setup adds a stop-hook fallback for unreported findings. Claude Code reads `CLAUDE.md`; projects that keep notes in `AGENTS.md` can reference that file from `CLAUDE.md` or select another target.

_Full upstream README: https://allmcps.com/mcp/umair-stalemap/readme_

