Zum Hauptinhalt springen
Version: Next 🚧

Getting Started with DepCheck

📄 Prefer offline? Download the DepCheck user guide as a PDF.

DepCheck is a hosted MCP server. You connect your AI client to it once, and from then on the client's agent can call the dependency-check tools whenever it needs them.

There are two ways to run it:

  1. Hosted (recommended): connect to https://mcp.cert-ix.com/depcheck over the network. Nothing to install, no key required, always up to date.
  2. Local (stdio): run the vuln-mcp binary next to your agent, so it can read manifests straight off disk. Local does not mean offline: it still looks advisories up over the network.

Prerequisites​

  • An MCP-capable client: ChatGPT, Claude (claude.ai, Claude Desktop or Claude Code), Cursor, VS Code with GitHub Copilot, Windsurf, Cline, Continue, Zed, Codex, Gemini CLI, or any client that speaks streamable-HTTP MCP. Connect your assistant gives the exact setup for each of them.
  • No key. The hosted endpoint answers without one, and you do not need a Cert-IX account.
  • Optional: a DepCheck API key, which raises your limits. It is free and self-service: request one at cert-ix.com/tools/depcheck-mcp, confirm your email address, and the key arrives by email. A key lasts 90 days; before it expires you receive an email with a one-click renewal link, and the same key keeps working. It is sent as a Bearer token on every request, so treat it like a password; see Security & data handling.
No key required

Requests without an Authorization header are served on the no-key tier: 60 requests per minute per IP address, with a burst allowance of 30. A key raises these limits. If you send a key, it must be valid: an invalid or expired key is rejected with 401 and never falls back to the no-key tier.

Option 1: Hosted endpoint​

Claude Code (CLI)​

Add the server with the claude mcp command:

claude mcp add --transport http depcheck https://mcp.cert-ix.com/depcheck

If you have a key, add it as a header:

claude mcp add --transport http depcheck https://mcp.cert-ix.com/depcheck \
--header "Authorization: Bearer YOUR_API_KEY"

Verify it registered and the tools are visible:

claude mcp list

You should see depcheck marked ✔ Connected. Inside a session, /mcp shows its five tools: check_package, scan_dependencies, suggest_safe_version, get_advisory, and get_cve_intel.

Other clients​

Every client uses the same URL, but each one stores it differently, and the differences matter:

  • claude.ai and Claude Desktop add DepCheck as a custom connector, under Customize → Connectors. claude_desktop_config.json only starts local servers and does not take a remote URL.
  • VS Code reads .mcp.json, whose top-level key is mcpServers, or the older .vscode/mcp.json, whose top-level key is servers.
  • Cursor reads ~/.cursor/mcp.json or .cursor/mcp.json, with a url entry.
  • ChatGPT connects in developer mode, and cannot send a key.

Connect your assistant gives the exact steps and snippets for ChatGPT, Claude, Claude Code, Cursor, VS Code, Windsurf, Cline, Continue, Zed, Codex and Gemini CLI, with and without a key, and how to confirm each one works.

Sanity check with curl​

The endpoint is a standard MCP server, so you can confirm reachability with a raw initialize call. No key is needed:

curl -sS https://mcp.cert-ix.com/depcheck \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize",
"params":{"protocolVersion":"2025-06-18",
"capabilities":{},
"clientInfo":{"name":"curl","version":"1.0"}}}'

A 200 with a JSON-RPC result naming the server (depcheck) and the protocol version 2025-06-18 means the endpoint is reachable. To check a key, add -H "Authorization: Bearer YOUR_API_KEY" to the same command: a 200 means the key is accepted, a 401 means it is wrong or expired. With or without a key, a 429 means you have hit a rate limit (see Security & data handling).

Official client for scripts and CI​

To call DepCheck from a terminal, a script or a CI job without writing your own MCP plumbing, use the official client: one JavaScript file for Node.js 18 or later, with no npm dependencies, downloadable from the DepCheck guide. It works without a key, and reads an optional key from the DEPCHECK_KEY environment variable.

node cert-ix-depcheck-client.mjs check_package npm lodash 4.17.20
node cert-ix-depcheck-client.mjs scan_dependencies ./package-lock.json --full

Version 1.2.0 of the client:

  • asks for the full lists with --full on the command line, or full: true in checkPackage and scanDependencies, when an answer says it was capped;
  • speaks MCP protocol 2025-06-18, and sends the negotiated version in the MCP-Protocol-Version header on every request;
  • waits up to 75 seconds for an answer, longer than the 60 seconds a scan may take on the server, so a long scan is not cut off and sent again;
  • retries up to 4 times, with exponential backoff and jitter, on 429, server errors, network errors and timeouts, honouring Retry-After, and throttles itself to 10 requests per second.

Option 2: Local (stdio)​

When you want the agent to read manifests straight off disk, run the server locally over stdio. In this mode scan_dependencies accepts a file path (manifest_path) in addition to inline content.

{
"mcpServers": {
"depcheck": {
"command": "vuln-mcp"
}
}
}

Local does not mean offline. Configured like this, the server looks advisories up in the public osv.dev API, and asks deps.dev whether packages and versions are published and which versions exist; both receive package coordinates. See Security & data handling.

Hosted vs local: what differs
  • Manifests. The hosted server has no access to your filesystem, so its scan_dependencies tool takes the manifest text (manifest_content + manifest_name): your agent reads the file and passes the contents. The local stdio server also accepts a manifest_path.
  • Advisory source. The hosted server answers from Cert-IX's advisory mirror first, flags advisories known to be exploited (CISA KEV) or predicted to be (EPSS), and offers get_cve_intel, which needs Cert-IX's exploitation data (CISA KEV, EPSS and NVD scores). A local instance without access to that data queries osv.dev directly and exposes the other four tools.

First call​

Once connected, ask your agent something like:

"Before we add it, is [email protected] safe? If not, what's the newest clean version?"

The agent will call check_package(ecosystem="npm", name="express", version="4.17.1") and, if there are advisories, suggest_safe_version, and tell you which version to use. That is the whole point: the check happens before the dependency lands in your manifest.

Continue to Connect your assistant for your client's exact setup, the Tools reference for the full parameter set of each tool, or Agent workflows for the check-before-you-add discipline.

War diese Seite hilfreich?