Repository navigation
Store tool icons in the tool surface snapshot - #31
Merged
Merged
Conversation
Keep formatVersion 1 and omit icons when a tool has none, so existing snapshot files stay the same. Icon changes are non-breaking.
The report format already lists every tool-surface change kind. This adds icons-changed so an icon diff is valid JSON and has a SARIF rule.
ShmueLior
added a commit
that referenced
this pull request
Dec 4, 2026
Keep the prompt-lint CHANGELOG bullet and the icons bullet from #31, and keep both the prompt/fingerprint tests and DiffJson_IconChange_IsIconsChanged.
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.
Store tool icons in the tool surface snapshot
Tool snapshots now keep each tool's
icons(src, plus optionalmimeType,sizesandtheme).formatVersionstays 1. When a tool has no icons the field is left out, so existing snapshot files stay byte-identical (checked with the WeatherServer snapshot against main).IconContractonToolContract.Icons, in server order.IconsChanged(non-breaking, appended at the end of the enum).data:icons are stored as declared. Diff messages shorten them todata:<mime>;base64,... (N bytes).iconsmeans no icons."icons": null, a non-array, or an icon without a non-emptysrcis an error. Unknown icon properties are ignored.srcfrom a live server is left out of the snapshot, so the file can always be read back.Tests: full suite 1452 passed on net8.0 and net10.0, Release, 0 warnings. Rebased onto main after PR #30 (F14).
IconsChanged/icons-changedis in the JSON and SARIF reports and indocs/mcpprobe-report.schema.json.This branch was rebased onto main (c4485b3). The only rebase conflict was CHANGELOG; both sides were kept (icons bullet first, then the F14, F15 and F16 bullets).
Likely remaining conflicts: