Scan for security issues
security_scanScan source code to detect SQL injection, command injection, SSRF, path traversal, eval/exec, and unsafe deserialization, returning JSON findings with file and line.
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 only analyze works (5 calls/day). The local CLI needs no key: skylos verify <file> and skylos agent install-hooks.
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 |