| description | Line-level coverage for a file — covered, uncovered, and partial lines from the latest CI run in the workspace ontology. |
|---|---|
| argument-hint | <file> |
| allowed-tools | mcp__oxagen__code_coverage_for |
Wraps code.coverage_for (M5). Returns per-line coverage status
for the file from the most-recent CI run that produced coverage
artefacts.
Argument is the repo-relative path, e.g.
packages/oxagen/oxagen/domains/billing/service.py.
mcp__oxagen__code_coverage_for({
path: "<file>"
})
SPEC §7.9 envelope. Top-level fields:
path,total_lines,covered_lines,partial_lines,uncovered_linespct_covereduncovered_blocks— contiguous ranges of uncovered linessource_run_id— the workflow run id that generated the datarecorded_at
Coverage: <file>
Source run: <run_id> (<relative-time>)
Total: <covered>/<total> lines covered (<pct>%)
covered: <n>
partial: <n>
uncovered: <n>
Uncovered blocks
L<a>-<b> (<n> lines)
...
- "Run
/oxagen:tests-for <symbol>for any uncovered function." - "Run
/oxagen:failing-testsif the run is red."
| Symptom | Fix |
|---|---|
no coverage data for path |
CI run didn't emit lcov / cobertura for this file — check workflow config |
recorded_at very old |
Coverage hasn't been refreshed — kick a CI run on default |