csharp-sdk/src/ModelContextProtocol/Server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Aaron Powell 3c0679e92b
Overhaul of Resources (#125)
* Supporting resource templates with read resource callback

Fixes #123

* Aligning the resource data structures with the 2024-11-05 schema

- 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

* Apply suggestions from code review

Co-authored-by: Stephen Toub <stoub@microsoft.com>
Co-authored-by: Peder Holdgaard Pedersen <127606677+PederHP@users.noreply.github.com>

* Putting files back where they belong

* Adding an internal constructor to prevent overloads

* Addressing feedback

* Apply suggestions from code review

Co-authored-by: Stephen Toub <stoub@microsoft.com>

* Update src/ModelContextProtocol/Protocol/Types/ResourceContents.cs

* Addressing feedback

---------

Co-authored-by: Stephen Toub <stoub@microsoft.com>
Co-authored-by: Peder Holdgaard Pedersen <127606677+PederHP@users.noreply.github.com>
2025-03-30 22:45:03 -04:00
..
AIFunctionMcpServerTool.cs Add ToolAnnotations support (#124) 2025-03-28 11:08:29 -04:00
DelegatingMcpServerTool.cs Overhaul tool handling (#89) 2025-03-25 15:32:46 -04:00
IMcpServer.cs Refactor transports to help enable graceful shutdown (#142) 2025-03-30 17:10:14 -07:00
McpServer.cs Overhaul of Resources (#125) 2025-03-30 22:45:03 -04:00
McpServerException.cs Rename project and namespaces 2025-03-19 15:02:38 +02:00
McpServerExtensions.cs Add ToolAnnotations support (#124) 2025-03-28 11:08:29 -04:00
McpServerFactory.cs Refactor transports to help enable graceful shutdown (#142) 2025-03-30 17:10:14 -07:00
McpServerHandlers.cs Make options types fully mutable (#107) 2025-03-26 10:39:49 -07:00
McpServerOptions.cs Rename project and namespaces 2025-03-19 15:02:38 +02:00
McpServerTool.cs Add ToolAnnotations support (#124) 2025-03-28 11:08:29 -04:00
McpServerToolAttribute.cs Add ToolAnnotations support (#124) 2025-03-28 11:08:29 -04:00
McpServerToolCollection.cs Overhaul tool handling (#89) 2025-03-25 15:32:46 -04:00
McpServerToolCreateOptions.cs Add ToolAnnotations support (#124) 2025-03-28 11:08:29 -04:00
McpServerToolTypeAttribute.cs Overhaul tool handling (#89) 2025-03-25 15:32:46 -04:00
RequestContext.cs Rename project and namespaces 2025-03-19 15:02:38 +02:00
TemporaryAIFunctionFactory.cs Add [McpServerTool] support for instance methods (#100) 2025-03-26 09:34:30 -04:00
TemporaryAIFunctionFactory.Utilities.cs Overhaul tool handling (#89) 2025-03-25 15:32:46 -04:00
TemporaryAIFunctionFactoryOptions.cs Overhaul tool handling (#89) 2025-03-25 15:32:46 -04:00