# MCP

## MCP
POST /mcp: stateless Streamable HTTP JSON-RPC, Bearer header.
Protocol 2025-03-26. initialize, initialized notification, ping, tools/list, tools/call.
No SSE or OAuth. Client must support custom Bearer header.
First upload bytes via REST. Tools: redact_file(file_id,mode,request_id), get_result(job_id).
Tool response content[].text contains the JSON job. Check result.isError.
Download via REST with same owner key when completed.


Example tools/call:
```json
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "redact_file",
    "arguments": {
      "file_id": "YOUR_UPLOADED_FILE_ID",
      "mode": "placeholder",
      "request_id": "unique-request-001"
    }
  }
}
```
