Skip to content

Commit 1cb8fac

Browse files
committed
Add remarks for empty protocol capability types
1 parent 0a0ff59 commit 1cb8fac

4 files changed

Lines changed: 22 additions & 4 deletions

File tree

src/ModelContextProtocol.Core/Protocol/CompletionsCapability.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ namespace ModelContextProtocol.Protocol;
1616
/// <para>
1717
/// See the <see href="https://github.com/modelcontextprotocol/specification/blob/main/schema/">schema</see> for details.
1818
/// </para>
19+
/// <para>
20+
/// This class is intentionally empty as the Model Context Protocol specification does not
21+
/// currently define additional properties for sampling capabilities. Future versions of the
22+
/// specification may extend this capability with additional configuration options.
23+
/// </para>
1924
/// </remarks>
2025
public sealed class CompletionsCapability
2126
{
22-
// Currently empty in the spec, but may be extended in the future.
2327
}

src/ModelContextProtocol.Core/Protocol/ElicitationCapability.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ namespace ModelContextProtocol.Protocol;
1111
/// When this capability is enabled, an MCP server can request the client to provide additional information
1212
/// during interactions. The client must set a <see cref="ModelContextProtocol.Client.McpClientHandlers.ElicitationHandler"/> to process these requests.
1313
/// </para>
14+
/// <para>
15+
/// This class is intentionally empty as the Model Context Protocol specification does not
16+
/// currently define additional properties for sampling capabilities. Future versions of the
17+
/// specification may extend this capability with additional configuration options.
18+
/// </para>
1419
/// </remarks>
1520
public sealed class ElicitationCapability
1621
{
17-
// Currently empty in the spec, but may be extended in the future.
1822
}

src/ModelContextProtocol.Core/Protocol/LoggingCapability.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@ namespace ModelContextProtocol.Protocol;
44
/// Represents the logging capability configuration for a Model Context Protocol server.
55
/// </summary>
66
/// <remarks>
7+
/// <para>
78
/// This capability allows clients to set the logging level and receive log messages from the server.
89
/// See the <see href="https://github.com/modelcontextprotocol/specification/blob/main/schema/">schema</see> for details.
10+
/// </para>
11+
/// <para>
12+
/// This class is intentionally empty as the Model Context Protocol specification does not
13+
/// currently define additional properties for sampling capabilities. Future versions of the
14+
/// specification may extend this capability with additional configuration options.
15+
/// </para>
916
/// </remarks>
1017
public sealed class LoggingCapability
1118
{
12-
// Currently empty in the spec, but may be extended in the future
1319
}

src/ModelContextProtocol.Core/Protocol/SamplingCapability.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ namespace ModelContextProtocol.Protocol;
1111
/// When this capability is enabled, an MCP server can request the client to generate content
1212
/// using an AI model. The client must set a <see cref="ModelContextProtocol.Client.McpClientHandlers.SamplingHandler"/> to process these requests.
1313
/// </para>
14+
/// <para>
15+
/// This class is intentionally empty as the Model Context Protocol specification does not
16+
/// currently define additional properties for sampling capabilities. Future versions of the
17+
/// specification may extend this capability with additional configuration options.
18+
/// </para>
1419
/// </remarks>
1520
public sealed class SamplingCapability
1621
{
17-
// Currently empty in the spec, but may be extended in the future
1822
}

0 commit comments

Comments
 (0)