DepScope
v0.9.24Package intelligence MCP for AI agents — 22 tools, 19 ecosystems, AGPL SDK, free.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
check_malicious
Supply-chain malware check against OpenSSF/OSV. USE WHEN: about to suggest install of an unvetted/unfamiliar package; name came from a blog/tutorial. Call BEFORE check_package for untrusted pkgs. RETURNS: {is_malicious, threat_tier, source}.
| Parameter | Type | Description |
|---|---|---|
ecosystem * | string | |
package * | string |
check_typosquat
Typosquat detector. USE WHEN: name differs from a well-known package by 1-2 chars (`lodsh`, `reqeusts`); copy-paste from unreliable source; downloads near zero but name looks familiar. RETURNS: {is_typosquat, likely_target, confidence}.
| Parameter | Type | Description |
|---|---|---|
ecosystem * | string | |
package * | string |
check_bulk
Fast pre-flight filter for a batch of (ecosystem, package) pairs. DB-only, <100ms for 100 items. USE WHEN: about to emit `npm install a b c …` or `pip install a b c …` — catches hallucinated names, stdlib, typos, and known-bad in ONE call. NOT a dep-tree audit (use scan_project for that). RETURNS: per-item {status: exists|stdlib|malicious|typosquat_suspect|historical_incident|unknown}.
| Parameter | Type | Description |
|---|---|---|
items * | array |
package_exists
Boolean registry existence check. USE WHEN: about to emit a package name in an install command but unsure it exists; verifying a name generated from training data. RETURNS: {exists}.
| Parameter | Type | Description |
|---|---|---|
ecosystem * | string | |
package * | string |
get_latest_version
Latest published version + deprecation flag — the cheapest call. USE WHEN: only a version string matters (pinning a dep, answering 'what version of X'). If you also need health/vulns use check_package. RETURNS: {latest, deprecated, published_at}.
| Parameter | Type | Description |
|---|---|---|
ecosystem * | string | |
package * | string |
get_health_score
Single 0-100 health score — cheapest go/no-go gate (>=70 safe). USE WHEN: CI gating or pkg already screened for malware/typos. NOT a first screen — run check_malicious + check_typosquat first. For a verbal verdict use get_package_prompt. RETURNS: {score, verdict}.
| Parameter | Type | Description |
|---|---|---|
ecosystem * | string | |
package * | string |
install_command
Canonical install command(s) across every package manager of the ecosystem (npm/pnpm/yarn/bun, pip/uv/poetry, cargo, go, composer, maven+gradle, nuget, …). USE WHEN: emitting an install line and you want correct flags. RETURNS: {primary, variants[]}.
| Parameter | Type | Description |
|---|---|---|
ecosystem * | string | |
package * | string | |
version | string | Optional explicit version; defaults to latest. |
get_package_prompt
LLM-optimised package brief — plain text ~300 tokens (~75% cheaper than JSON). Verdict (SAFE/AVOID/URGENT/MALICIOUS) + health + vulns + alternatives + maintainer alerts. USE WHEN: you want to reason over a package and drop the output directly in context; 'is X safe'. PREFER THIS over check_package in 95% of LLM cases. RETURNS: plain-text brief.
| Parameter | Type | Description |
|---|---|---|
ecosystem * | string | |
package * | string |
check_package
Full machine-readable JSON report (~2k tokens). USE WHEN: you need to programmatically parse specific fields (CI gating, UI, sub-field extraction). Otherwise prefer get_package_prompt. RETURNS: {package, health:{score}, vulnerabilities[], latest, deprecated, maintainers, recommendation}.
| Parameter | Type | Description |
|---|---|---|
ecosystem * | string | |
package * | string | Package name (e.g. 'express', 'fastapi', 'serde'). |
version | string | Specific version (optional; default = latest). |
get_vulnerabilities
CVE/OSV advisories affecting the latest (or specified) version. USE WHEN: security-sensitive project; user asks 'any CVEs in X'; you already know the pkg exists. RETURNS: {vulnerability_count, vulnerabilities[]: {id, severity, cvss, fixed_in}}.
| Parameter | Type | Description |
|---|---|---|
ecosystem * | string | |
package * | string |
find_alternatives
Curated replacements for deprecated/unhealthy packages, including stdlib built-ins (e.g. `fs.rm` for rimraf). USE WHEN: pkg flagged AVOID/URGENT; 'what to use instead of X'; before guessing a replacement name. RETURNS: {alternatives[]: {name, reason, is_stdlib}}.
| Parameter | Type | Description |
|---|---|---|
ecosystem * | string | |
package * | string |
get_migration_path
Prescriptive migration plan between DIFFERENT packages — rationale + literal code diff + breaking changes + effort minutes. USE WHEN: replacing `request`→`axios`, `moment`→`dayjs`, `flask`→`fastapi`, etc.; both endpoints known. RETURNS: {rationale, diff, breaking_changes[], estimated_minutes}.
| Parameter | Type | Description |
|---|---|---|
ecosystem * | string | |
from_package * | string | Deprecated/legacy package to migrate away from. |
to_package * | string | Modern replacement package. |
get_breaking_changes
Breaking changes between two majors of the SAME package (`next@14`→`15`). USE WHEN: user is bumping a major; before recommending a major upgrade. Different from get_migration_path (same pkg vs. different pkg). RETURNS: {breaking_changes[]: {area, description, hint}}.
| Parameter | Type | Description |
|---|---|---|
ecosystem * | string | |
package * | string | |
from_version | string | |
to_version | string |
pin_safe
Highest version below the chosen CVE severity tier, respecting a semver constraint. USE WHEN: writing a package.json/requirements.txt line; resolving dependabot by lowest-risk patched version. RETURNS: {recommended_version, walk_log[]}.
| Parameter | Type | Description |
|---|---|---|
ecosystem * | string | |
package * | string | |
constraint | string | npm-style constraint: ^X.Y.Z, ~X.Y.Z, >=X.Y.Z, or exact X.Y.Z. |
include_prerelease | boolean | |
min_severity | string | Lowest severity to exclude. Default: high (excludes critical+high). |
scan_project
Audit a project's dependencies in one shot. Returns a single-sentence `verdict` (e.g. "DO NOT INSTALL — 1 hallucinated: fastapi-turbo") that an agent can paste into its reply, plus per-package health/vulns/recommendation. Detects hallucinated packages, deprecated, typosquats, critical vulnerabilities. Accepts EITHER {ecosystem, packages:[name@ver, …]} (up to 100, returns JSON) OR {packages:[{ecosystem, package}, …]} (up to 50, mixed ecosystems, returns text brief). USE WHEN: user pastes package.json/requirements.txt/Cargo.toml; agent generated install command; 'is my stack OK'. RETURNS:…
| Parameter | Type | Description |
|---|---|---|
packages * | Either ['express','lodash@4.17.0'] (single ecosystem, up to 100) or [{ecosystem, package}, …] (mixed, up to 50). | |
ecosystem | string | Required when packages is a string array. |
compare_packages
Side-by-side comparison (health, vulns, downloads, maintainers, last release) of 2-10 packages in the same ecosystem. USE WHEN: 'X vs Y' / 'should I pick X or Y'. RETURNS: table-shaped JSON, one row per package.
| Parameter | Type | Description |
|---|---|---|
ecosystem * | string | |
packages * | array | Package names to compare, e.g. ['express','fastify','hono']. |
check_compatibility
Is this specific multi-package version combo verified to work together? USE WHEN: pinning a stack (next@15 + react@19 + node@22); before recommending a version matrix. RETURNS: {compatible, conflicts[], notes}.
| Parameter | Type | Description |
|---|---|---|
packages * | object | Package -> version map, e.g. {"next":"15","react":"19"}. |
resolve_error
Map error OR free-text query to a verified fix. USE WHEN: user pastes a concrete error/stack (ENOENT, ImportError, build failure) — pass `error`. OR user describes a symptom ('webpack slow', 'pip stuck') — pass `query`. Always prefer this over guessing a fix. RETURNS: exact-match {status, solution, confidence, source_url} or search results [{title, summary, source_url}].
| Parameter | Type | Description |
|---|---|---|
context | object | Optional context for error-mode calls (ecosystem, package, version). |
error | string | Concrete error message / stack trace. Triggers exact-match lookup. |
limit | integer | Max search results (query mode only). |
query | string | Free-text symptom description. Triggers KB search. |
get_known_bugs
Non-CVE known bugs for a specific package version. USE WHEN: unexpected behavior that is NOT a security issue; a pinned version misbehaves. RETURNS: {bugs[]: {title, fixed_in, workaround}}.
| Parameter | Type | Description |
|---|---|---|
ecosystem * | string | |
package * | string | |
version | string |
get_trust_signals
One-call aggregate of ALL non-CVE supply-chain trust signals: maintainer trust (bus factor, ownership changes), OpenSSF Scorecard, quality (criticality, release velocity, publish security), and SLSA/Sigstore provenance. USE WHEN: deep-vetting a package beyond CVEs (hardened/regulated env, SBOM/compliance, small-pkg ownership review, choosing between healthy candidates). Runs 4 backend endpoints in parallel. RETURNS: {maintainer, scorecard, quality, provenance} — each may be null if its backend call failed.
| Parameter | Type | Description |
|---|---|---|
ecosystem * | string | |
package * | string |
get_trending
Live trending packages with rank-delta and weekly growth %. USE WHEN: 'what is rising in npm/PyPI/Cargo right now'; recommendation not biased by training-data cutoff. RETURNS: {items[]: {name, rank, rank_delta, weekly_growth_pct}}.
| Parameter | Type | Description |
|---|---|---|
ecosystem | string | Optional. If omitted returns cross-ecosystem trending. |
limit | integer | Max results, 1-50. Default 20. |
scope | string | Time window. Defaults to week. |
contact_depscope
Inbound ticket: bug/listing/security/anomaly/partnership. USE WHEN: reporting wrong data (`bug`), requesting a new pkg/ecosystem index (`listing`), disclosing a DepScope security issue (`security`), flagging a concrete mismatch in another tool's output vs. authoritative source (`anomaly` — provide tool_called+observed+expected), or partnership/press (`partnership`). RETURNS: {ticket_id} or {anomaly_id}.
| Parameter | Type | Description |
|---|---|---|
body | string | Message body (10-8000 chars). Be specific: include package name, ecosystem, error trace, repro steps when applicable. |
company | string | Company / organization (optional). |
ecosystem | string | For kind=anomaly: ecosystem of the involved package, if any. |
email | string | Reply-to email of the requester (required for bug/listing/security/partnership). |
evidence_url | string | For kind=anomaly: URL to authoritative source (registry page, GHSA, CVE, repo, ...) supporting your expectation. |
expected | string | For kind=anomaly: what you expected to see (1-1500 chars). Be concrete. |
kind | string | Ticket category. `anomaly` routes to structured anomaly triage (requires tool_called/observed/expected). |
name | string | Sender display name (optional). |
observed | string | For kind=anomaly: what DepScope returned (1-1500 chars). |
package | string | For kind=anomaly: package name involved, if any. |
subject | string | Short subject line (3-200 chars). |
tool_called | string | For kind=anomaly: DepScope tool that produced the anomaly (e.g. check_package, get_migration_path). |
version | string | For kind=anomaly: package version involved, if any. |