From d8bae5d6dbb846e17133063bbf9d259655a460e6 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Tue, 14 Oct 2025 17:39:03 -0400 Subject: [PATCH] Fix comments on McpServerTool/Prompt/Resource They were a bit out of date with the implementation. --- src/ModelContextProtocol.Core/Server/McpServerPrompt.cs | 6 +++++- src/ModelContextProtocol.Core/Server/McpServerResource.cs | 6 +++++- src/ModelContextProtocol.Core/Server/McpServerTool.cs | 4 ---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/ModelContextProtocol.Core/Server/McpServerPrompt.cs b/src/ModelContextProtocol.Core/Server/McpServerPrompt.cs index a7fa0e242..dafdd7f7c 100644 --- a/src/ModelContextProtocol.Core/Server/McpServerPrompt.cs +++ b/src/ModelContextProtocol.Core/Server/McpServerPrompt.cs @@ -105,9 +105,13 @@ namespace ModelContextProtocol.Server; /// Converted to a list of instances derived from the with . /// /// -/// of +/// of /// Converted to a list of instances derived from all of the instances with . /// +/// +/// +/// Returned directly without modification. +/// /// /// /// Other returned types will result in an being thrown. diff --git a/src/ModelContextProtocol.Core/Server/McpServerResource.cs b/src/ModelContextProtocol.Core/Server/McpServerResource.cs index 2a43e3349..00d89c774 100644 --- a/src/ModelContextProtocol.Core/Server/McpServerResource.cs +++ b/src/ModelContextProtocol.Core/Server/McpServerResource.cs @@ -90,7 +90,7 @@ namespace ModelContextProtocol.Server; /// Wrapped in a list containing the single . /// /// -/// +/// /// Converted to a list containing a single . /// /// @@ -113,6 +113,10 @@ namespace ModelContextProtocol.Server; /// of /// Converted to a list containing a , one for each . /// +/// +/// +/// Returned directly without modification. +/// /// /// /// Other returned types will result in an being thrown. diff --git a/src/ModelContextProtocol.Core/Server/McpServerTool.cs b/src/ModelContextProtocol.Core/Server/McpServerTool.cs index 4136f5913..6948ea912 100644 --- a/src/ModelContextProtocol.Core/Server/McpServerTool.cs +++ b/src/ModelContextProtocol.Core/Server/McpServerTool.cs @@ -110,10 +110,6 @@ namespace ModelContextProtocol.Server; /// Returned as a single-item list. /// /// -/// of -/// Each is converted to a object with its text set to the string value. -/// -/// /// of /// Each is converted to a object using . ///