feat(everything): add tool annotations to reference implementation#3664
Open
owendevereaux wants to merge 1 commit intomodelcontextprotocol:mainfrom
Open
feat(everything): add tool annotations to reference implementation#3664owendevereaux wants to merge 1 commit intomodelcontextprotocol:mainfrom
owendevereaux wants to merge 1 commit intomodelcontextprotocol:mainfrom
Conversation
Add MCP tool annotations (readOnlyHint, destructiveHint, idempotentHint) to tools in the everything server, which serves as a reference implementation for MCP features. Updated tools: - echo: readOnly, idempotent (pure function) - get-sum: readOnly, idempotent (pure computation) - get-env: readOnly, idempotent (environment lookup) - get-tiny-image: readOnly, idempotent (static image) - get-annotated-message: readOnly, idempotent (message formatting) - get-structured-content: readOnly, idempotent (content generation) - toggle-simulated-logging: not readOnly, not idempotent (state toggle) This aligns the everything server with other MCP servers (filesystem, fetch, memory, git, time) that already include tool annotations.
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
Add MCP tool annotations to the everything server, which serves as a reference implementation for MCP features.
Changes
Added
readOnlyHint,destructiveHint, andidempotentHintannotations to 7 tools:Motivation
The everything server demonstrates MCP protocol features and is often referenced as an example. Adding annotations:
Testing
npm run buildpasses in src/everythingRelated