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

@onrelay/mcp

v0.7.0

Published

Relay MCP server for local AI coding tools

Downloads

1,723

Readme

Relay MCP

Relay MCP exposes Relay project context to MCP-compatible coding tools.

Install

npx @onrelay/wizard

Relay defaults to local stdio installs. The wizard writes each client's native config format instead of forcing a generic shared JSON file, and it auto-installs client-native instructions, rules, hooks, or skills where those surfaces are officially supported.

For manual local MCP config, point your client at:

npx -y -p @onrelay/mcp relay-mcp

The relay-mcp binary reads Relay credentials from ~/.relay/mcp.json or RELAY_API_TOKEN.

Hook-capable clients

Relay installs extra client setup only where the client has an official hook surface.

  • Claude Code: PreCompact, SessionEnd, Stop, StopFailure
  • Gemini CLI: PreCompress, SessionEnd, AfterAgent

Relay does not promise a universal pre-rate-limit save hook. The fallback model is best-effort pre-loss protection: native hooks where supported, opportunistic server sweeps, and explicit checkpoints for hookless clients.

Public tools

Relay exposes five MCP tools so coding agents get a small prompt footprint:

  • get_brief: session-start continuity
  • recall: memory search, state inspection, source tracing, sessions, activity, and briefs
  • save: session writeback, checkpoints, memory cleanup, state updates, and brief/session maintenance
  • list_projects: project disambiguation
  • set_current_project: session-local project pinning

Legacy split tools are folded into recall and save rather than advertised as separate MCP tools.

Behavior bridges

Relay also installs behavior guidance by client so agents use Relay cheaply and autonomously:

  • Claude Code: managed CLAUDE.md block + hooks
  • Codex: managed user AGENTS.md block
  • Cursor: .cursor/rules/relay.mdc
  • Windsurf: .windsurf/rules/relay.md
  • Gemini CLI: managed GEMINI.md block + hooks
  • OpenCode: managed instructions entries + project skill
  • VS Code / Copilot: managed .github/copilot-instructions.md block

The default agent flow is:

  • start or resume with get_brief
  • only call list_projects and set_current_project if Relay reports ambiguity
  • use recall before high-impact decisions when local context is incomplete
  • if recall finds nothing, investigate locally and save only confirmed durable findings
  • use save only at meaningful boundaries or for clearly confirmed durable facts
  • use save to archive or correct stale, completed, contradicted, or superseded context

Troubleshooting

  • If Relay MCP keeps opening the wrong project, remove the pinned projectId from ~/.relay/mcp.json and restart your MCP client so project auto-detection can run again.
  • You can always force a specific project by setting RELAY_PROJECT_ID in the client environment.

Publish

pnpm release:dry-run
pnpm release:mcp