Skip to content

Conversation

@eiriktsarpalis
Copy link
Member

@eiriktsarpalis eiriktsarpalis commented Apr 1, 2025

This PR updates the JSON serialization aspects of the IMcpClient and IMcpServer abstractions in the following ways:

  • Removes serialization concerns from the core IMcpEndpoint signature by making its SendRequestAsync non generic.
  • JSON-RPC parameter and result serialization is now exclusively handled using extension methods over the abstractions.
  • Extension methods accepting user-defined objects now accept an optional JsonSerializerOptions overload that can be used to override serialization settings.
  • Serialization of the built-in implementations now hardcode to the source generator where applicable.

@eiriktsarpalis eiriktsarpalis force-pushed the non-generic-abstractions branch from 0e8c530 to 0b2a071 Compare April 2, 2025 09:45
@eiriktsarpalis eiriktsarpalis marked this pull request as ready for review April 2, 2025 09:45
@eiriktsarpalis eiriktsarpalis force-pushed the non-generic-abstractions branch from 69b3c77 to becdd3e Compare April 2, 2025 15:37
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.

3 participants