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

@agentguard47/mcp-server

v0.2.2

Published

Read-only MCP server for coding-agent traces, decision events, alerts, costs, usage, and budget health

Readme

AgentGuard MCP Server

Read-only MCP (Model Context Protocol) server that connects coding agents to the AgentGuard Read API. Use it after the local SDK is already in place and you want Codex, Claude Code, Cursor, or another MCP client to inspect traces, decision events, alerts, usage, costs, and budget health.

The boundary is deliberate:

  • The SDK proves runtime enforcement locally
  • The MCP server gives coding agents a narrow read surface over retained data
  • The hosted dashboard stays the operational control plane

Published Package

npx -y @agentguard47/mcp-server

Tools

| Tool | Description | |------|-------------| | query_traces | Search recent traces, filter by service/time range | | get_trace | Get the full event tree for a specific trace ID | | get_trace_decisions | Extract normalized decision.* events from a specific trace ID | | get_alerts | Get guard alerts such as loops, budget exceeded, and errors | | get_usage | Check event quota usage and plan limits | | get_costs | Get cost breakdown by model for the current month | | check_budget | Quick pass/fail budget health check |

Configuration

| Variable | Required | Description | |----------|----------|-------------| | AGENTGUARD_API_KEY | Yes | Bearer token for the Read API (ag_...) | | AGENTGUARD_URL | No | API base URL (defaults to production) |

Setup for Claude Code

Add to your Claude Code MCP config:

{
  "mcpServers": {
    "agentguard": {
      "command": "npx",
      "args": ["-y", "@agentguard47/mcp-server"],
      "env": {
        "AGENTGUARD_API_KEY": "ag_your_key_here"
      }
    }
  }
}

Any other MCP-compatible client that can launch an npm package over stdio can use the same command.

Local Build & Run

npm ci
npm run build
npm test
npm start

Glama / Smithery Build Config

This repo now includes the files downstream registries expect when they build or inspect the MCP server from GitHub:

  • Dockerfile - container build for the stdio server
  • smithery.yaml - config schema for AGENTGUARD_API_KEY and the optional base URL

That keeps the public repo aligned with the published npm package and makes the Glama / Smithery import path explicit instead of implicit.

The repo root also carries matching shim files for directories that only scan the default branch root:

Those root files delegate straight to mcp-server/ and should stay aligned with the package-local versions here.

Registry Readiness

This repo now includes official MCP registry metadata in server.json. The npm package is already public, and the Glama / Smithery config now lives next to the source, so the remaining registry work is metadata publication:

mcp-publisher login github
mcp-publisher publish

After that, verify the server is searchable from the MCP Registry API and then submit it to downstream directories like Glama and awesome-mcp-servers.

Architecture

  • src/index.ts - Server entry point, tool registration (stdio transport)
  • src/client.ts - HTTP client wrapping /api/v1/ endpoints
  • src/decisions.ts - Decision-event extraction helpers for hosted traces
  • src/schema.ts - JSON Schema to Zod shape builder used during tool registration
  • src/tools.ts - 7 MCP tool definitions and handlers