Skip to content

Make MCP search results compact by default (protocol 11) - #120

Merged
Naoray merged 3 commits into
mainfrom
feat/slim-results-5221
Oct 27, 2026
Merged

Naoray merged 3 commits into
mainfrom
feat/slim-results-5221

Conversation

@Naoray

@Naoray Naoray commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

MCP search now returns compact hits by default, with self-contained versioned extraction references. detail:"full" retains descriptor and diagnostic fields. Extraction accepts compact references or legacy full hits through the existing confinement and source-hash checks; query warnings count distinct confined resources/pages.

Breaking: JSON protocol 11. CLI search/index/extract payload fields are unchanged except the shared version label. Installed v10 CLI extract rejects v11 documents, and strict full-result consumers must update for added fields. The docs and changelog include the compatibility matrix, binary reference specification and migration examples.

Validation: formatting and workspace/all-target clippy with -D warnings pass; workspace tests pass (635 passed, 45 ignored). All checks ran offline using the existing cached ONNX Runtime, without model loading or downloads. Independent synthetic codec vectors cover locator/metadata preservation and canonical decoding; tests cover strict selection parsing, verified extraction and protocol compatibility.

The production serializer reduced 59 successful recorded payloads from 463,019 to 232,713 characters (1.990× smaller). All 63 recorded calls reconcile, including four tool errors; there are no parse/encoding exclusions. The measurement procedure and per-locator costs include a public synthetic invocation. Private transcripts/manifests are not committed. These are payload-size measurements; the paid agent harness remains deferred and no token or agent-outcome saving is claimed.

@Naoray
Naoray merged commit 08ebff7 into main Oct 27, 2026
21 checks passed
@Naoray
Naoray deleted the feat/slim-results-5221 branch October 27, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant