Skip to content

Conversation

eiriktsarpalis
Copy link
Owner

@eiriktsarpalis eiriktsarpalis commented Sep 15, 2025

Following up on #2, this PR showcases how we could account for potential future breaking changes in the MCP protocol. It introduces two versioned DTOs corresponding to the model type. It also introduces an IMcpModelSerializer<T> interface that serves as the basis for dynamic DTO selection based on the current session via a set of shared combinators.

Copy link

@jeffhandley jeffhandley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks very good to me. The approach looks like it would scale very nicely without adding any compensating logic in unrelated places to the codebase.

@eiriktsarpalis eiriktsarpalis force-pushed the schema-breaking-changes-dto branch from 6d135bb to 0e1bae4 Compare September 19, 2025 13:28
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.

2 participants