Plan or apply LLM fixes
remediatePlans or applies LLM-generated fixes for Skylos findings in a project, defaulting to dry-run so you can review changes before files are edited.
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.
Costs 10 Skylos credits per real run, charged when the run starts
generating fixes, right before the first model call; a run that fails
after that is still charged. Dry runs, refused calls and runs with
nothing to fix are free. Scan tools cost no credits.
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.
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": "remediate"
}
}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 |