Title: standardize tool metadata by adding annotation classes to sdk · Issue #224 · modelcontextprotocol/java-sdk · GitHub
Open Graph Title: standardize tool metadata by adding annotation classes to sdk · Issue #224 · modelcontextprotocol/java-sdk
X Title: standardize tool metadata by adding annotation classes to sdk · Issue #224 · modelcontextprotocol/java-sdk
Description: Expected Behavior It would be ideal to have Tool annotation classes (specifically Tool/ToolParam) be added to the mcp-java-sdk. Current Behavior Multiple, tool-specific annotations exist, the most prominent being spring's: https://github...
Open Graph Description: Expected Behavior It would be ideal to have Tool annotation classes (specifically Tool/ToolParam) be added to the mcp-java-sdk. Current Behavior Multiple, tool-specific annotations exist, the most ...
X Description: Expected Behavior It would be ideal to have Tool annotation classes (specifically Tool/ToolParam) be added to the mcp-java-sdk. Current Behavior Multiple, tool-specific annotations exist, the most ...
Opengraph URL: https://github.com/modelcontextprotocol/java-sdk/issues/224
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"standardize tool metadata by adding annotation classes to sdk","articleBody":"**Expected Behavior**\n\nIt would be ideal to have Tool annotation classes (specifically Tool/ToolParam) be added to the mcp-java-sdk.\n\n**Current Behavior**\n\nMultiple, tool-specific annotations exist, the most prominent being spring's:\n\nhttps://github.com/spring-projects/spring-ai/tree/main/spring-ai-model/src/main/java/org/springframework/ai/tool/annotation\n\nThese annotations (and the one interface dependency) should be a part of the java mcp-sdk itself, rather than require spring dependencies (or other emerging implementations).\n\n**Context**\nb\nIt would be helpful to have Tool/ToolParam/ToolAnnotations/ToolResult annotations that are part of the java sdk, so that the MCP developer would not have to change annotations to use a different framework. Having Tool/ToolParam/ToolAnnotations/ToolResult annotations as part of the mcp itself rather than spring or any other specific framework would aid in that effort.\n","author":{"url":"https://github.com/scottslewis","@type":"Person","name":"scottslewis"},"datePublished":"2025-05-07T18:37:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/224/java-sdk/issues/224"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1393dfd6-e7d0-6b07-5b54-715191aacfa5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A678:230951:F6DC4B:146A1D3:6A5C3E78 |
| html-safe-nonce | fccc2a646f76a6472c0e5eb687d90d7c9f958a6ca6ad6543c74e34a1faaa8571 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjc4OjIzMDk1MTpGNkRDNEI6MTQ2QTFEMzo2QTVDM0U3OCIsInZpc2l0b3JfaWQiOiIyNTU2MDA5ODk2NjE5MDMyMTg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e1325d436b2d8ba0f50bb6acd7dd405ffd4728bd532c309ac3f254d156c8d8ef |
| hovercard-subject-tag | issue:3046859389 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/modelcontextprotocol/java-sdk/224/issue_layout |
| twitter:image | https://opengraph.githubassets.com/07dfaacb6020775b0690bdae0639d39a4f1e5c7665a43b050665f019dd845ffe/modelcontextprotocol/java-sdk/issues/224 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/07dfaacb6020775b0690bdae0639d39a4f1e5c7665a43b050665f019dd845ffe/modelcontextprotocol/java-sdk/issues/224 |
| og:image:alt | Expected Behavior It would be ideal to have Tool annotation classes (specifically Tool/ToolParam) be added to the mcp-java-sdk. Current Behavior Multiple, tool-specific annotations exist, the most ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | scottslewis |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/modelcontextprotocol/java-sdk git https://github.com/modelcontextprotocol/java-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 919609219 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/java-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 919609219 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/java-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width