Skip to content

Conversation

@aaronpowell
Copy link
Contributor

@aaronpowell aaronpowell commented Mar 31, 2025

This is an implementation of https://www.npmjs.com/package/@modelcontextprotocol/server-everything

The objective of this sample is to have all the usage covered using the .NET SDK and ensure that we can implement as much complexity as possible.

Improvements can be done with the completion of #70 and #72.

The only thing I think that is missing from here is logging - I can't find a way to set that. Logging implemented. I added a WithSetLoggingLevelHandler method to the McpServerBuilder and fixed the McpServerHandlers that wasn't exposing logging capabilities.

Commit history is a bit of a mess as I kept merging with branches as I was updating gaps.

aaronpowell and others added 30 commits March 24, 2025 13:14
This will mean we can return multiple AIContent objects from a tool, such as a mixed text/image set

Contributes to modelcontextprotocol#68
- Introducing separate classes for Text and Blob ResourceContents
- Custom JSON converter to allow those types to be returned, making it easier to follow the type system against the spec
- Updated tests
Co-authored-by: Stephen Toub <[email protected]>
Co-authored-by: Peder Holdgaard Pedersen <[email protected]>
@aaronpowell
Copy link
Contributor Author

@PederHP - Added logging in a similar design to TestServer.

Also added a new method to the McpServerBuilder so you can set it there (it's not super easy otherwise if you're using the builder pattern).

@aaronpowell aaronpowell requested a review from halter73 April 2, 2025 23:18
@aaronpowell aaronpowell requested a review from halter73 April 3, 2025 00:26
@halter73 halter73 merged commit 01410df into modelcontextprotocol:main Apr 4, 2025
8 checks passed
@halter73
Copy link
Contributor

halter73 commented Apr 4, 2025

Thank you!

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.

4 participants