---
title: "Mcp Complete Task"
method: POST
path: "/v1/mcp/projects/{project_id}/tasks/{task_id}/complete"
tags: ["mcp"]
---

# Mcp Complete Task

`POST /v1/mcp/projects/{project_id}/tasks/{task_id}/complete`

## Request

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

CLOSE a task with the structured completion QA survey (mcp:*) — the preferred
way to finish a task, instead of a free-form note. Fill it concisely: a verdict,
a one-line summary, the metrics (numbers → a table), the QA checks you verified,
a short journal, and any follow-ups. The verdict sets the status. Unknown id 404.

## Path parameters

- `project_id` string, required
- `task_id` string, required

## Request body

- McpTaskCompleteIn
  - `verdict` string, required: The outcome. resolved/partial -> done; not_applicable -> dismissed; blocked -> the task stays in_progress with this report attached.
  - `summary` string, required: ONE sentence: what you did. Not an essay.
  - `confidence` string, nullable: Your OVERALL confidence in the work (distinct from per-key confidence).
  - `metrics` McpReportMetricIn[]: The countable results, e.g. [{label:'keys translated', value:1013}]. Renders as a table.
    - `label` string, required
    - `value` unknown
    - `unit` string, nullable
  - `checks` McpReportCheckIn[]: The QA gates you verified: [{name:'placeholders preserved', status:'pass'}]. status is pass|fail|na.
    - `name` string, required
    - `status` string, required
    - `note` string, nullable
  - `journal` string[]: Short one-line actions — the precise work trace.
  - `follow_ups` McpReportFollowUpIn[]: Out-of-scope / left to do, each optionally linked to a task (task_ref = uuid or #number).
    - `note` string, required
    - `task_ref` string, 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)
