npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@kage-core/kage-graph-mcp

v1.1.23

Published

Local-first repo memory, code graph, and recall MCP server for coding agents

Readme

Kage Repo-Recall MCP

Local-first repo memory, code graph, and recall tools for AI coding agents.

Kage helps agents stop rediscovering the same project context. It stores reviewable repo memory, builds generated recall/code indexes, and exposes the result through an MCP server plus a CLI.

Install

npm install -g @kage-core/kage-graph-mcp

Set up Codex:

cd your-repo
kage setup codex --project . --write
kage init --project .
kage setup verify-agent --agent codex --project .

Set up Claude Code:

cd your-repo
kage setup claude-code --project . --write
kage init --project .
kage setup verify-agent --agent claude-code --project .

Restart your agent once after setup so MCP tools reload.

What Kage Gives Agents

  • repo-local memory for decisions, runbooks, bug fixes, gotchas, conventions, and code explanations
  • a code graph for files, symbols, imports, calls, routes, tests, and packages
  • memory-code links so project knowledge points at the code it affects
  • AGENTS.md bootstrap instructions so agents recall context automatically
  • a local viewer for memory, code graph, metrics, evidence, and review state
  • review and validation commands for stale or risky memory

No hosted service, external database, or API key is required.

Common Commands

kage setup list
kage init --project .
kage recall "how do I run tests" --project .
kage recall "how do I run tests" --project . --json --explain
kage code-graph "auth routes tests" --project .
kage learn --project . --learning "Use npm test after parser changes."
kage refresh --project .
kage pr check --project .
kage metrics --project . --json
kage audit --project . --json
kage inbox --project . --json
kage viewer --project .

For stale or wrong memory:

kage feedback --project . --packet <packet-id> --kind stale
kage gc --project . --dry-run

MCP Server

The package exposes:

  • kage-graph-mcp: stdio MCP server
  • kage: CLI

Typical MCP clients should use the setup command instead of hand-writing config:

kage setup codex --project . --write
kage setup claude-code --project . --write
kage setup generic-mcp --project .

Supported setup targets include Codex, Claude Code, Cursor, Windsurf, Gemini CLI, OpenCode, Cline, Goose, Roo Code, Kilo Code, Claude Desktop, Aider, and generic MCP clients.

Storage Model

Kage keeps learned memory separate from generated code facts.

| Layer | Path | Purpose | |---|---|---| | Packets | .agent_memory/packets/ | durable repo memory | | Indexes | .agent_memory/indexes/ | rebuildable recall indexes | | Memory graph | .agent_memory/graph/ | packet relationships and evidence | | Structural map | .agent_memory/structural/ | files, symbols, imports | | Code graph | .agent_memory/code_graph/ | source-derived code facts | | Metrics | .agent_memory/metrics.json | readiness, quality, coverage |

Repo-local packets are git-visible and reviewable. Generated indexes and graphs are rebuildable.

Performance Notes

Kage is optimized so repeat work scales with changed files, not the whole repo:

  • read-only recall reuses fresh graph artifacts
  • unchanged structural file facts are reused
  • generated graphs are compact and avoid duplicated structural JSON
  • generated/vendor/cache paths are ignored
  • huge files are represented safely instead of deeply expanded
  • recall builds lookup maps once per query instead of repeatedly scanning graph edges for every memory packet

Viewer

Open a local viewer for the current repo:

kage viewer --project .

Hosted demo:

https://kage-core.github.io/Kage/viewer/

Development

npm install
npm test

Build:

npm run build

Package smoke check:

npm pack --dry-run

License

GPL-3.0-only.