Repository navigation
fix(mcp): surface byte search for encoded literals - #8817
Merged
Merged
Conversation
Contributor
[Low impact] This description-only change appears safe to merge. SummaryAdds one sentence to
Reviews (1) · Last reviewed commit: "fix(mcp): surface byte search for encode..." · Reviewed by Greptile |
This was referenced Nov 3, 2026
morluto
marked this pull request as ready for review
November 4, 2026 03:50
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When a known encoded literal is missing from Ghidra's string inventory, the
search_stringstool description does not point agents to the existing byte-search alternative. Mentionsearch_bytesfor known encoded bytes and clarify that a byte match does not establish a string or its use. Related: #8218.Problem and expected behavior
A real Ghidra 12.1.4 session on a source-owned Mach-O returned no
search_stringsmatches forΩprobe, whilesearch_bytesfound the known UTF-8 byte sequence at0x10000039cwith file-offset and coverage information. This is an inventory limitation, not a failed byte search or a claim that the hit proves text interpretation or use.Change and scope
Add one sentence to the existing MCP
search_stringsdescription.search_bytesremains Ghidra-only; the sentence names Ghidra explicitly. No tool, schema, matching, provider selection or runtime behavior changes. #8816 edits the same description for a separate raw-candidate issue; reconcile the wording if either PR lands first. Contribution scope decision: not applicable; catalog guidance for existing static tools.Contract and boundary impact
search_stringstool contract;search_bytescontinues to own byte-match and coverage semantics.Expected effects:
Evidence and regression coverage
Real Ghidra 12.1.4 and Kuna 1.990 on macOS arm64, compact and full stdio MCP: Ghidra string search returned no match, Ghidra byte search returned one match with coverage, and Kuna byte search returned
capability_unavailable. Successful responses validated against advertised output schemas. The source-owned, unexecuted target SHA-256ab0b231c1480722ebbd6d61a020d8f8b39928c94f471ea0ec23b33559d408ee5remained unchanged.Fresh before/after
tools/listcontrols in both schema profiles showed 234 tools, unchanged search input/output schemas and unchangedsearch_bytesdefinition. Thesearch_stringsdescription grew by 110 UTF-8 bytes. This is a byte count, not a token or whole-task measurement.In an isolated, manually conflict-resolved combination with fix(session): guide unsupported provider recovery #8567 head
b282fece7, real Kuna 1.990 and Ghidra 12.1.4 MCP controls in both profiles followed the encoded-literal workflow: Kuna search returned no match, its unavailable byte-search response directed candidate discovery, explicit Ghidra selection found the known UTF-16LE bytes, and an exported bundle retained the original Kuna search Evidence exactly. The target digest stayed unchanged. This validates the local combination and caller-driven handoff, not an automatic merge or agent choice.No controlled model/host selection trial was run; this establishes discoverable catalog wording and a working alternative, not an observed agent-selection improvement. Other hosts, encodings and targets remain unverified.
Observed, derived, and inferred claims remain distinguishable.
Artifact identity, source provenance, and failed attempts remain preserved.
Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.
Validation performed
npm run build:cached,npm run check:ci:fast, andnpm run docs:check— passed.Compatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.