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

@jamjet/mcp-shim

v0.2.1

Published

JamJet policy + audit + approval as an MCP stdio interceptor. Drop-in between any MCP client and any MCP server. Or run --serve-self as a standalone MCP server exposing policy_evaluate, policy_list_rules, policy_load_info to any agent.

Readme

@jamjet/mcp-shim

JamJet policy + audit + approval as an MCP stdio interceptor. Drop-in between any MCP client (Claude Desktop, Cursor, OpenAI Agents SDK with MCP, custom) and any MCP server. One policy file, every tools/call governed.

Install + wire in Claude Desktop

In claude_desktop_config.json (or ~/.config/claude-code/...):

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": [
        "-y", "@jamjet/mcp-shim",
        "--policy", "~/.jamjet/policy.yaml",
        "--server", "postgres",
        "--",
        "postgres-mcp", "--db", "postgresql://localhost/mydb"
      ]
    }
  }
}

Same shape works for Cursor, OpenAI Agents SDK MCP clients, any stdio-launched MCP server.

See it in 60 seconds

mkdir -p ~/.jamjet
cat > ~/.jamjet/policy.yaml <<'EOF'
version: 1
rules:
  - { match: "*delete*", action: block }
  - { match: "*drop*", action: block }
  - { match: "shell.exec", action: block }
EOF

Restart Claude Desktop. Any tools/call matching *delete* from any MCP tool gets a JSON-RPC policy error back to the client — and the real MCP server never sees the request.

What you get

  • Block unsafe MCP tools at the wire — before the real MCP server is invoked
  • Approve risky tools via jamjet approve <run-id> (approval flow lands with @jamjet/cli in v0.2)
  • Audit JSONL at ~/.jamjet/audit/<YYYY-MM-DD>/mcp-shim.jsonl

--serve-self: run the policy primitives as their own MCP server

Same binary, no downstream server required:

npx -y @jamjet/mcp-shim --serve-self --policy ~/.jamjet/policy.yaml

Or wired into Claude Desktop / Cursor / any MCP client as a regular server:

{
  "mcpServers": {
    "jamjet-policy": {
      "command": "npx",
      "args": ["-y", "@jamjet/mcp-shim", "--serve-self", "--policy", "~/.jamjet/policy.yaml"]
    }
  }
}

Three read-only policy tools become available to the agent:

| Tool | What it does | |---|---| | policy_evaluate | Dry-run a candidate tool name against the policy; return decision (allow / block / require_approval / audit) + matched glob pattern | | policy_list_rules | List every rule in the loaded policy, in declaration order, with action + pattern | | policy_load_info | Report the path of the loaded policy file, rules count, and schema version |

Useful when the agent itself needs to reason about the policy ("is fs.delete_file allowed before I propose it?"), and a clean alternative to the interceptor pattern when there is no downstream MCP server to wrap.

If --policy is omitted and no policy.yaml is discovered (cwd, ~/.jamjet/, or the JAMJET_POLICY_FILE env var), the server starts with a built-in demo policy (*delete* → block, *drop* → block, *destructive* / payments.* → require_approval) and writes a one-line warning to stderr telling you how to bind real rules. policy_load_info reports policy_source: "demo" so calling clients can detect they're talking to the fallback.

Same policy, other places

The same policy.yaml is consumed by:

Write the safety policy once. Run it everywhere your agents can act.

License

Apache-2.0