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

shieldagent

v0.1.0

Published

AI Agent Security Scanner - Scan MCP servers for vulnerabilities

Readme

ShieldAgent

AI Agent Security Scanner - The first tool focused on securing what AI agents DO (tool calls, actions), not just what they SAY.

npm version CI Node.js TypeScript License: MIT

Why ShieldAgent?

  • 90% of AI agents are over-permissioned
  • 43% of MCP implementations have command injection flaws
  • 78% of MCP servers have critical vulnerabilities
  • EU AI Act full enforcement: August 2026

How It Works

MCP Server Directory
        |
        v
  +-- Loader --+       +-----------+
  | Discover   |       | Config    |
  | tools &    | <---- | Exclude   |
  | source     |       | patterns  |
  +-----+------+       +-----------+
        |
        v
  +-- Scan Engine --------------------------+
  |  Schema     Pattern      AST            |
  |  Scanners   Scanners    Scanners        |
  |  (input-    (poisoning, (cmd-injection, |
  |   valid.)    prompt-inj)  over-perm)    |
  +---------+--+--+---------+---------------+
            |  |  |
            v  v  v
       Finding[] (deduplicated, fingerprinted)
            |
            v
  +-- Reporters ---+
  | Table | JSON | SARIF |
  +-------+------+-------+

Quick Start

# Install globally
pnpm add -g shieldagent

# Scan an MCP server
shieldagent scan ./my-mcp-server

# JSON output for CI
shieldagent scan ./my-mcp-server --format json

# SARIF for GitHub Security
shieldagent scan ./my-mcp-server --format sarif > results.sarif

# CI mode (exit code 1 on findings)
shieldagent scan ./my-mcp-server --ci

# Exclude test fixtures from scanning
shieldagent scan ./my-mcp-server --exclude "tests/**" "fixtures/**"

Scanners

| Scanner | Category | Severity Range | Detects | |---------|----------|---------------|---------| | Input Validation | Schema | medium - high | Missing schemas, type constraints, bounds | | Tool Poisoning | Pattern | high - critical | Hidden instructions in tool descriptions | | Prompt Injection | Pattern | high - critical | Injections in parameter metadata | | Auth & Transport | Pattern | medium - critical | Missing auth, insecure transport | | Supply Chain | Pattern | medium - critical | Malicious deps, typosquatting | | Command Injection | AST | critical | Unsanitized input to exec/spawn/eval | | Over-Permission | AST | medium - high | Excessive capabilities vs description | | Data Exfiltration | AST | high - critical | Sensitive data read + outbound network | | Secret Detection | Pattern | medium - critical | Hardcoded API keys, tokens, credentials |

Compliance Frameworks

  • OWASP Agentic Top 10 - Every finding maps to its OWASP category
  • Adversa MCP Top 25 - Every finding maps to its Adversa category

Configuration

Create a .shieldagentrc.json in your project root:

{
  "scanners": {
    "command-injection": { "enabled": true, "severity": "critical" },
    "tool-poisoning": { "enabled": true }
  },
  "exclude": ["tests/**", "node_modules/**"],
  "format": "table",
  "ci": false
}

Programmatic API

import {
  ScanEngine,
  createDefaultRegistry,
  loadMCPServer,
  formatOutput,
} from 'shieldagent';

const registry = createDefaultRegistry();
const engine = new ScanEngine(registry);
const target = await loadMCPServer('./my-mcp-server');

const result = await engine.scan(target, {
  scanners: ['command-injection', 'tool-poisoning'],
  format: 'json',
});

console.log(`Found ${result.findings.length} issues`);
const output = formatOutput(result, 'json');

GitHub Actions Integration

name: MCP Security Scan
on: [push, pull_request]

jobs:
  security-scan:
    runs-on: ubuntu-latest
    permissions:
      security-events: write
    steps:
      - uses: actions/checkout@v4
      - uses: pnpm/action-setup@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
          cache: pnpm
      - run: pnpm add -g shieldagent
      - run: shieldagent scan . --format sarif > results.sarif
      - uses: github/codeql-action/upload-sarif@v3
        with:
          sarif_file: results.sarif
        if: always()

CLI Reference

shieldagent scan <path> [options]

Options:
  -f, --format <format>       Output format: table, json, sarif (default: "table")
  -s, --scanners <scanners>   Specific scanners to run
  -e, --exclude <patterns>    Glob patterns to exclude from scanning
  -c, --config <path>         Path to config file
  --ci                        CI mode: exit with code 1 if findings detected
  -v, --verbose               Verbose output
  -V, --version               Output version number
  -h, --help                  Display help

License

MIT