java-sdk/mcp-test
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Christian Tzolov 901175e14f refactor: deprecate tool spec's arguments-only handler in favor of CallToolRequest (#375)
Tool handlers now receive CallToolRequest instead of raw arguments to
enable access to additional metadata parameters like progressToken

- Deprecate  handlers that take only Map<String, Object> arguments
- Introduce new  handlers that receive the full CallToolRequest object
- Maintain backward compatibility with deprecated call handlers
- Enhance API to provide access to complete tool request context beyond just arguments
- Add builder pattern for AsyncToolSpecification and SyncToolSpecification
- Add duplicate tool name validation during server building and runtime registration
- Update all test files to use new callTool handlers and builder pattern
- Add test coverage for new builder functionality and CallToolRequest handling

Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
2025-07-11 11:43:43 +02:00
..
src/main/java/io/modelcontextprotocol refactor: deprecate tool spec's arguments-only handler in favor of CallToolRequest (#375) 2025-07-11 11:43:43 +02:00
pom.xml refactor: consolidate content annotations into Annotations (#242) 2025-06-17 17:37:23 +02:00