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/Protocol/ClientCapabilities.cs
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
namespaceModelContextProtocol.Protocol;
7
7
8
8
/// <summary>
9
-
/// Represents the capabilities that a client may support.
9
+
/// Represents the capabilities that a client supports.
10
10
/// </summary>
11
11
/// <remarks>
12
12
/// <para>
@@ -24,13 +24,13 @@ public sealed class ClientCapabilities
24
24
/// </summary>
25
25
/// <remarks>
26
26
/// <para>
27
-
/// The <see cref="Experimental"/> dictionary allows clients to advertise support for features that are not yet
28
-
/// standardized in the Model Context Protocol specification. This extension mechanism enables
27
+
/// The <see cref="Experimental"/> dictionary allows clients to advertise support for features that are not yet
28
+
/// standardized in the Model Context Protocol specification. This extension mechanism enables
29
29
/// future protocol enhancements while maintaining backward compatibility.
30
30
/// </para>
31
31
/// <para>
32
-
/// Values in this dictionary are implementation-specific and should be coordinated between client
33
-
/// and server implementations. Servers should not assume the presence of any experimental capability
32
+
/// Values in this dictionary are implementation-specific and should be coordinated between client
33
+
/// and server implementations. Servers should not assume the presence of any experimental capability
34
34
/// without checking for it first.
35
35
/// </para>
36
36
/// </remarks>
@@ -42,7 +42,7 @@ public sealed class ClientCapabilities
42
42
/// </summary>
43
43
/// <remarks>
44
44
/// <para>
45
-
/// When <see cref="Roots"/> is non-<see langword="null"/>, the client indicates that it can respond to
45
+
/// When <see cref="Roots"/> is non-<see langword="null"/>, the client indicates that it can respond to
46
46
/// server requests for listing root URIs. Root URIs serve as entry points for resource navigation in the protocol.
47
47
/// </para>
48
48
/// <para>
@@ -54,14 +54,14 @@ public sealed class ClientCapabilities
54
54
publicRootsCapability?Roots{get;set;}
55
55
56
56
/// <summary>
57
-
/// Gets or sets the client's sampling capability, which indicates whether the client
57
+
/// Gets or sets the client's sampling capability, which indicates whether the client
58
58
/// supports issuing requests to an LLM on behalf of the server.
59
59
/// </summary>
60
60
[JsonPropertyName("sampling")]
61
61
publicSamplingCapability?Sampling{get;set;}
62
62
63
63
/// <summary>
64
-
/// Gets or sets the client's elicitation capability, which indicates whether the client
64
+
/// Gets or sets the client's elicitation capability, which indicates whether the client
65
65
/// supports elicitation of additional information from the user on behalf of the server.
66
66
/// </summary>
67
67
[JsonPropertyName("elicitation")]
@@ -70,7 +70,7 @@ public sealed class ClientCapabilities
70
70
/// <summary>Gets or sets notification handlers to register with the client.</summary>
71
71
/// <remarks>
72
72
/// <para>
73
-
/// When constructed, the client will enumerate these handlers once, which may contain multiple handlers per notification method key.
73
+
/// When constructed, the client will enumerate these handlers, which may contain multiple handlers per notification method key, once.
74
74
/// The client will not re-enumerate the sequence after initialization.
75
75
/// </para>
76
76
/// <para>
@@ -80,12 +80,12 @@ public sealed class ClientCapabilities
80
80
/// </para>
81
81
/// <para>
82
82
/// Handlers provided via <see cref="NotificationHandlers"/> will be registered with the client for the lifetime of the client.
83
-
/// For transient handlers, <see cref="McpSession.RegisterNotificationHandler"/> may be used to register a handler that can
83
+
/// For transient handlers, <see cref="McpSession.RegisterNotificationHandler"/> can be used to register a handler that can
84
84
/// then be unregistered by disposing of the <see cref="IAsyncDisposable"/> returned from the method.
85
85
/// </para>
86
86
/// </remarks>
87
87
[JsonIgnore]
88
88
[Obsolete($"Use {nameof(McpClientOptions.Handlers.NotificationHandlers)} instead. This member will be removed in a subsequent release.")]// See: https://github.com/modelcontextprotocol/csharp-sdk/issues/774
/// This class is intentionally empty as the Model Context Protocol specification does not
25
25
/// currently define additional properties for sampling capabilities. Future versions of the
26
-
/// specification may extend this capability with additional configuration options.
26
+
/// specification might extend this capability with additional configuration options.
27
27
/// </para>
28
28
/// </remarks>
29
29
publicsealedclassCompletionsCapability
@@ -40,4 +40,4 @@ public sealed class CompletionsCapability
40
40
[Obsolete($"Use {nameof(McpServerOptions.Handlers.CompleteHandler)} instead. This member will be removed in a subsequent release.")]// See: https://github.com/modelcontextprotocol/csharp-sdk/issues/774
/// When overridden in a derived class, gets the type of content.
37
37
/// </summary>
38
+
/// <value>
39
+
/// The type of content. Valid values include "image", "audio", "text", "resource", "resource_link", "tool_use", and "tool_result".
40
+
/// </value>
38
41
/// <remarks>
39
-
/// This determines the structure of the content object. Valid values include "image", "audio", "text", "resource", "resource_link", "tool_use", and "tool_result".
42
+
/// This value determines the structure of the content object.
40
43
/// </remarks>
41
44
[JsonPropertyName("type")]
42
45
publicabstractstringType{get;}
@@ -381,9 +384,7 @@ public sealed class ImageContentBlock : ContentBlock
381
384
/// Gets or sets the MIME type (or "media type") of the content, specifying the format of the data.
382
385
/// </summary>
383
386
/// <remarks>
384
-
/// <para>
385
387
/// Common values include "image/png" and "image/jpeg".
386
-
/// </para>
387
388
/// </remarks>
388
389
[JsonPropertyName("mimeType")]
389
390
publicrequiredstringMimeType{get;set;}
@@ -405,9 +406,7 @@ public sealed class AudioContentBlock : ContentBlock
405
406
/// Gets or sets the MIME type (or "media type") of the content, specifying the format of the data.
406
407
/// </summary>
407
408
/// <remarks>
408
-
/// <para>
409
409
/// Common values include "audio/wav" and "audio/mp3".
410
-
/// </para>
411
410
/// </remarks>
412
411
[JsonPropertyName("mimeType")]
413
412
publicrequiredstringMimeType{get;set;}
@@ -427,7 +426,7 @@ public sealed class EmbeddedResourceBlock : ContentBlock
427
426
/// </summary>
428
427
/// <remarks>
429
428
/// <para>
430
-
/// Resources can be either text-based (<see cref="TextResourceContents"/>) or
429
+
/// Resources can be either text-based (<see cref="TextResourceContents"/>) or
431
430
/// binary (<see cref="BlobResourceContents"/>), allowing for flexible data representation.
432
431
/// Each resource has a URI that can be used for identification and retrieval.
433
432
/// </para>
@@ -463,7 +462,7 @@ public sealed class ResourceLinkBlock : ContentBlock
463
462
/// </summary>
464
463
/// <remarks>
465
464
/// <para>
466
-
/// This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a \"hint\" to the model.
465
+
/// This description can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a \"hint\" to the model.
467
466
/// </para>
468
467
/// <para>
469
468
/// The description should provide clear context about the resource's content, format, and purpose.
@@ -487,7 +486,7 @@ public sealed class ResourceLinkBlock : ContentBlock
487
486
/// "image/png" for PNG images, and "application/json" for JSON data.
488
487
/// </para>
489
488
/// <para>
490
-
/// This property may be <see langword="null"/> if the MIME type is unknown or not applicable for the resource.
489
+
/// This property can be <see langword="null"/> if the MIME type is unknown or not applicable for the resource.
491
490
/// </para>
492
491
/// </remarks>
493
492
[JsonPropertyName("mimeType")]
@@ -497,7 +496,7 @@ public sealed class ResourceLinkBlock : ContentBlock
497
496
/// Gets or sets the size of the raw resource content (before base64 encoding), in bytes, if known.
498
497
/// </summary>
499
498
/// <remarks>
500
-
/// This can be used by applications to display file sizes and estimate context window usage.
499
+
/// This value can be used by applications to display file sizes and estimate context window usage.
501
500
/// </remarks>
502
501
[JsonPropertyName("size")]
503
502
publiclong?Size{get;set;}
@@ -541,7 +540,7 @@ public sealed class ToolResultContentBlock : ContentBlock
541
540
/// Gets or sets the ID of the tool use this result corresponds to.
542
541
/// </summary>
543
542
/// <remarks>
544
-
/// This must match the ID from a previous <see cref="ToolUseContentBlock"/>.
543
+
/// This value must match the ID from a previous <see cref="ToolUseContentBlock"/>.
545
544
/// </remarks>
546
545
[JsonPropertyName("toolUseId")]
547
546
publicrequiredstringToolUseId{get;set;}
@@ -550,7 +549,7 @@ public sealed class ToolResultContentBlock : ContentBlock
550
549
/// Gets or sets the unstructured result content of the tool use.
551
550
/// </summary>
552
551
/// <remarks>
553
-
/// This has the same format as CallToolResult.Content and can include text, images,
552
+
/// This value has the same format as CallToolResult.Content and can include text, images,
554
553
/// audio, resource links, and embedded resources.
555
554
/// </remarks>
556
555
[JsonPropertyName("content")]
@@ -560,17 +559,19 @@ public sealed class ToolResultContentBlock : ContentBlock
560
559
/// Gets or sets an optional structured result object.
561
560
/// </summary>
562
561
/// <remarks>
563
-
/// If the tool defined an outputSchema, this should conform to that schema.
562
+
/// If the tool defined an outputSchema, this object should conform to that schema.
564
563
/// </remarks>
565
564
[JsonPropertyName("structuredContent")]
566
565
publicJsonElement?StructuredContent{get;set;}
567
566
568
567
/// <summary>
569
-
/// Gets or sets whether the tool use resulted in an error.
568
+
/// Gets or sets a value that indicates whether the tool use resulted in an error.
570
569
/// </summary>
570
+
/// <value>
571
+
/// <see langword="true"/> if the tool use resulted in an error; <see langword="false"/> if it succeeded. The default is <see langword="false"/>.
572
+
/// </value>
571
573
/// <remarks>
572
-
/// If true, the content typically describes the error that occurred.
573
-
/// Default: false
574
+
/// If <see langword="true"/>, the content typically describes the error that occurred.
0 commit comments