Skip to main content
Glama
@pipeworx/dependency-triage

@pipeworx/dependency-triage

by pipeworx-io
README.md
# @pipeworx/dependency-triage

Dependency vulnerability triage: a lockfile or SBOM goes in, sourced findings come out, with a what-changed comparison against a previous run.

Part of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 2075+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.

## Tools

- `triage_dependencies(lockfile | sbom | components, previous_digest?)` — one finding per advisory per affected component. Accepts pnpm-lock.yaml or package-lock.json text, a CycloneDX or SPDX JSON SBOM, or a list of `{ecosystem, name, version}`. Every id an advisory is published under (CVE, GHSA, OSV id) is merged into one finding. Each finding carries the installed version, the fixed version where the advisory states one, and three separate signals, each with its source URL: advisory data, CISA Known Exploited Vulnerabilities listing with the date added, and the FIRST.org EPSS score with its scoring date. There is no blended score. Components with no advisory are counted, not listed. The result includes a `digest`; pass it back as `previous_digest` on the next run to get `new_findings`, `findings_gone`, `fix_now_available` and `newly_kev_listed`.

## Auth

Keyless.

## Data sources

- OSV (Open Source Vulnerabilities), advisory database — affected ranges, fixed versions and alias ids.
- CISA, Known Exploited Vulnerabilities catalog — whether a CVE is known to be exploited, and the date added.
- FIRST.org, Exploit Prediction Scoring System (EPSS) — the probability a CVE is exploited in the next 30 days, with the date scored.

## Notes

- Input caps: 2,000,000 characters of manifest text, 5,000 components, 1,000,000 characters of previous digest. Over the cap the call is refused and the message names the cap.
- Stateless. The manifest is caller data: it is not logged and not cached. The previous run comes back in as the digest.
- A source that cannot be reached is reported under `signals` as failed (or partial) for that signal. If advisory data fails, `findings` is `null` and counts are `null`, never an empty list. If only KEV or EPSS fails, the findings stay and that field is `null` on each.
- The call has a 14.5 second time budget. Advisory details are fetched for at most 400 distinct advisories per call; the rest are reported as `advisories_without_detail`.
- Fixed version is taken from the affected interval that contains the installed version. Version ordering is numeric dotted with pre-releases first; an ecosystem with other ordering rules may return no fixed version rather than a wrong one.
- Entries that cannot be looked up (git, tarball or linked packages, components without a package URL) are counted in `input.entries_skipped`.

## Quick Start

Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):

```json
{
  "mcpServers": {
    "dependency-triage": {
      "url": "https://gateway.pipeworx.io/dependency-triage/mcp"
    }
  }
}
```

### What this endpoint actually serves

`tools/list` at `https://gateway.pipeworx.io/dependency-triage/mcp` returns the tools in the table
above **plus five Pipeworx tools**: `ask_pipeworx`, `discover_tools`, `ask_pipeworx_grounded`, `company_register_search` and `company_facts`.
`ask_pipeworx` answers a question this pack does not cover by routing across the
whole catalog, without adding a second MCP server.

Add an option to the same URL:

- `https://gateway.pipeworx.io/dependency-triage/mcp?meta=1` lists this pack's tools plus **up to 48 shared Pipeworx tools** (48 when this README was
generated; a connection without an account lists fewer, and its own `tools/list` is the
exact answer on any given day).
- `https://gateway.pipeworx.io/dependency-triage/mcp?meta=0` lists this pack's tools alone.

Or connect to the full Pipeworx gateway to get every pack's tools listed
directly, instead of just this one's:

```json
{
  "mcpServers": {
    "pipeworx": {
      "url": "https://gateway.pipeworx.io/mcp"
    }
  }
}
```

Both URLs reach the same gateway and the same 2075+ data sources. The
only difference is which pack's tools are listed **directly**; `ask_pipeworx`
reaches all of them from either one (it is not listed on a `?meta=0` connection).

## No MCP client? Call it over HTTP

```bash
curl -X POST https://gateway.pipeworx.io/v1/tools/triage_dependencies \
  -H 'Content-Type: application/json' \
  -d '{"components":[{"ecosystem":"npm","name":"lodash","version":"4.17.15"}]}'
```

No account needed for the first calls. Inspect any tool: `GET https://gateway.pipeworx.io/v1/tools/triage_dependencies`. Find one: `POST https://gateway.pipeworx.io/v1/tools/search_packs` with `{"query":"..."}`.

## Run it from npm

`@pipeworx/mcp-dependency-triage` is a local stdio bridge to the Pipeworx gateway: your MCP client
starts it with `npx`, and it forwards every call to the same
`https://gateway.pipeworx.io/dependency-triage/mcp` endpoint shown above. It needs network access;
there is no offline mode.

```json
{
  "mcpServers": {
    "dependency-triage": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-dependency-triage"]
    }
  }
}
```

Without a key it calls anonymously, capped at 50 calls a day. A free account
raises that to 200 a day: get a key at https://pipeworx.io/signup and add
`"env": { "PIPEWORX_API_KEY": "<your key>" }` to the server entry.
The key is sent as a Bearer token, the same way a hosted connection sends it,
so calls are metered and billed exactly as they are there.

It lists **only** this pack's tools by default. Set `PIPEWORX_META_TOOLS=1` to
also list `ask_pipeworx` and the other gateway-wide tools.

Behind an HTTPS proxy: Node's built-in `fetch` does not read `HTTPS_PROXY` by
default. Newer Node releases honour it when `NODE_USE_ENV_PROXY=1` is set; check
your Node version's documentation.

## Using with ask_pipeworx

Instead of calling tools directly, you can ask questions in plain English —
this works on the pack endpoint above as well as on the full gateway:

```
ask_pipeworx({ question: "your question about Dependency Triage data" })
```

The gateway picks the right tool and fills the arguments automatically.

## More

- [Docs and guides](https://pipeworx.io/docs)
- [pipeworx.io](https://pipeworx.io)

## License

MIT