---
title: "Mcp Context Diff"
method: GET
path: "/v1/mcp/projects/{project_id}/context/diff"
tags: ["mcp"]
---

# Mcp Context Diff

`GET /v1/mcp/projects/{project_id}/context/diff`

## Request

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

Diff two context versions, or against the current doc when `to` is omitted
(mcp:*|project:read). Returns both contents + a unified diff. Unknown -> 404.

## Path parameters

- `project_id` string, required

## Query parameters

- `from` integer, required
- `to` integer, nullable

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