Server support (stdio) (#19)
* Server support (stdio) * TestServer project * Refactored McpClient class to extract shared endpoint logic (with McpServer) to a base class, McpJsonRpcEndpoint. * Improved xmldoc comments for protocol types, mirroring specification schema comments. * Update README.MD
This commit is contained in:
parent
c384c7d3de
commit
8fe797e1f3
1 changed files with 2668 additions and 659 deletions
28
src/mcpdotnet/Protocol/Types/InitializeRequestParams.cs
Normal file
28
src/mcpdotnet/Protocol/Types/InitializeRequestParams.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
namespace McpDotNet.Protocol.Types;
|
||||
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
/// <summary>
|
||||
/// Parameters for an initialization request sent to the server.
|
||||
/// <see href="https://github.com/modelcontextprotocol/specification/blob/main/schema/2024-11-05/schema.json">See the schema for details</see>
|
||||
/// </summary>
|
||||
public record InitializeRequestParams
|
||||
{
|
||||
/// <summary>
|
||||
/// The version of the Model Context Protocol that the client wants to use.
|
||||
/// </summary>
|
||||
[JsonPropertyName("protocolVersion")]
|
||||
|
||||
public required string ProtocolVersion { get; init; }
|
||||
/// <summary>
|
||||
/// The client's capabilities.
|
||||
/// </summary>
|
||||
[JsonPropertyName("capabilities")]
|
||||
public ClientCapabilities? Capabilities { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Information about the client implementation.
|
||||
/// </summary>
|
||||
[JsonPropertyName("clientInfo")]
|
||||
public required Implementation ClientInfo { get; init; }
|
||||
}
|
||||
Loading…
Reference in a new issue