Skip to content

Convert IMcpEndpoint, IMcpClient, and IMcpServer types to classes. #355

@eiriktsarpalis

Description

@eiriktsarpalis

Interface types are generally more difficult to evolve since introducing new members is by definition a breaking change. We should consider converting these to classes so that we can incorporate new methods in the future without issue.

More concretely, I expect this would entail the following changes:

  1. Extension methods acting on IMcpEndpoint instances could be changed to be regular methods
  2. The methods on McpClientFactory could be replaced with static factories on the McpClient class directly.

@stephentoub @halter73 @PederHP thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions