Plan or apply LLM fixes
remediatePlan or apply LLM-generated fixes for Skylos findings. Dry-run by default; set dry_run=false to edit files, then review changes and run tests before keeping.
Instructions
Plan or apply LLM-generated fixes for Skylos findings in a project.
With dry_run=True (default), static analysis returns a remediation
plan without calling a model or changing files. With dry_run=False,
it generates fixes and can edit files in place: this needs the
skylos[llm] extra and provider configuration (including credentials
when required), and sends affected code to that provider. It does not
run your tests.
Review every change and run trusted tests before keeping it.
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. | |
| model | No | LLM model name passed to the provider (e.g. gpt-4.1 or a Claude model). Configure the provider's credentials in the MCP server's environment when required by that provider. | gpt-4.1 |
| dry_run | No | True (default) only plans the fixes. False writes the generated edits to files in `path`. | |
| severity | No | Only fix findings at this severity or above: critical, high, medium or low. | |
| test_cmd | No | Not supported over MCP; non-empty values are rejected. Run tests yourself after reviewing the fixes. | |
| max_fixes | No | Maximum number of findings to fix in this run. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |