Skip to content
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

refactor(client): improve validation and remove server methods #14

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tzolov
Copy link
Contributor

@tzolov tzolov commented Feb 18, 2025

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

Resolves #13

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

Resolves #13

Signed-off-by: Christian Tzolov <[email protected]>
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.

Improve MCP Client Validation and Protocol Compliance
2 participants