- Docs
- Fix with your own agent
- A typical run
A typical run
One fix from start to finish through the MCP server: find the project, list and read findings, fix, report with evidence, re-check after merge.
Where in the portalYour agent, in your checkout
Updated View as markdown
On this page
This is the order an agent follows for one finding. The fix_security_findings prompt gives an agent the same steps in one message; see The six tools.
Find the project
Call
list_projectswith the repository's git remote, for example the output ofgit remote get-url origin. If more than one project matches, pick the one whose source matches the repository, branch and directory.If no project is found, pass
repoasowner/nameor the git remote. The connection must include the project, and you need read access to it.List the findings
Call
list_findingsfor that project. UsepathPrefixto see only the findings in the files you are touching. Findings come most severe first, and open and unverified ones by default.Read one and fix it
Call
get_finding, then fix the code in your own checkout and run its tests. Make the smallest change that removes the problem.Report it
Call
report_finding_actionwithaction: "fixed", a short note and evidence:commitSha: 7 to 64 hexadecimal characters.pullRequestUrl: a GitHub pull request of a repository linked to the project.branch.
Every report needs an
idempotencyKeyof 8 to 64 characters fromA–Z a–z 0–9 _ -. Send the same key to retry safely, and a new key for each new report.Re-check after the merge
After the fix is merged to the tracked branch,
request_recheckmay confirm it. A re-check reads the tracked branch, so the fix must be merged first. If it finds the old code, the fix is not merged yet.
Note: What the report does
A fixed report marks the finding fixed at once, and Kelrova confirms it on the next scan of the tracked branch or on a re-check. If the problem is still there, the finding reopens. See What a report does.
Tip
If your client cannot request a re-check, use the Re-check button on the finding in the portal. See Access levels and staying connected.
Cost
MCP calls are not billed. Each re-check is a costed run on your organization's plan, and it can be refused when the plan or the usage allowance does not allow it. See Troubleshooting.