You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ModelContextProtocol.Core/Client/McpClientResource.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ public McpClientResource(McpClient client, Resource resource)
80
80
/// <returns>A <see cref="ValueTask{ReadResourceResult}"/> containing the resource's result with content and messages.</returns>
81
81
/// <remarks>
82
82
/// <para>
83
-
/// This is a convenience method that internally calls <see cref="McpClient.ReadResourceAsync(string, System.Text.Json.Nodes.JsonObject, CancellationToken)"/>.
83
+
/// This is a convenience method that internally calls <see cref="McpClient.ReadResourceAsync(string, RequestOptions, CancellationToken)"/>.
/// <param name="progressToken">The <see cref="ProgressToken"/> identifying the operation for which progress is being reported.</param>
154
154
/// <param name="progress">The progress update to send, containing information such as percentage complete or status message.</param>
155
-
/// <param name="meta">Optional metadata to include in the notification.</param>
155
+
/// <param name="options">Optional request options including metadata, serialization settings, and progress tracking.</param>
156
156
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
157
157
/// <returns>A task representing the completion of the notification operation (not the operation being tracked).</returns>
158
158
/// <exception cref="ArgumentNullException">The current session instance is <see langword="null"/>.</exception>
Copy file name to clipboardExpand all lines: src/ModelContextProtocol.Core/Server/McpServerOptions.cs
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ public sealed class McpServerOptions
21
21
/// </summary>
22
22
/// <remarks>
23
23
/// These determine which features will be available when a client connects.
24
-
/// Capabilities can include "tools", "prompts", "resources", "logging", and other
24
+
/// Capabilities can include "tools", "prompts", "resources", "logging", and other
25
25
/// protocol-specific functionality.
26
26
/// </remarks>
27
27
publicServerCapabilities?Capabilities{get;set;}
@@ -84,21 +84,21 @@ public sealed class McpServerOptions
84
84
/// Gets the filter collections for MCP server handlers.
85
85
/// </summary>
86
86
/// <remarks>
87
-
/// This property provides access to filter collections that can be used to modify the behavior
88
-
/// of various MCP server handlers. Filters are applied in reverse order, so the last filter
87
+
/// This property provides access to filter collections that can be used to modify the behavior
88
+
/// of various MCP server handlers. Filters are applied in reverse order, so the last filter
89
89
/// added will be the outermost (first to execute).
90
90
/// </remarks>
91
91
publicMcpServerFiltersFilters{get;}=new();
92
92
93
93
/// <summary>
94
94
/// Gets or sets the container of handlers used by the server for processing protocol messages.
95
95
/// </summary>
96
-
publicMcpServerHandlersHandlers
97
-
{
96
+
publicMcpServerHandlersHandlers
97
+
{
98
98
get=>field??=new();
99
99
set
100
-
{
101
-
Throw.IfNull(value);
100
+
{
101
+
Throw.IfNull(value);
102
102
field=value;
103
103
}
104
104
}
@@ -143,7 +143,7 @@ public McpServerHandlers Handlers
143
143
/// when those are provided:
144
144
/// </para>
145
145
/// <para>
146
-
/// - For <see cref="RequestMethods.PromptsList"/> requests: The server returns all prompts from this collection
146
+
/// - For <see cref="RequestMethods.PromptsList"/> requests: The server returns all prompts from this collection
147
147
/// plus any additional prompts provided by the <see cref="McpServerHandlers.ListPromptsHandler"/> if it's set.
148
148
/// </para>
149
149
/// <para>
@@ -158,7 +158,7 @@ public McpServerHandlers Handlers
158
158
/// </summary>
159
159
/// <remarks>
160
160
/// <para>
161
-
/// This value is used in <see cref="McpServer.SampleAsync(IEnumerable{Microsoft.Extensions.AI.ChatMessage}, Microsoft.Extensions.AI.ChatOptions?, System.Text.Json.Nodes.JsonObject?, CancellationToken)"/>
161
+
/// This value is used in <see cref="McpServer.SampleAsync(IEnumerable{Microsoft.Extensions.AI.ChatMessage}, Microsoft.Extensions.AI.ChatOptions?, RequestOptions?, CancellationToken)"/>
162
162
/// when <see cref="Microsoft.Extensions.AI.ChatOptions.MaxOutputTokens"/> is not set in the request options.
0 commit comments