scan_to_sarif
Scans a local path or public repository to produce a SARIF 2.1.0 report for GitHub code scanning, enabling MCP server source audits before agent connection.
Instructions
扫描本地路径或公开仓库并直接返回 SARIF 2.1.0 文档(可上传 GitHub code scanning)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "scan_to_sarif"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | 本地绝对路径(与 repo_url 二选一) | |
| repo_url | No | 公开仓库 URL(与 path 二选一) | |
| include_tests | No |