MCPcopy Index your code
hub / github.com/daehee/nvd

github.com/daehee/nvd @v1.0.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.4 ↗ · + Follow
58 symbols 168 edges 12 files 20 documented · 34%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

nvd Go Report

Fast, simple library in Go to fetch CVEs from the NVD (U.S. National Vulnerability Database) feeds.

Install

go get github.com/daehee/nvd

Usage

The nvd package provides a Client for fetching CVEs from the official NVD feeds:

// nvd client with ./tmp working dir
client, err := NewClient("tmp")

// Fetch single CVE
cve, err := client.FetchCVE("CVE-2020-14882")

// Fetch all recently published and modified CVES
cves, err := client.FetchUpdatedCVEs()

License

MIT License

Core symbols most depended-on inside this repo

NewClient
called by 6
nvd.go
pathToFeed
called by 5
feed.go
ParseCVEID
called by 4
cve.go
downloadFeed
called by 4
feed.go
IsCVEIDStrict
called by 3
cve.go
searchFeed
called by 3
feed.go
fetchReservedCVE
called by 3
reserved.go
IsCVEID
called by 2
cve.go

Shape

Function 31
Method 16
Struct 11

Languages

Go100%

Modules by API surface

feed.go14 symbols
types.go10 symbols
feed_test.go7 symbols
cve_test.go6 symbols
cve.go6 symbols
cpe.go5 symbols
util.go2 symbols
reserved.go2 symbols
nvd.go2 symbols
cpe_test.go2 symbols
reserved_test.go1 symbols
cwe.go1 symbols

For agents

$ claude mcp add nvd \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact