Skip to content

Remove McpServerConfig and have McpClientFactory accept IClientTransport instances directly. #230

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

Conversation

eiriktsarpalis
Copy link
Contributor

Posting as draft to get early feedback on the direction being taken here.

Copy link
Contributor

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

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

Direction lgtm

Copy link
Contributor

@halter73 halter73 left a comment

Choose a reason for hiding this comment

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

I think this looks good aside from disposing the IClientTransport when ConnectAsync throws.

@eiriktsarpalis eiriktsarpalis marked this pull request as ready for review April 8, 2025 14:04
@eiriktsarpalis eiriktsarpalis merged commit 3e21f35 into modelcontextprotocol:main Apr 8, 2025
13 of 15 checks passed
@eiriktsarpalis eiriktsarpalis deleted the rework-client branch April 8, 2025 16: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