API & MCP
Everything a person can do on Security Advisory Timeline, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://securityadvisorytimeline.usefulweb.site/api/v1/calculate– run Security Advisory TimelineGET https://securityadvisorytimeline.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Security Advisory Timeline
Merges every OSV.dev advisory for a package (npm, PyPI, Go, crates.io, Maven, RubyGems, Packagist, NuGet) or a list of advisory IDs into one chronological timeline: publication, last modification, withdrawal and fix releases with their registry release dates (npm and PyPI). For each advisory it lists affected version ranges and fixed versions, and measures how long before or after disclosure the fix shipped and how long vulnerable versions were current. Paste OSV JSON to work without live lookups.
| Field | Type | Default | Description |
|---|---|---|---|
ecosystem | select (npm, PyPI, Go, crates.io, Maven, RubyGems, Packagist, NuGet) | "npm" | Ecosystem |
packageName | text | — | Package name |
advisoryIds | textarea | — | Or advisory IDs (one per line) |
osvJson | textarea | — | Or paste OSV JSON (offline). Response of POST https://api.osv.dev/v1/query, an array of OSV records, or one record. |
releaseTimesJson | textarea | — | Optional: pasted release dates (offline). npm packument (uses "time"), PyPI JSON (uses "releases") or {"1.2.3": "2024-01-01T00:00:00Z"}. |
fetchReleaseDates | boolean | true | Look up fix release dates (npm / PyPI registry) |
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://securityadvisorytimeline.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
security_advisory_timeline - Local stdio connector:
node src/mcp-stdio.ts --tool=security-advisory-timeline
{
"mcpServers": {
"security-advisory-timeline": { "type": "http", "url": "https://securityadvisorytimeline.usefulweb.site/mcp" }
}
}