bomscout 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *.egg-info/
4
+ .venv/
5
+ venv/
6
+ dist/
7
+ build/
8
+ .pytest_cache/
9
+ .ruff_cache/
10
+ node_modules/
11
+ coverage/
12
+ .DS_Store
@@ -0,0 +1,20 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0 (2026-11-12)
4
+
5
+ First release.
6
+
7
+ - MCP server for OWASP Dependency-Track 4.x on the official MCP Python SDK (1.10+, 1.x, 2.x),
8
+ stdio transport, run with `uvx bomscout`.
9
+ - Eight read-only tools: `portfolio_overview`, `list_projects`, `project_findings`,
10
+ `vulnerability_impact`, `project_components`, `project_licenses`, `find_component`,
11
+ `policy_violations`. Results are compact JSON, ranked (severity, CVSS, EPSS; FAIL before
12
+ WARN), with totals and a note when rows were left out.
13
+ - Opt-in `record_analysis` (`BOMSCOUT_ALLOW_WRITE=1` or `--allow-write`) to record triage
14
+ decisions; choices accept any case ("false positive" becomes `FALSE_POSITIVE`).
15
+ - Projects by UUID, name (latest version) or `name@version`, including scoped npm names.
16
+ - Vulnerability source guessed from the id (CVE- is NVD, GHSA- is GitHub, then the others).
17
+ - Errors written for the model: wrong URL (including a frontend URL), rejected API key, the
18
+ exact team permission missing on a 403, unknown projects and vulnerabilities.
19
+ - `bomscout check` tests the URL, key and each permission. `Scout` answers the same
20
+ questions from Python.
bomscout-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sri Krishna Lingamaneni
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,153 @@
1
+ Metadata-Version: 2.5
2
+ Name: bomscout
3
+ Version: 0.1.0
4
+ Summary: MCP server for OWASP Dependency-Track: ask Claude, Cursor or any MCP client which projects a CVE affects, what to fix first, licenses and policy violations across your SBOM portfolio
5
+ Project-URL: Homepage, https://github.com/srikrishnaL/kitforge/tree/main/packages/bomscout
6
+ Project-URL: Source, https://github.com/srikrishnaL/kitforge
7
+ Project-URL: Issues, https://github.com/srikrishnaL/kitforge/issues
8
+ Project-URL: Changelog, https://github.com/srikrishnaL/kitforge/blob/main/packages/bomscout/CHANGELOG.md
9
+ Author: Sri Krishna Lingamaneni
10
+ License-Expression: MIT
11
+ License-File: LICENSE
12
+ Keywords: claude,cve,cyclonedx,dependency-track,dependencytrack,license compliance,mcp,mcp server,model context protocol,owasp,sbom,software composition analysis,supply chain security,triage,vex,vulnerability,vulnerability management
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Information Technology
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3 :: Only
19
+ Classifier: Topic :: Security
20
+ Classifier: Topic :: Software Development :: Quality Assurance
21
+ Requires-Python: >=3.10
22
+ Requires-Dist: mcp>=1.10
23
+ Provides-Extra: test
24
+ Requires-Dist: pytest-mcp-server>=0.2; extra == 'test'
25
+ Requires-Dist: pytest>=7; extra == 'test'
26
+ Description-Content-Type: text/markdown
27
+
28
+ # bomscout
29
+
30
+ **An MCP server for [OWASP Dependency-Track](https://dependencytrack.org/).** Ask Claude, Cursor,
31
+ VS Code or any MCP client about your software portfolio in plain words: "which of our projects
32
+ are affected by CVE-2021-44228, and has anyone triaged it?", "what should we fix first in
33
+ `shop`?", "do we ship any GPL code?".
34
+
35
+ Dependency-Track already knows the answers, but getting them means clicking through the UI or
36
+ writing scripts against several REST endpoints. bomscout wraps those endpoints as a handful of
37
+ read-only tools that return small, ranked results a model can reason over.
38
+
39
+ ```bash
40
+ pip install bomscout # or run it without installing: uvx bomscout
41
+ ```
42
+
43
+ ## Set up
44
+
45
+ You need the URL of the Dependency-Track **API server** and an API key of a team
46
+ (Administration > Access Management > Teams). Give the team `VIEW_PORTFOLIO`,
47
+ `VIEW_VULNERABILITY` and `VIEW_POLICY_VIOLATION`. Check the connection and permissions:
48
+
49
+ ```bash
50
+ DT_URL=https://dtrack.example.com DT_API_KEY=odt_... bomscout check
51
+ ```
52
+
53
+ **Claude Code**
54
+
55
+ ```bash
56
+ claude mcp add bomscout -e DT_URL=https://dtrack.example.com -e DT_API_KEY=odt_... -- uvx bomscout
57
+ ```
58
+
59
+ **Claude Desktop, Cursor, VS Code and others** (the usual `mcpServers` JSON):
60
+
61
+ ```json
62
+ {
63
+ "mcpServers": {
64
+ "bomscout": {
65
+ "command": "uvx",
66
+ "args": ["bomscout"],
67
+ "env": { "DT_URL": "https://dtrack.example.com", "DT_API_KEY": "odt_..." }
68
+ }
69
+ }
70
+ }
71
+ ```
72
+
73
+ | Setting | Meaning |
74
+ | --- | --- |
75
+ | `DT_URL` | API server URL (a trailing `/api` is fine). `DEPENDENCY_TRACK_URL` also works. |
76
+ | `DT_API_KEY` | Team API key. `DEPENDENCY_TRACK_API_KEY` also works. |
77
+ | `DT_CA_BUNDLE` | Path to a CA bundle for a server with a private certificate. |
78
+ | `DT_INSECURE=1` | Skip TLS certificate checks (test servers only). |
79
+ | `DT_TIMEOUT` | Seconds per request (default 30). |
80
+ | `BOMSCOUT_ALLOW_WRITE=1` | Add the `record_analysis` tool (or run `bomscout --allow-write`). |
81
+
82
+ ## Tools
83
+
84
+ | Tool | Answers |
85
+ | --- | --- |
86
+ | `portfolio_overview` | Vulnerabilities by severity, audited vs unaudited findings, policy violations, riskiest projects |
87
+ | `list_projects` | Projects by name or tag, with UUID, version, risk score and vulnerability counts |
88
+ | `project_findings` | A project's vulnerabilities, most severe first (CVSS, EPSS, component, triage state); filter by severity or analysis state, e.g. untriaged only |
89
+ | `vulnerability_impact` | One CVE/GHSA: details, fixed versions, every affected project and its remediation status there |
90
+ | `project_components` | A project's dependencies with license and newer versions; only outdated, only direct |
91
+ | `project_licenses` | Components per license, grouped as strong copyleft, weak copyleft, permissive, unknown |
92
+ | `find_component` | Every project that uses a package, by package URL or name and version |
93
+ | `policy_violations` | Security, license and operational policy violations for a project or the portfolio, FAIL first |
94
+ | `record_analysis` | *Opt-in.* Record a triage decision (state, justification, response, comment, suppression) |
95
+
96
+ Projects can be named by UUID, by name (its latest version) or as `name@version`. All tools
97
+ except `record_analysis` are marked read-only, so clients can run them without asking.
98
+
99
+ ## Example
100
+
101
+ A tool result is compact JSON. `project_findings` with `project="shop", min_severity="HIGH"`:
102
+
103
+ ```json
104
+ {
105
+ "project": "shop@2.0",
106
+ "by_severity": {"CRITICAL": 1, "HIGH": 1},
107
+ "by_analysis": {"EXPLOITABLE": 1, "NOT_SET": 1},
108
+ "total": 2, "shown": 2,
109
+ "findings": [
110
+ {"vuln": "CVE-2021-44228", "source": "NVD", "severity": "CRITICAL", "cvss": 10.0, "epss": 0.944,
111
+ "aliases": ["GHSA-jfh8-c2jp-5v3q"], "component": "org.apache.logging.log4j/log4j-core@2.14.1",
112
+ "purl": "pkg:maven/org.apache.logging.log4j/log4j-core@2.14.1", "analysis": "EXPLOITABLE",
113
+ "component_uuid": "...", "vulnerability_uuid": "..."}
114
+ ]
115
+ }
116
+ ```
117
+
118
+ The same questions work from Python, without MCP:
119
+
120
+ ```python
121
+ from bomscout import Scout
122
+
123
+ scout = Scout.from_env() # reads DT_URL and DT_API_KEY
124
+ impact = scout.vulnerability_impact("CVE-2021-44228")
125
+ for project in impact["projects"]:
126
+ print(project["project"], [c["analysis"] for c in project["components"]])
127
+ ```
128
+
129
+ ## Limits
130
+
131
+ - Dependency-Track **4.x** REST API (field names checked against the 4.14.6 API server).
132
+ The Hyades / v5 API is not supported yet.
133
+ - An API key sees what its team sees. With portfolio access control on, other teams' projects
134
+ are invisible to bomscout too.
135
+ - `vulnerability_impact` reads the findings of each affected project to report its analysis
136
+ state: one request per project, 20 projects by default (`max_projects`).
137
+ - License families are a quick triage aid, not legal advice. Components without a resolved
138
+ license count as "unknown".
139
+ - stdio transport only. Run one instance per user, with that user's (or a read-only team's)
140
+ API key.
141
+ - Writing is limited to `record_analysis`; bomscout never uploads BOMs, deletes projects or
142
+ changes policies.
143
+
144
+ ## Why this exists
145
+
146
+ Dependency-Track users asked for an MCP server so they could query their portfolio's security
147
+ posture in natural language instead of hand-writing API scripts:
148
+ [DependencyTrack/dependency-track#5791](https://github.com/DependencyTrack/dependency-track/issues/5791)
149
+ (open, 18 upvotes). Its examples ("show me all critical vulnerabilities", "summary of component
150
+ license risks", "what's the current remediation status for CVE-...") map to
151
+ `portfolio_overview` / `project_findings`, `project_licenses` and `vulnerability_impact`.
152
+
153
+ Part of [kitforge](https://github.com/srikrishnaL/kitforge). MIT licensed.
@@ -0,0 +1,126 @@
1
+ # bomscout
2
+
3
+ **An MCP server for [OWASP Dependency-Track](https://dependencytrack.org/).** Ask Claude, Cursor,
4
+ VS Code or any MCP client about your software portfolio in plain words: "which of our projects
5
+ are affected by CVE-2021-44228, and has anyone triaged it?", "what should we fix first in
6
+ `shop`?", "do we ship any GPL code?".
7
+
8
+ Dependency-Track already knows the answers, but getting them means clicking through the UI or
9
+ writing scripts against several REST endpoints. bomscout wraps those endpoints as a handful of
10
+ read-only tools that return small, ranked results a model can reason over.
11
+
12
+ ```bash
13
+ pip install bomscout # or run it without installing: uvx bomscout
14
+ ```
15
+
16
+ ## Set up
17
+
18
+ You need the URL of the Dependency-Track **API server** and an API key of a team
19
+ (Administration > Access Management > Teams). Give the team `VIEW_PORTFOLIO`,
20
+ `VIEW_VULNERABILITY` and `VIEW_POLICY_VIOLATION`. Check the connection and permissions:
21
+
22
+ ```bash
23
+ DT_URL=https://dtrack.example.com DT_API_KEY=odt_... bomscout check
24
+ ```
25
+
26
+ **Claude Code**
27
+
28
+ ```bash
29
+ claude mcp add bomscout -e DT_URL=https://dtrack.example.com -e DT_API_KEY=odt_... -- uvx bomscout
30
+ ```
31
+
32
+ **Claude Desktop, Cursor, VS Code and others** (the usual `mcpServers` JSON):
33
+
34
+ ```json
35
+ {
36
+ "mcpServers": {
37
+ "bomscout": {
38
+ "command": "uvx",
39
+ "args": ["bomscout"],
40
+ "env": { "DT_URL": "https://dtrack.example.com", "DT_API_KEY": "odt_..." }
41
+ }
42
+ }
43
+ }
44
+ ```
45
+
46
+ | Setting | Meaning |
47
+ | --- | --- |
48
+ | `DT_URL` | API server URL (a trailing `/api` is fine). `DEPENDENCY_TRACK_URL` also works. |
49
+ | `DT_API_KEY` | Team API key. `DEPENDENCY_TRACK_API_KEY` also works. |
50
+ | `DT_CA_BUNDLE` | Path to a CA bundle for a server with a private certificate. |
51
+ | `DT_INSECURE=1` | Skip TLS certificate checks (test servers only). |
52
+ | `DT_TIMEOUT` | Seconds per request (default 30). |
53
+ | `BOMSCOUT_ALLOW_WRITE=1` | Add the `record_analysis` tool (or run `bomscout --allow-write`). |
54
+
55
+ ## Tools
56
+
57
+ | Tool | Answers |
58
+ | --- | --- |
59
+ | `portfolio_overview` | Vulnerabilities by severity, audited vs unaudited findings, policy violations, riskiest projects |
60
+ | `list_projects` | Projects by name or tag, with UUID, version, risk score and vulnerability counts |
61
+ | `project_findings` | A project's vulnerabilities, most severe first (CVSS, EPSS, component, triage state); filter by severity or analysis state, e.g. untriaged only |
62
+ | `vulnerability_impact` | One CVE/GHSA: details, fixed versions, every affected project and its remediation status there |
63
+ | `project_components` | A project's dependencies with license and newer versions; only outdated, only direct |
64
+ | `project_licenses` | Components per license, grouped as strong copyleft, weak copyleft, permissive, unknown |
65
+ | `find_component` | Every project that uses a package, by package URL or name and version |
66
+ | `policy_violations` | Security, license and operational policy violations for a project or the portfolio, FAIL first |
67
+ | `record_analysis` | *Opt-in.* Record a triage decision (state, justification, response, comment, suppression) |
68
+
69
+ Projects can be named by UUID, by name (its latest version) or as `name@version`. All tools
70
+ except `record_analysis` are marked read-only, so clients can run them without asking.
71
+
72
+ ## Example
73
+
74
+ A tool result is compact JSON. `project_findings` with `project="shop", min_severity="HIGH"`:
75
+
76
+ ```json
77
+ {
78
+ "project": "shop@2.0",
79
+ "by_severity": {"CRITICAL": 1, "HIGH": 1},
80
+ "by_analysis": {"EXPLOITABLE": 1, "NOT_SET": 1},
81
+ "total": 2, "shown": 2,
82
+ "findings": [
83
+ {"vuln": "CVE-2021-44228", "source": "NVD", "severity": "CRITICAL", "cvss": 10.0, "epss": 0.944,
84
+ "aliases": ["GHSA-jfh8-c2jp-5v3q"], "component": "org.apache.logging.log4j/log4j-core@2.14.1",
85
+ "purl": "pkg:maven/org.apache.logging.log4j/log4j-core@2.14.1", "analysis": "EXPLOITABLE",
86
+ "component_uuid": "...", "vulnerability_uuid": "..."}
87
+ ]
88
+ }
89
+ ```
90
+
91
+ The same questions work from Python, without MCP:
92
+
93
+ ```python
94
+ from bomscout import Scout
95
+
96
+ scout = Scout.from_env() # reads DT_URL and DT_API_KEY
97
+ impact = scout.vulnerability_impact("CVE-2021-44228")
98
+ for project in impact["projects"]:
99
+ print(project["project"], [c["analysis"] for c in project["components"]])
100
+ ```
101
+
102
+ ## Limits
103
+
104
+ - Dependency-Track **4.x** REST API (field names checked against the 4.14.6 API server).
105
+ The Hyades / v5 API is not supported yet.
106
+ - An API key sees what its team sees. With portfolio access control on, other teams' projects
107
+ are invisible to bomscout too.
108
+ - `vulnerability_impact` reads the findings of each affected project to report its analysis
109
+ state: one request per project, 20 projects by default (`max_projects`).
110
+ - License families are a quick triage aid, not legal advice. Components without a resolved
111
+ license count as "unknown".
112
+ - stdio transport only. Run one instance per user, with that user's (or a read-only team's)
113
+ API key.
114
+ - Writing is limited to `record_analysis`; bomscout never uploads BOMs, deletes projects or
115
+ changes policies.
116
+
117
+ ## Why this exists
118
+
119
+ Dependency-Track users asked for an MCP server so they could query their portfolio's security
120
+ posture in natural language instead of hand-writing API scripts:
121
+ [DependencyTrack/dependency-track#5791](https://github.com/DependencyTrack/dependency-track/issues/5791)
122
+ (open, 18 upvotes). Its examples ("show me all critical vulnerabilities", "summary of component
123
+ license risks", "what's the current remediation status for CVE-...") map to
124
+ `portfolio_overview` / `project_findings`, `project_licenses` and `vulnerability_impact`.
125
+
126
+ Part of [kitforge](https://github.com/srikrishnaL/kitforge). MIT licensed.
@@ -0,0 +1,47 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.27"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "bomscout"
7
+ version = "0.1.0"
8
+ description = "MCP server for OWASP Dependency-Track: ask Claude, Cursor or any MCP client which projects a CVE affects, what to fix first, licenses and policy violations across your SBOM portfolio"
9
+ readme = "README.md"
10
+ license = "MIT"
11
+ license-files = ["LICENSE"]
12
+ requires-python = ">=3.10"
13
+ authors = [{ name = "Sri Krishna Lingamaneni" }]
14
+ keywords = [
15
+ "dependency-track", "dependencytrack", "owasp", "mcp", "mcp server", "model context protocol",
16
+ "sbom", "cyclonedx", "vulnerability", "cve", "vulnerability management", "triage", "vex",
17
+ "software composition analysis", "license compliance", "supply chain security", "claude",
18
+ ]
19
+ classifiers = [
20
+ "Development Status :: 4 - Beta",
21
+ "Intended Audience :: Developers",
22
+ "Intended Audience :: Information Technology",
23
+ "Operating System :: OS Independent",
24
+ "Programming Language :: Python :: 3",
25
+ "Programming Language :: Python :: 3 :: Only",
26
+ "Topic :: Security",
27
+ "Topic :: Software Development :: Quality Assurance",
28
+ ]
29
+ dependencies = ["mcp>=1.10"]
30
+
31
+ [project.optional-dependencies]
32
+ test = ["pytest>=7", "pytest-mcp-server>=0.2"]
33
+
34
+ [project.scripts]
35
+ bomscout = "bomscout.server:main"
36
+
37
+ [project.urls]
38
+ Homepage = "https://github.com/srikrishnaL/kitforge/tree/main/packages/bomscout"
39
+ Source = "https://github.com/srikrishnaL/kitforge"
40
+ Issues = "https://github.com/srikrishnaL/kitforge/issues"
41
+ Changelog = "https://github.com/srikrishnaL/kitforge/blob/main/packages/bomscout/CHANGELOG.md"
42
+
43
+ [tool.hatch.build.targets.wheel]
44
+ packages = ["src/bomscout"]
45
+
46
+ [tool.pytest.ini_options]
47
+ testpaths = ["tests"]
@@ -0,0 +1,14 @@
1
+ """bomscout: an MCP server for OWASP Dependency-Track.
2
+
3
+ Ask an AI assistant about your software portfolio: which projects a CVE affects and how far
4
+ remediation got, the riskiest projects, findings by severity, licenses, policy violations,
5
+ and where a package is used.
6
+ """
7
+
8
+ __version__ = "0.1.0"
9
+
10
+ from .client import DependencyTrack # noqa: E402
11
+ from .errors import DTError # noqa: E402
12
+ from .scout import Scout # noqa: E402
13
+
14
+ __all__ = ["DependencyTrack", "DTError", "Scout", "__version__"]
@@ -0,0 +1,5 @@
1
+ import sys
2
+
3
+ from .server import main
4
+
5
+ sys.exit(main())