{
  "x402Version": 2,
  "service": "pkg-cve-check",
  "description": "Single-package CVE lookup ($0.01), 1-10 package supply-chain audit ($0.02), and full GitHub repo/50-package security dossier ($0.10) via x402 + MCP on Base.",
  "resources": [
    {
      "url": "https://pkg-cve-check.restockalarm.workers.dev/v1/check?ecosystem=npm&package=lodash&version=4.17.20",
      "description": "Query OSV.dev for known CVEs and security advisories affecting an open-source package (npm, PyPI, Go, crates.io, Maven).",
      "mimeType": "application/json",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "10000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "security",
        "cve",
        "osv",
        "dependencies"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "ecosystem": "npm",
              "package": "lodash",
              "version": "4.17.20"
            },
            "output": {
              "example": {
                "ecosystem": "npm",
                "package": "lodash",
                "version": "4.17.20",
                "vulnerable": true,
                "vuln_count": 2
              }
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "ecosystem": {
                  "type": "string"
                },
                "package": {
                  "type": "string"
                },
                "version": {
                  "type": "string"
                }
              },
              "required": [
                "ecosystem",
                "package"
              ]
            }
          }
        }
      }
    },
    {
      "url": "mcp://tool/pkg_cve_check",
      "endpoint": "https://pkg-cve-check.restockalarm.workers.dev/mcp",
      "tool": "pkg_cve_check",
      "description": "Query OSV.dev for known CVEs and security advisories affecting an open-source package (npm, PyPI, Go, crates.io, Maven). ($0.01 USDC per call via x402 for MCP)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "10000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "security",
        "cve",
        "osv",
        "dependencies",
        "mcp"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "mcp",
              "transport": "streamable-http",
              "tool": "pkg_cve_check",
              "arguments": {
                "ecosystem": "npm",
                "package": "lodash",
                "version": "4.17.20"
              }
            },
            "output": {
              "type": "json"
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "ecosystem": {
                  "type": "string"
                },
                "package": {
                  "type": "string"
                },
                "version": {
                  "type": "string"
                }
              },
              "required": [
                "ecosystem",
                "package"
              ]
            }
          }
        }
      }
    },
    {
      "url": "https://pkg-cve-check.restockalarm.workers.dev/v1/audit?ecosystem=npm&packages=lodash%404.17.20%2Cexpress%404.18.2",
      "description": "Audit 1-10 open-source packages in one call: batch OSV.dev CVE scan, official registry latest versions, overall_risk rating, and prioritized upgrade_plan.",
      "mimeType": "application/json",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "20000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "security",
        "supply-chain",
        "cve",
        "osv",
        "dependencies",
        "audit"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "ecosystem": "npm",
              "packages": "lodash@4.17.20,express@4.18.2"
            },
            "output": {
              "example": {
                "ecosystem": "npm",
                "packages_checked": 2,
                "vulnerable_packages": 1,
                "overall_risk": "high"
              }
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "ecosystem": {
                  "type": "string"
                },
                "packages": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  ]
                }
              },
              "required": [
                "ecosystem",
                "packages"
              ]
            }
          }
        }
      }
    },
    {
      "url": "mcp://tool/repo_supply_chain_audit",
      "endpoint": "https://pkg-cve-check.restockalarm.workers.dev/mcp",
      "tool": "repo_supply_chain_audit",
      "description": "Audit 1-10 open-source packages in one call: batch OSV.dev CVE scan, official registry latest versions, overall_risk rating, and prioritized upgrade_plan. ($0.02 USDC per call via x402 for MCP)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "20000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "security",
        "supply-chain",
        "cve",
        "osv",
        "dependencies",
        "audit",
        "mcp"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "mcp",
              "transport": "streamable-http",
              "tool": "repo_supply_chain_audit",
              "arguments": {
                "ecosystem": "npm",
                "packages": "lodash@4.17.20,express@4.18.2"
              }
            },
            "output": {
              "type": "json"
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "ecosystem": {
                  "type": "string"
                },
                "packages": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  ]
                }
              },
              "required": [
                "ecosystem",
                "packages"
              ]
            }
          }
        }
      }
    },
    {
      "url": "https://pkg-cve-check.restockalarm.workers.dev/v1/repo-audit?repo=expressjs%2Fexpress",
      "description": "Full security audit of a GitHub repo (auto-fetches package.json, requirements.txt, go.mod, Cargo.toml + repo health) or up to 50 packages with OSV batch CVEs, latest registry versions, security_score (0-100), and prioritized upgrade_plan.",
      "mimeType": "application/json",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "100000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "security",
        "github",
        "supply-chain",
        "cve",
        "dossier",
        "audit"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "repo": "expressjs/express"
            },
            "output": {
              "example": {
                "repo": "expressjs/express",
                "security_score": 92,
                "overall_risk": "low",
                "packages_audited": 31,
                "vulnerable_count": 0
              }
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "repo": {
                  "type": "string"
                },
                "ecosystem": {
                  "type": "string"
                },
                "packages": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  ]
                },
                "branch": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    {
      "url": "mcp://tool/repo_full_security_audit",
      "endpoint": "https://pkg-cve-check.restockalarm.workers.dev/mcp",
      "tool": "repo_full_security_audit",
      "description": "Full security audit of a GitHub repo (auto-fetches package.json, requirements.txt, go.mod, Cargo.toml + repo health) or up to 50 packages with OSV batch CVEs, latest registry versions, security_score (0-100), and prioritized upgrade_plan. ($0.10 USDC per call via x402 for MCP)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "100000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "security",
        "github",
        "supply-chain",
        "cve",
        "dossier",
        "audit",
        "mcp"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "mcp",
              "transport": "streamable-http",
              "tool": "repo_full_security_audit",
              "arguments": {
                "repo": "expressjs/express"
              }
            },
            "output": {
              "type": "json"
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "repo": {
                  "type": "string"
                },
                "ecosystem": {
                  "type": "string"
                },
                "packages": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  ]
                },
                "branch": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    {
      "url": "https://pkg-cve-check.restockalarm.workers.dev/v1/license-compliance?ecosystem=npm&name=express",
      "description": "SPDX license classification, copyleft risk (permissive/weak/strong), maintenance freshness, deprecation status, and commercial-use verdict for npm and PyPI packages.",
      "mimeType": "application/json",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "20000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "license",
        "spdx",
        "compliance",
        "copyleft",
        "npm",
        "pypi",
        "security"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "ecosystem": "npm",
              "name": "express"
            },
            "output": {
              "example": {
                "ecosystem": "npm",
                "name": "express",
                "license": {
                  "spdx": "MIT",
                  "copyleft": "permissive"
                },
                "maintenance": {
                  "signal": "active"
                }
              }
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "ecosystem": {
                  "type": "string",
                  "enum": [
                    "npm",
                    "pypi"
                  ]
                },
                "name": {
                  "type": "string"
                },
                "version": {
                  "type": "string"
                }
              },
              "required": [
                "ecosystem",
                "name"
              ]
            }
          }
        }
      }
    },
    {
      "url": "mcp://tool/license_compliance",
      "endpoint": "https://pkg-cve-check.restockalarm.workers.dev/mcp",
      "tool": "license_compliance",
      "description": "SPDX license classification, copyleft risk (permissive/weak/strong), maintenance freshness, deprecation status, and commercial-use verdict for npm and PyPI packages. ($0.02 USDC per call via x402 for MCP)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "20000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "license",
        "spdx",
        "compliance",
        "copyleft",
        "npm",
        "pypi",
        "security",
        "mcp"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "mcp",
              "transport": "streamable-http",
              "tool": "license_compliance",
              "arguments": {
                "ecosystem": "npm",
                "name": "express"
              }
            },
            "output": {
              "type": "json"
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "ecosystem": {
                  "type": "string",
                  "enum": [
                    "npm",
                    "pypi"
                  ]
                },
                "name": {
                  "type": "string"
                },
                "version": {
                  "type": "string"
                }
              },
              "required": [
                "ecosystem",
                "name"
              ]
            }
          }
        }
      }
    },
    {
      "url": "https://pkg-cve-check.restockalarm.workers.dev/v1/github-repo-health?repo=n8n-io%2Fn8n",
      "description": "Score a GitHub repository 0-100 on maintenance health before depending on it: stars, forks, days since last push and release, license, open issues and archived flag.",
      "mimeType": "application/json",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "30000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "github",
        "maintenance",
        "health",
        "dependencies",
        "oss"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "repo": "n8n-io/n8n"
            },
            "output": {
              "example": {
                "repo": "n8n-io/n8n",
                "score": 90,
                "archived": false
              }
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "repo": {
                  "type": "string"
                }
              },
              "required": [
                "repo"
              ]
            }
          }
        }
      }
    },
    {
      "url": "mcp://tool/github_repo_health",
      "endpoint": "https://pkg-cve-check.restockalarm.workers.dev/mcp",
      "tool": "github_repo_health",
      "description": "Score a GitHub repository 0-100 on maintenance health before depending on it: stars, forks, days since last push and release, license, open issues and archived flag. ($0.03 USDC per call via x402 for MCP)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "30000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "github",
        "maintenance",
        "health",
        "dependencies",
        "oss",
        "mcp"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "mcp",
              "transport": "streamable-http",
              "tool": "github_repo_health",
              "arguments": {
                "repo": "n8n-io/n8n"
              }
            },
            "output": {
              "type": "json"
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "repo": {
                  "type": "string"
                }
              },
              "required": [
                "repo"
              ]
            }
          }
        }
      }
    },
    {
      "url": "https://pkg-cve-check.restockalarm.workers.dev/v1/cve-batch?packages=lodash%404.17.19%2Cexpress%404.17.1",
      "description": "Batch vulnerability check: up to 20 comma-separated npm packages as name@version, checked in ONE OSV.dev querybatch call, per-package vulnCount and vulnIds.",
      "mimeType": "application/json",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "30000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "variant",
        "pkg-cve-check"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "packages": "lodash@4.17.19,express@4.17.1"
            },
            "output": {}
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "packages": {
                  "type": "string"
                }
              },
              "required": [
                "packages"
              ]
            }
          }
        }
      }
    },
    {
      "url": "mcp://tool/cve_batch",
      "endpoint": "https://pkg-cve-check.restockalarm.workers.dev/mcp",
      "tool": "cve_batch",
      "description": "Batch vulnerability check: up to 20 comma-separated npm packages as name@version, checked in ONE OSV.dev querybatch call, per-package vulnCount and vulnIds. ($0.03 USDC per call via x402 for MCP)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "30000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "variant",
        "pkg-cve-check",
        "mcp"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "mcp",
              "transport": "streamable-http",
              "tool": "cve_batch",
              "arguments": {
                "packages": "lodash@4.17.19,express@4.17.1"
              }
            },
            "output": {
              "type": "json"
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "packages": {
                  "type": "string"
                }
              },
              "required": [
                "packages"
              ]
            }
          }
        }
      }
    }
  ]
}