---
title: "Mcp List Code Scan Runs"
method: GET
path: "/v1/mcp/projects/{project_id}/code-scan/runs"
tags: ["mcp"]
---

# Mcp List Code Scan Runs

`GET /v1/mcp/projects/{project_id}/code-scan/runs`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/mcp/projects/{project_id}/code-scan/runs`
- Auth: none declared

Scan-run HISTORY, newest first — one item per ingest (mcp:*, read-only, 0 credit).

MCP twin of `GET /v1/projects/{id}/code-scan/runs`. Each item is one run's
recap: `counts{new, persisting, treated, gone}`, `submitted`, `via`, actor.
Cursor pagination — read `cursor_next`, pass it back as `cursor` until null.

An EMPTY history means no scan has ever run here — an unmeasured project, not
a clean one. `summary` shows only the LAST run; this shows all of them.

## Path parameters

- `project_id` string, required

## Query parameters

- `cursor` string, nullable
- `limit` integer

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sonenta/apis/sonenta-api.md) · [All operations](https://skmtc.dev/sonenta/apis/sonenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sonenta/apis/sonenta-api/revisions/f853ea49fb05?raw)
