mcpField
T
TridentChain Security

TridentChain Security

本地服务
github.com/DevInder1安全02 天前更新

关于 TridentChain Security

TridentChain Security 是一款本地优先的扫描器,可检查项目依赖、开发工具和 IDE 扩展。它面向需要在不上传项目数据的情况下检查漏洞的开发者和 Agent,并整合多个情报源及 KEV/EPSS 优先级。

主要功能

  1. 01扫描项目依赖、系统工具和 IDE 扩展
  2. 02整合 OSV、NVD、GHSA 和 Sonatype 数据
  3. 03使用 KEV/EPSS 排定发现项优先级
  4. 04提供 quick、full 和 offline 配置
  5. 05支持 CLI、Python API、桌面应用和 Agent 集成

适用场景

  1. 01检查项目依赖中的已知漏洞
  2. 02扫描 IDE 扩展和开发工具
  3. 03离线运行本地扫描
  4. 04通过 Agent 验证代码修改

MCP 相关

项目提供用于 Agent 集成的 MCP 服务。MCP 工具可调用扫描器能力,包括补丁后的验证。

配置

本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。

mcp.json · 通用配置
{
"mcpServers": {
"devinder1-tridentchain-security": {
"command": "uvx",
"args": [
"tridentchain-mcp"
]
}
}
}
启动命令uvx tridentchain-mcp

本地服务需要在你的电脑上安装运行环境(如 Node.js 18+)。各客户端的配置文件位置不同,请参考客户端文档。

安装包
pypitridentchain-mcp0.1.5

工具

3

收录的工具列表 · 更新于 2 周前

参数类型必填说明
output_dirany否
run_profilestring否
max_findingsinteger否
project_pathstring是

详细介绍

TridentChain Security

PyPI — tridentchain-security PyPI — tridentchain-mcp PyPI Downloads MCP Registry Python License: MIT Works with Claude · Cursor · VS Code · Windsurf · Zed Docker (ghcr.io)

本地优先的漏洞扫描器,可扫描项目依赖项、开发者工具和 IDE 扩展。
使用多源情报(OSV、NVD、GHSA、Sonatype),并根据 KEV/EPSS 进行优先级排序。

默认使用无需 API 密钥。

公共仓库:https://github.com/DevInder1/supply-chain-scanner-public


安装(开箱即用)

pip3 install tridentchain-security
npm install -g @tridentchain/security-cli
tridentchain-security --help

Agent 和 MCP(Claude、Cursor、VS Code、Windsurf、Zed):

选择最适合你的安装方式:

# Option A — pip (needs Python 3.10+)
pip3 install -U "tridentchain-security>=0.1.4" "tridentchain-mcp>=0.1.4"

# Option B — uvx (no manual Python install; uv handles it)
uvx tridentchain-mcp

# Option C — Docker (no Python needed, fully sandboxed)
docker pull ghcr.io/devinder1/tridentchain-mcp:latest
# Then in your MCP config, replace `python3 -m tridentchain_mcp` with:
#   command: docker
#   args: ["run", "--rm", "-i", "-v", "$PWD:/workspace", "ghcr.io/devinder1/tridentchain-mcp:latest"]

你可以做什么:docs/CAPABILITIES.md
完整指南:docs/INSTALL_AND_USE.md
跨平台(macOS / Linux / Windows):docs/CROSS_PLATFORM.md
(PyPI:tridentchain-security · npm:@tridentchain/security-cli)

tridentchain-security --scan all --project-path . --output-dir scanner-output

在你自己的 Python 应用中使用

from scanner import run_scan

summary = run_scan(
    project_path=".",
    scan="all",
    run_profile="full",  # no API key required
    output_dir="scanner-output",
)
print(summary["summary"])

扫描配置

配置说明
full(默认)项目 + 系统 + 扩展。无需密钥即可使用 OSV + NVD。
quick更快、侧重项目的扫描。
offline仅使用本地公告数据库,不联网。
高级用户添加 GITHUB_TOKEN、NVD_API_KEY,以及可选的 SONATYPE_TOKEN,以获得最佳覆盖率。

桌面应用(独立应用程序)

如果已安装 pip 软件包,则无需克隆仓库:

pip3 install tridentchain-security
cd apps/desktop && npm install && npm run start

请参阅 apps/desktop/README.md 和 docs/DISTRIBUTION_VERIFICATION.md。

AI / 自动化(Claude、OpenAI、Cursor、VS Code、Windsurf 等)

一次安装,适用于所有 Agent: pip install "tridentchain-security>=0.1.2" tridentchain-mcp

指南说明
Agent 集成Claude · OpenAI · Cursor · VS Code · Windsurf · Zed · MCP · CLI
功能当前可用的全部功能
架构MCP + 统一工具设计
./scripts/setup-agent-mcp.sh cursor   # prints setup for your agent

第 2 阶段 — Claude MCP: pip install tridentchain-mcp · 设置指南 · 插件

第 3 阶段 — OpenAI + Cursor: examples/openai/ · Cursor 设置 · .cursor/mcp.json.example

第 4 阶段 — VS Code(Anthropic MCP): 打开仓库 → MCP 就绪 · VS Code 设置 · ./scripts/vscode-mcp-install-link.sh · 扩展

第 5 阶段 — 验证: tridentchain-security --validate · MCP validate_after_patch · CAPABILITIES.md

统一工具层:from scanner.integrations import execute_tool, get_tool_definitions, to_openai_tools


开发

git clone https://github.com/DevInder1/supply-chain-scanner-public.git
cd supply-chain-scanner-public
python3 -m pip install -e .
tridentchain-security --help
python3 -m unittest scanner.tests.test_matcher_ranges -v

安装与使用:docs/INSTALL_AND_USE.md
跨平台:docs/CROSS_PLATFORM.md
CLI 合约:docs/cli-contract.md
发布:docs/PUBLISHING.md


可选 API 密钥(高级用户)

变量用途
NVD_API_KEY提高 NVD 速率限制
GITHUB_TOKENGHSA 公告
SONATYPE_TOKENSonatype Guide 公告

在 .env 或环境变量中设置。


许可证

MIT — 参见 LICENSE

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。