Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
MCP server that scans your repo's dependencies for security vulnerabilities based on published CVEs.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
GHOSTFREE_DIR, GHOSTFREE_MIN_SEVERITY, NVD_API_KEY标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"ghostfree": {
"command": "npx",
"args": [
"-y",
"ghostfree",
"--repo-path",
"your-value"
],
"env": {
"GHOSTFREE_DIR": "your-value",
"GHOSTFREE_MIN_SEVERITY": "your-value",
"NVD_API_KEY": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add ghostfree --env GHOSTFREE_DIR=your-value --env GHOSTFREE_MIN_SEVERITY=your-value --env NVD_API_KEY=your-value -- npx -y ghostfree --repo-path your-value运行前请先填写空着的值。
这个服务器需要在启动命令中填入值,请复制设置后自行填写。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"ghostfree": {
"command": "npx",
"args": [
"-y",
"ghostfree",
"--repo-path",
"your-value"
],
"env": {
"GHOSTFREE_DIR": "your-value",
"GHOSTFREE_MIN_SEVERITY": "your-value",
"NVD_API_KEY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器需要在启动命令中填入值,请复制设置后自行填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"ghostfree": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"ghostfree",
"--repo-path",
"your-value"
],
"env": {
"GHOSTFREE_DIR": "your-value",
"GHOSTFREE_MIN_SEVERITY": "your-value",
"NVD_API_KEY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
GHOSTFREE_DIR envGHOSTFREE_MIN_SEVERITY env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 shane-js 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:NVD_API_KEY
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.2.0)于7个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Spec Driven Development, Remote Desktop Commander, dotnet-mcp
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
MCP server for .NET symbols, XAML, source generators, and restricted workspace edit
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Every software team could use some help ridding their code base of the ghosts haunting their dependencies.
GhostFree is a local MCP server that scans your repository's dependencies for known vulnerabilities based on issued CVEs using OSV.dev, helps you triage and fix findings with NVD and CISA KEV enrichment, and lets you manage accepted risks — all directly from your AI coding assistant.
No installation, signup, or payment required. Add GhostFree to your MCP settings for whatever code tool you use and run /ghostfree.scan.
Search @mcp ghostfree in the Extensions view (Ctrl+Shift+X) and click Install. Then open the Command Palette (Ctrl+Shift+P), run MCP: List Servers, select GhostFree, choose Start Server, and confirm trust when prompted. No JSON config needed.
Create or update .vscode/mcp.json in your project root:
{
"servers": { "ghostfree": { "type": "stdio", "command": "npx", "args": ["-y", "ghostfree", "--repo-path", "${workspaceFolder}"], "env": {} } } }
Create .mcp.json in your project root:
{
"mcpServers": { "ghostfree": { "type": "stdio", "command": "npx", "args": ["-y", "ghostfree", "--repo-path", "."] } } }
Create .cursor/mcp.json:
{
"mcpServers": { "ghostfree": { "command": "npx", "args": ["-y", "ghostfree", "--repo-path", "."] } } }
Add to your claude_desktop_config.json (location varies by OS):
{
"mcpServers": { "ghostfree": { "command": "npx", "args": ["-y", "ghostfree", "--repo-path", "/path/to/your/repo"] } } }
/ghostfree.scan PromptThe recommended way to run a scan is via the built-in prompt. In your AI client, type:
/ghostfree.scan
This drives the following flow:
User: /ghostfree.scan
GhostFree: Discovering dependencies... Found 84 packages across 2 ecosystems (npm, PyPI).
What minimum severity should I surface? (CRITICAL / HIGH / MEDIUM / LOW)
User: HIGH
GhostFree: Scanning against OSV.dev...
[1] CVE-2021-44228 CRITICAL (10.0) — org.apache.logging.log4j:log4j-core@2.14.1 Log4Shell: Remote code execution via JNDI lookup Fix: upgrade to 2.17.1
[2] CVE-2022-25881 HIGH (7.5) — http-cache-semantics@4.1.0 ReDoS in http-cache-semantics Fix: upgrade to 4.1.1
[3] CVE-2021-28918 CRITICAL (9.8) — netmask@1.0.6 IP address parsing bypass (SSRF / allowlist bypass) Fix: upgrade to 1.1.0
Showing 1-3 of 3. Which would you like to investigate? (e.g., 1, 2, or 'all')
User: 3
GhostFree: [Calls enrich_cve CVE-2021-28918]
CVE-2021-28918 — netmask CRITICAL (9.8) CVSS: 9.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N CWE: CWE-704 (Incorrect Type Conversion) CISA KEV: Not listed
What it is: netmask@1.0.6 improperly parses octal-notation IP addresses (e.g. 010.0.0.1), treating them as decimal. This enables SSRF protection bypass and IP allowlist/blocklist bypass — an attacker can craft an address that appears private but routes to a public host.
Exploit status: Not in CISA KEV. Public PoC exists (SICK-2021-011), ~280k affected projects.
Codebase exposure: netmask is not directly imported — it appears in package-lock.json as a transitive dependency of pac-resolver@3.0.0 (a transitive dev dependency). No direct require('netmask') or IP parsing logic found. Reachability is very low.
Recommendation: Upgrade — low effort, patch version (1.0.6 → 1.1.0), no API changes. netmask is a transitive dependency; use npm audit fix or add a package.json overrides entry to force netmask@1.1.0.
→ Reply with a number to investigate another CVE, 'back' to return to the list, 'fix' to apply the recommended fix, 'accept' to record an accepted risk, or 'done' to wrap up.
User: Accept CVE-2022-25881 — it's only in our CI test pipeline, not reachable in production. Expiry end of year.
GhostFree: [Calls accept_risk CVE-2022-25881]
Accepted risk recorded: • CVE-2022-25881 — http-cache-semantics (HIGH, CVSS 7.5) Reason: Only used in CI test pipeline, not reachable in production Expires: 2026-12-31 ID: 550e8400-e29b-41d4-a716-446655440000
This acceptance is saved to .ghostfree/accepted.yml. Commit this file to share the decision with your team. The CVE will be suppressed on future scans until expiry.
User: List all accepted risks
GhostFree: [Calls list_accepted_risks]
CVE-2022-25881 — ✅ expires in 272 days (2026-12-31) | Severity at acceptance: HIGH (7.5) ID: 550e8400-e29b-41d4-a716-446655440000 Reason: Only used in CI test pipeline, not reachable in production Accepted: 2026-04-03T10:00:00.000Z
User: Tell me everything about CVE-2021-44228
GhostFree: [Calls enrich_cve CVE-2021-44228]
CVSS Score: 10.0 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H CWE: CWE-917 (Improper Neutralization of Special Elements in an Expression Language Statement)
References: • https://nvd.nist.gov/vuln/detail/CVE-2021-44228 • https://logging.apache.org/log4j/2.x/security.html
⚠️ CONFIRMED actively exploited in the wild (added to KEV: 2021-12-10)
| Tool | Read-only | Description |
|---|---|---|
discover_dependencies | ✅ | Scan repo manifests, return all pinned packages by ecosystem |
check_cves | ✅ | Query OSV.dev for CVEs, filter by severity, apply accepted risks |
enrich_cve | ✅ | Fetch CVSS, CWE, references from NVD + KEV exploitation status |
list_accepted_risks | ✅ | List all accepted risks with expiry status and severity snapshot |
accept_risk | ❌ | Record an accepted risk with reason, expiry date, and severity snapshot |
remove_accepted_risk | ❌ | Remove an accepted risk by UUID |
All read-only tools are safe to auto-approve in your MCP client. Write tools (accept_risk, remove_accepted_risk) will prompt for confirmation.
check_cves Inputs| Parameter | Required | Description |
|---|---|---|
packages | Yes | Array of {name, version, ecosystem} — use discover_dependencies output |
min_severity | No | CRITICAL, HIGH, MEDIUM, or LOW. If not passed in, resolves in order of: GHOSTFREE_MIN_SEVERITY env var, then .ghostfree/config.yml, then prompts to choose |
accept_risk Inputs| Parameter | Required | Description |
|---|---|---|
cve_id | Yes | CVE ID, e.g. CVE-2021-44228 |
reason | Yes | Business justification |
expires_on | Yes | Expiry date in YYYY-MM-DD format |
confirm_extended_expiry | No | Set true if expiry is more than 1 year away |
severity | Yes | Severity label at time of acceptance (CRITICAL, HIGH, MEDIUM, LOW, UNKNOWN) — snapshot, not live |
cvss_score | No | CVSS score at time of acceptance — snapshot, not live |
Create .ghostfree/config.yml in your repo root to set a persistent severity threshold that's shared with your team via source control:
min_severity: HIGH
This takes priority over the environment variable. If neither is set, GhostFree will prompt you to choose at scan time.
| Variable | Description |
|---|---|
NVD_API_KEY | Optional NVD API key for higher rate limits (50 req/30s vs 5 req/30s) |
GHOSTFREE_MIN_SEVERITY | Optional — skip the severity prompt and always use this threshold (CRITICAL, HIGH, MEDIUM, or LOW) |
GHOSTFREE_DIR | Optional — use a custom directory instead of .ghostfree/ (applies to both accepted.yml and config.yml) |
VS Code extension users: create a .env file in your workspace root — the extension reads it automatically and forwards the values to the server. For all other setups (manual MCP JSON config): add these to the "env" block in your client's config file (.vscode/mcp.json, .mcp.json, .cursor/mcp.json, claude_desktop_config.json, etc.), or export them as system environment variables.
When you accept a risk, GhostFree writes it to .ghostfree/accepted.yml in your repo root. Commit this file to share accepted decisions with your team.
accepted_risks:
Rules:
expires_on is required — no open-ended acceptancesconfirm_extended_expiry=true| Ecosystem | Manifest Files |
|---|---|
| Python | requirements.txt, pyproject.toml, Pipfile.lock, setup.cfg |
| Node.js | package.json, package-lock.json |
| Go | go.mod, go.sum |
| Rust | Cargo.toml, Cargo.lock |
| Java | pom.xml, build.gradle, build.gradle.kts |
| .NET | *.csproj, packages.config |
When a manifest specifies a version range rather than an exact version, GhostFree extracts a single version to query vulnerability databases. We use two taxonomies to keep the reasoning clear: VRC (what a specifier *means*) and VRHP (what we *do* about it).
A VRC is an ecosystem-agnostic label for what a version specifier expresses. Multiple VRCs can apply to the same entry (e.g. a caret range *with* a prerelease tag is vrc-caret + vrc-prerelease).
| VRC | Concept | Ecosystem examples |
|---|---|---|
vrc-exact | Exact pinned version | npm 1.4.0, Python ==2.28.0, Cargo 1.0.188, Maven 6.0.11 |
vrc-lockfile-pin | Resolved version from lock file | package-lock.json, Cargo.lock, go.sum, Pipfile.lock |
vrc-prerelease | Prerelease / pre-stable tag | 1.0.0-beta, 9.0.0-preview.1, 1.0.0-SNAPSHOT, 32.1.2-jre |
vrc-caret | Caret (major-compatible) range | npm ^1.2.3, Cargo ^1.0.100, Poetry ^2.28.0 |
vrc-tilde | Tilde (minor/patch-compatible) range | npm ~4.17.0, Cargo ~1.0.0, Poetry ~2.28.0 |
vrc-inclusive-minimum | Inclusive lower bound (>=) | npm >=1.2.0, Python >=2.28.0, Cargo >=0.5 |
vrc-exclusive-minimum | Exclusive lower bound (>) | npm >1.0.0, Python >2.0, Cargo >0.5 |
vrc-compatible-release | Compatible release | Python ~=2.28 |
vrc-compound | Multiple constraints combined | npm >=1.0.0 <2.0.0, Cargo >=0.5, <1.0, Python >=2.28,<3.0 |
vrc-inclusive-range | Bracket interval with inclusive lower | NuGet [1.0,2.0), Maven [1.0,2.0] |
| vrc-exclusive-range | Bracket interval with exclusive lower | NuGet `(4.1.3,
只显示了开头部分;其余内容请在仓库中阅读