Scan for security issues
security_scanScan source code locally for SQL/command injection, SSRF, path traversal, eval/exec and unsafe deserialization, returning JSON findings with file, line, severity and rule ID.
Instructions
Scan source code for security issues such as SQL and command injection, SSRF, path traversal, eval/exec and unsafe deserialization.
Returns JSON with findings (rule ID, severity, file, line, message) and
_run_id. Read-only; the scan runs locally and does not upload code. Use
secrets_scan for hard-coded credentials and validate_code_change
to check a diff before it lands.
Defect and Review records remain complete. Advice is grouped by default; expand_advice=True includes every Advice record. Read _result_uri for the complete saved result without rescanning.
Requires SKYLOS_API_KEY: this tool returns an authentication error unless the MCP server is started with SKYLOS_API_KEY set. Without a key, analyze works (5 calls/day) and the local map tools (change_map and the graph_* tools) work with no limit. The local CLI needs no key: skylos verify <file> and skylos agent install-hooks.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "security_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Directory or file to scan. A relative path resolves against the MCP server's working directory. | |
| confidence | No | Minimum confidence (0-100) for dead-code findings. Higher values report fewer, surer candidates; 60 is the CLI default. | |
| expand_advice | No | Include every Advice record instead of rule-group counts; complete results are always available through _result_uri. | |
| exclude_folders | No | Folder names to skip, e.g. ["migrations", "scripts"]. When given, this list replaces the default excludes (node_modules, .venv, build, dist and similar); omit it to keep the defaults. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |