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

# Mcp List Code Scan Exclusions

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

## Request

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

Finding-exclusion rules (mcp:*, read, 0 credit). MCP twin of
`GET /v1/projects/{id}/code-scan/exclusions`, trimmed to `{type, value}` — all a
scanner needs.

A scan reads these to DROP ignored files/folders/strings from its local report
and its counts, matching the console, which masks them by default. Each rule is
one of: `string` (exact literal), `file` (exact repo-relative POSIX path), or
`folder` (every path under `value + '/'`).

## Path parameters

- `project_id` string, required

## 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)
