feat(resources): replace version_tool with mapbox://version resource#136
Merged
mattpodwysocki merged 1 commit intomainfrom Mar 5, 2026
Merged
feat(resources): replace version_tool with mapbox://version resource#136mattpodwysocki merged 1 commit intomainfrom
mattpodwysocki merged 1 commit intomainfrom
Conversation
Contributor
|
Assume this would constitute a major version release given it is a breaking change? If so, are there other changes we'd want to pack into a major release? If that is the case would it be better to start a feature branch for those changes until they are ready to go out. |
version_tool occupied a tool slot on every request without providing meaningful value during normal use. Version info is now available as a MCP resource at mapbox://version — zero token overhead, still accessible when needed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
dcde2b3 to
b9abcf8
Compare
ctufts
approved these changes
Mar 5, 2026
Contributor
ctufts
left a comment
There was a problem hiding this comment.
Approving as per offline convo about versioning
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
version_tooloccupied a slot in the tool list sent to the LLM on every request, burning tokens for something that's almost never needed during normal use. The MCP protocol already exposes server metadata during initialization handshake.This PR replaces it with a
mapbox://versionresource:readResource('mapbox://version')Changes
src/tools/version-tool/and testsCORE_TOOLSandsrc/tools/index.tssrc/resources/version/VersionResource.tsatmapbox://versionresourceRegistry.tsandresources/index.tsTest plan
npm run buildpassesnpm testpasses (611 tests)readResource('mapbox://version')returns version JSON in a client🤖 Generated with Claude Code