Skip to content

standard tool annotation classes #270

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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

scottslewis
Copy link

@scottslewis scottslewis commented May 27, 2025

See issue #224

New annotation @interface classes for Tool, ToolParam, ToolAnnotations, ToolResult annotations.

Motivation and Context

Currently, each framework vendor (e.g. Spring, others) is defining it's own Java annotation classes, which binds (by package namespace) these annotations to a specific framework. Including these as part of the java mcp sdk will allow developers to use any framework rather than bind these classes to a specific framework.

How Has This Been Tested?

Have tested here: https://github.com/ECF/Py4j-RemoteServicesProvider/blob/master/examples/org.eclipse.ecf.examples.ai.mcp.toolservice/src/org/eclipse/ecf/examples/ai/mcp/toolservice/ArithmeticTools.java

I'm completely willing to write and contribute automated tests.

Breaking Changes

Only breaking changes will be for developers that are using the framework-specific annotations currently.

Yes as per above.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • [X ] New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • [ X] I have read the MCP Documentation
  • [X ] My code follows the repository's style guidelines
  • [X ] New and existing tests pass locally
  • [ X] I have added appropriate error handling
  • [ X] I have added or updated documentation as needed

@scottslewis scottslewis changed the title standard tool annotation classes #235 standard tool annotation classes May 27, 2025
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