# OSS Dependency & Repo Due-Diligence Auditor (MCP) (`lu-tools/oss-dependency-due-diligence-mcp`) Actor

Enterprise open-source supply-chain gate for AI coding agents (Cursor/Claude Code) & CI/CD: checks OSV.dev CVEs, GPL/AGPL copyleft license risk, maintenance staleness, downloads & GitHub health in 1 fast call. Zero proxies.

- **URL**: https://apify.com/lu-tools/oss-dependency-due-diligence-mcp.md
- **Developed by:** [lu Jerry](https://apify.com/lu-tools) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.00 / 1,000 open-source package auditeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## OSS Dependency & Repo Due-Diligence Auditor (MCP)

**One-call enterprise supply-chain gate for AI coding agents (Cursor, Claude Code, Windsurf) and CI/CD pipelines.**

Before an AI agent or engineer installs a new npm, PyPI, or Rust Cargo package, this Actor queries **official public registries + OSV.dev + GitHub** in parallel and returns an instant **`APPROVED / REVIEW / BLOCKED`** decision plus a 0–100 supply-chain health score—with **zero proxies and zero browsers**.

***

### What It Checks in 1 Call (~0.5s per Package)

1. **OSV.dev Live Vulnerabilities**: Active CVEs & GHSAs for the exact resolved version, severity breakdown (`CRITICAL / HIGH / MODERATE / LOW`), and patched/fixed version.
2. **SPDX License & Copyleft Contagion Risk**: Classifies dual/single licenses into `PERMISSIVE` (MIT/Apache-2.0/BSD/ISC), `WEAK_COPYLEFT` (LGPL/MPL), `STRONG_COPYLEFT` (GPL/AGPL), or `SOURCE_AVAILABLE` (SSPL/BSL)—automatically blocking legal landmines under `commercial-strict` policy.
3. **Maintenance Freshness & Abandonment**: Detects deprecated/yanked versions, archived GitHub repositories, days since last release/commit, weekly ecosystem adoption, and single-maintainer bus factor.

***

### Sample Output (`compactMode: true` — ~220 Tokens, MCP Ready)

```json
{
  "identifier": "npm:zod@3.24.0",
  "ecosystem": "npm",
  "version": "3.24.0",
  "verdict": "APPROVED",
  "grade": "A",
  "healthScore": 100,
  "license": "MIT",
  "licenseCategory": "PERMISSIVE",
  "vulnerabilityCount": 0,
  "criticalOrHighCveCount": 0,
  "isDeprecatedOrArchived": false,
  "daysSinceLastUpdate": 14,
  "weeklyDownloads": 18500000,
  "githubStars": 36200,
  "riskFlags": [],
  "positiveSignals": [
    "ZERO_KNOWN_OSV_CVES",
    "PERMISSIVE_LICENSE_MIT",
    "ACTIVELY_MAINTAINED_90D",
    "HIGH_ECOSYSTEM_ADOPTION",
    "HIGH_GITHUB_STARS"
  ],
  "auditedAt": "2026-11-21T03:20:00.000Z"
}
```

***

### Transparent Pay-Per-Event (PPE) Pricing

- **`package-audited`**: **$0.015 per package/repo audited** ($15 per 1,000 dependency audits)
- **Zero proxy costs & ultra-fast execution** (official APIs only, 256–512 MB RAM)

***

### Plug Into Cursor / Claude Code via MCP

```json
{
  "mcpServers": {
    "oss-due-diligence": {
      "url": "https://mcp.apify.com/?actors=lu-tools/oss-dependency-due-diligence-mcp",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

# Actor input Schema

## `packages` (type: `array`):

Format: 'npm:axios', 'npm:lodash@4.17.20', 'pypi:fastapi', 'cargo:serde', or 'github:owner/repo' / full GitHub URL. Version is optional (defaults to latest).

## `policyMode` (type: `string`):

Controls whether strong copyleft (GPL/AGPL) or source-available (SSPL/BSL) licenses trigger BLOCKED vs REVIEW.

## `includeGithubMetrics` (type: `boolean`):

Enrich registry metadata with live GitHub repository health when a GitHub URL is present.

## `compactMode` (type: `boolean`):

Return a slim ~220-token JSON decision payload per package.

## `maxConcurrency` (type: `integer`):

Number of packages or repositories audited in parallel (1 to 15).

## Actor input object example

```json
{
  "packages": [
    "npm:zod",
    "pypi:fastapi",
    "cargo:serde"
  ],
  "policyMode": "commercial-strict",
  "includeGithubMetrics": true,
  "compactMode": false,
  "maxConcurrency": 5
}
```

# Actor output Schema

## `overview` (type: `string`):

Table of audited packages with APPROVED/REVIEW/BLOCKED verdict, health score, license category, and CVE count.

## `summary` (type: `string`):

Aggregated APPROVED / REVIEW / BLOCKED counts stored in Key-Value Store.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "packages": [
        "npm:zod",
        "pypi:fastapi",
        "cargo:serde"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("lu-tools/oss-dependency-due-diligence-mcp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "packages": [
        "npm:zod",
        "pypi:fastapi",
        "cargo:serde",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("lu-tools/oss-dependency-due-diligence-mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "packages": [
    "npm:zod",
    "pypi:fastapi",
    "cargo:serde"
  ]
}' |
apify call lu-tools/oss-dependency-due-diligence-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lu-tools/oss-dependency-due-diligence-mcp"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/s7dG5qFjPeUTlwOs6/builds/GfA5CYCuDdICLES6G/openapi.json
