Offer an opt-in compact MCP scan response without the rendered report
The MCP scan_skill tool always returns a rendered report string alongside structured findings, verdict and completeness. Agents that consume only the structured fields cannot opt out of the additional report representation.
A real stdio scan of a small repeated-findings fixture produced a 56,476-byte structured JSON payload. Removing only the report key offline reduced that representation to 9,765 bytes (82.71%). This is a projection for that fixture, not an implemented improvement, a token-cost measurement or evidence of client truncation.
Proposed behavior
Add an explicit option such as include_report=false, with the existing behavior preserved by default. Omit only the documented rendered-report field while retaining the existing structured findings and occurrence details, risk/verdict, completeness, policy result and LLM accounting.
The option intentionally omits report-only data, including full component metadata and detailed provenance. Document that tradeoff. Preserve the SDK's text/structured compatibility representation; it follows the MCP structured-content contract.
Acceptance
- Advertise the boolean in the actual tool schema and preserve the default response.
- Compare default/opt-in responses for clean, finding, incomplete and failed scans, retaining all existing structured fields and occurrences.
- Exercise supported output formats, invalid-format behavior and successive real stdio calls.
- Preserve HTTP/local-target restrictions, redaction and credential handling.
- Measure serialized bytes separately from any future real-client context/cost claim.
Related: #1099 separates result building from rendering, and #1065 changes CLI multi-format output. This proposal is limited to an opt-in MCP response field and does not duplicate those refactors or alter CLI output selection.
Source: MCP response construction. The relevant MCP source is unchanged from the measured main 9dbf4fc75386169275e5f18c47686cb0d7274afa. No implementation is included in this issue.