Skip to content

fix: custom result deserialization conflic with rust_mcp_schema::Result #44

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

Merged
merged 5 commits into from
Mar 8, 2025

Conversation

hashemix
Copy link
Member

@hashemix hashemix commented Mar 8, 2025

📌 Summary

The deserialize implementation for ResultFromServer was inconsistent with ResultFromClient, leading to ping results from various MCP servers being deserialized into a CustomResult instead of a ServerResult.

This issue arose because rust_mcp_schema::Result overlaps with CustomResult, as both can accept arbitrary attributes.

The deserialize implementation has been updated to correctly return the appropriate type. However, CustomResult will be deprecated in favor of rust_mcp_schema::Result to eliminate this conflict.

@hashemix hashemix self-assigned this Mar 8, 2025
@hashemix hashemix changed the title fix: CustomResult deserialization fix: custom result deserialization conflic with rust_mcp_schema::Result Mar 8, 2025
@hashemix hashemix merged commit f141060 into main Mar 8, 2025
2 checks passed
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