mcp-audit — MCP static scan (SARIF + CI)
v0.4.0Static MCP server scan: injection, secrets, tool poisoning.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
scan_mcp_server
审计一个 MCP server 项目(本地路径)的安全风险,返回结构化风险清单
| Parameter | Type | Description |
|---|---|---|
path * | string | |
include_tests | boolean |
scan_public_repo
扫描任意公开仓库(github.com / gitlab.com / gitee.com)里的 MCP server 安全风险。直接传仓库 URL,无需下载、无需本地路径。返回按严重度汇总的摘要 + 最多 3 条明细;完整报告(含修复建议/SARIF/CI 模板)见 https://web3project.top/mcp-audit
| Parameter | Type | Description |
|---|---|---|
repo_url * | string |
list_rules
列出扫描器的全部规则(规则 id、严重度、说明、修复建议)
scan_to_sarif
扫描本地路径或公开仓库并直接返回 SARIF 2.1.0 文档,可上传 GitHub code scanning
| Parameter | Type | Description |
|---|---|---|
include_tests | boolean | |
path | string | |
repo_url | string |
explain_rule
查询单条规则的严重度、含义与修复建议
| Parameter | Type | Description |
|---|---|---|
rule * | string |