{
  "$schema": "https://static.modelcontextprotocol.io/schemas/mcp-server-card/v1.json",
  "version": "1.0",
  "protocolVersion": "2025-06-18",
  "serverInfo": {
    "name": "pkgguard",
    "title": "PkgGuard",
    "version": "0.1.1"
  },
  "description": "Is this dependency safe to install? Known vulnerabilities (CVE/GHSA, severity, fixed-in) and confirmed-malicious packages for a package.json, lockfile, requirements.txt, go.mod or Cargo.lock (OSV.dev data).",
  "instructions": "Before installing or running code, call check_package (one package) or scan_dependencies (a manifest or lockfile) to see whether it has known vulnerabilities or is a confirmed-malicious package. Data from OSV.dev.",
  "transport": {
    "type": "streamable-http",
    "endpoint": "https://api.youraitools.co/pkgguard/mcp"
  },
  "capabilities": {
    "tools": {
      "listChanged": false
    }
  },
  "freeTier": "Free tier: 30 calls/day (full results via remote MCP, up to 100 packages per scan: check_package, scan_dependencies), then $0.001 per package / $0.003 per scan in USDC (safety check only)",
  "pricing": "$0.003 scan / $0.001 package USDC per call via x402, or prepaid credits (https://api.youraitools.co/credits/).",
  "documentation": "https://api.youraitools.co/pkgguard/",
  "openapi": "https://api.youraitools.co/pkgguard/openapi.json",
  "x402": "https://api.youraitools.co/pkgguard/.well-known/x402",
  "hub": "https://api.youraitools.co/mcp/hub",
  "contact": "hello@youraitools.co",
  "tools": [
    {
      "name": "scan_dependencies",
      "title": "Scan a dependency manifest for vulnerable and malicious packages",
      "description": "Checks a package.json, lockfile, requirements.txt, go.mod, Cargo.lock, poetry.lock or composer.lock (or a list of packages) against OSV.dev for known vulnerabilities and confirmed-malicious packages. Returns per-package advisory ids (CVE/GHSA/MAL), severity, CVSS and fixed-in versions. Free tier: 30 calls/day per IP with full results, up to 100 packages; then $0.003 per scan (up to 500) in USDC over x402 (/v1/scan).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "manifest": {
            "type": "string",
            "description": "Manifest or lockfile contents (package.json, package-lock.json, requirements.txt, Pipfile.lock, poetry.lock, go.mod, Cargo.lock, composer.lock)"
          },
          "filename": {
            "type": "string",
            "description": "Optional file name, helps type detection"
          },
          "packages": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Alternative to manifest: [{ecosystem, name, version}], up to 500"
          },
          "include_dev": {
            "type": "boolean",
            "description": "Include devDependencies (default true)"
          }
        }
      },
      "annotations": {
        "readOnlyHint": true,
        "openWorldHint": true,
        "idempotentHint": true
      }
    },
    {
      "name": "check_package",
      "title": "Is this package version vulnerable or malicious?",
      "description": "Checks one package version (npm, PyPI, Go, crates.io, Packagist, RubyGems, Maven, NuGet) against OSV.dev: advisory ids, severity, CVSS, fixed-in versions and malicious flags. Free tier: 30 calls/day per IP with full results, then $0.001 per call in USDC over x402 (/v1/package).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "ecosystem": {
            "type": "string",
            "description": "One of npm, PyPI, Go, crates.io, Packagist, RubyGems, Maven, NuGet, Pub, Hex (default npm)"
          },
          "name": {
            "type": "string",
            "description": "Package name, e.g. lodash"
          },
          "version": {
            "type": "string",
            "description": "Exact version, e.g. 4.17.15"
          }
        },
        "required": [
          "name",
          "version"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "openWorldHint": true,
        "idempotentHint": true
      }
    }
  ]
}