Skip to content

Conversation

stephentoub
Copy link
Contributor

As long as I was touching the request handlers, I also made a change I've been meaning to make, which is to have all of these delegate callbacks return ValueTask instead of Task.

Fixes #234
Fixes #198

@stephentoub stephentoub requested a review from halter73 April 11, 2025 03:54
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.

It might also be interesting to do the same thing for client notification/sampling/roots handlers, but I agree the server is the most important.

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.

[McpServerToolType] class does not support dependency injection for constructors with parameters Resolving scoped service is not supported
2 participants