Developer documentation

check_component_security

Jump to section

Credits: 0 per call. Plan: All plans.

Looks up published CVE/GHSA advisories for components (by id) or repositories (by name), from the same data as the security_advisories warning. Free; use it before you pull, and on code you pulled earlier.

Parameters

parametertyperequireddefault
component_idsarraynullno
namesarraynullno
packagesarraynullno
  • component_ids: up to 25 ids from search_components or get_component.
  • names: up to 25 repositories as owner/repo or a GitHub URL; a bare repo name matches every owner's repository with that name.

Advisory data (OSV, refreshed weekly) covers 8,372 repositories today (520 with at least one advisory, 4,116 advisories with severity, summary and fixed versions). none_known means no advisory in our data, not that the code is safe.

Example call

{
  "name": "check_component_security",
  "arguments": { "component_ids": ["<id>"], "names": ["nestjs/nest"] }
}

What it returns

{"results": [...], "summary", "coverage", "note"}. Each result has input, kind, repo, status (advisories, none_known or not_found) and, with advisories, count and advisories (id plus a GitHub Advisory Database or NVD url).

See also

Tool reference (all tools on one page), Error codes, Credits & plans. Other tools: search_components, get_component, find_similar, list_categories, library_stats, list_licenses, get_component_bundle, compose_starter, licence_report.

Next step

Put the guidance into practice.

Explore components with visible source, scores and licence metadata.

Explore components