-
Notifications
You must be signed in to change notification settings - Fork 77
feat: add tool annotations according to 2025-03-26 spec #71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: add tool annotations according to 2025-03-26 spec #71
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (2)
src/jvmTest/kotlin/client/ClientTest.kt:526
- Consider adding a test case with non-null annotations to validate the behavior when actual annotation data is provided.
annotations = null,
src/commonTest/kotlin/ToolSerializationTest.kt:36
- Consider including a test scenario for serializing/deserializing a Tool with non-null annotations to ensure full coverage of the new feature.
annotations = null,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, would be nice to have a sample as well
Hi @e5l, Ill look into it. Thanks for the feedback! |
Hi @e5l, shall i add it in the weather server sample? |
yep, it would be great |
@e5l Is there anything else required from my end to get this PR merged? |
Could you run apiDump task and commit the result? |
…nKai/kotlin-sdk into sean/tool-annotations
Head branch was pushed to by a user without write access
@e5l i have commited the result. Should i do so for the other 2 PRs? |
Motivation and Context
Add tool annotations to provide additional properties describing a Tool to clients.
How Has This Been Tested?
NA
Breaking Changes
NA
Types of changes
Checklist
Additional context
References:
https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/schema/2025-03-26/schema.ts#L737