Plan or apply LLM fixes
remediatePlan or apply LLM-generated fixes for Skylos static-analysis findings: use dry_run to preview a remediation plan, or disable it to edit project files in place.
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 no Skylos credits. Scan tools cost no credits either.
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": "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 |