Add platform tool catalog fingerprint and hashOnly mode#7840
Open
andypalmi wants to merge 5 commits into
Open
Conversation
added 5 commits
July 15, 2026 15:51
…ures Compute a deterministic fingerprint of the platform tool catalog over each tool's name, description, input schema and annotations, sorted so it is stable regardless of enumeration order. Expose it via getCatalogHash() and include it in the mcp-get-features response. Add a hashOnly request option that returns only the fingerprint, letting a caller cheaply detect whether the catalog changed before pulling the full tool list. Backwards compatible: callers that ignore the field still receive the full list as before.
Fold each tool's title and _meta into computeCatalogHash and carry _meta through the wire tool definitions, so a change to either shifts the catalog fingerprint and a caller can detect it. Previously a title-only change left the fingerprint unchanged.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7840 +/- ##
==========================================
- Coverage 75.11% 75.04% -0.07%
==========================================
Files 430 430
Lines 22846 22867 +21
Branches 6055 6063 +8
==========================================
Hits 17160 17160
- Misses 5686 5707 +21
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Description
Adds a fingerprint to the platform automation tool features so a client can detect whether the platform tool catalog changed before pulling the full definition list.
computeCatalogHash(tools)— a cheap, non-cryptographic fingerprint over each tool's name, title, description, inputSchema, annotations and_meta, sorted for stability across enumeration order.PlatformAutomationHandlercaches it (getCatalogHash()) and includescatalogHashin theautomation:mcp-get-featuresreply.hashOnlyrequest returns{ catalogHash }without the full tool list, so a poller can skip the full fetch when the catalog is unchanged.Backwards compatible: a caller that ignores
catalogHashand never sendshashOnlygets the full list exactly as before.Related
FlowFuse/engineering#129