Skip to content

Add tool annotations - #66

Merged
mattt merged 1 commit into
mainfrom
mattt/tool-annotations
May 9, 2025
Merged

Add tool annotations#66
mattt merged 1 commit into
mainfrom
mattt/tool-annotations

Conversation

@mattt

@mattt mattt commented May 9, 2025

Copy link
Copy Markdown
Owner

New in the latest version of the MCP spec (2025-03-26) is the ability to annotate tools, for example to denote that a tool is readonly or destructive, or fetches data from the Internet.

This PR adds annotations to all of iMCP's existing tools. This doesn't change the behavior of tools, but instead provides additional context that may change how some clients interact with iMCP.

}

Tool(
name: "getHourlyForecastForLocation",

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Messy diff from re-ordering tool declarations 😞

@mattt
mattt merged commit aeb4b60 into main May 9, 2025
@mattt
mattt deleted the mattt/tool-annotations branch May 9, 2025 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant