Skip to content
Discussion options

You must be logged in to vote

Is there an example somewhere that shows how to implement the tool methods as instance methods on a type?

There are a few examples in the repo, e.g. https://github.com/modelcontextprotocol/csharp-sdk/blob/main/samples/AspNetCoreMcpServer/Tools/WeatherTools.cs.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rockfordlhotka
Comment options

Answer selected by rockfordlhotka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants