java-sdk/mcp-test
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Christian Tzolov 718042644a
refactor(client): improve validation and remove server methods (#14)
Add client initialization and capability validation checks

- New isInitialized() method to check client state
- Validate server capabilities before tool/resource operations
- Add clear error messages for common failure cases
- Remove server-side notification methods from client: sendResourcesListChanged(), promptListChangedNotification()
- Improve protocol version handling
- Testing improvements and new initialization tests
- Redesign MockMcpTransport internals and adapt tests
- Correct McpError messages
- clean unused imports

Resolves #13

Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
Signed-off-by: Dariusz Jędrzejczyk <dariusz.jedrzejczyk@broadcom.com>
Co-authored-by: Dariusz Jędrzejczyk <dariusz.jedrzejczyk@broadcom.com>
2025-02-27 10:00:04 +01:00
..
src/main/java/io/modelcontextprotocol refactor(client): improve validation and remove server methods (#14) 2025-02-27 10:00:04 +01:00
pom.xml Next development version 0.8.0-SNAPSHOT 2025-02-14 13:39:20 +01:00