Initial commit
This commit is contained in:
commit
fdbd94b3f9
1 changed files with 2833 additions and 0 deletions
33
src/mcpdotnet/Protocol/Types/InitializeResult.cs
Normal file
33
src/mcpdotnet/Protocol/Types/InitializeResult.cs
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
namespace McpDotNet.Protocol.Types;
|
||||
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
/// <summary>
|
||||
/// Result of the initialization request sent to the server.
|
||||
/// </summary>
|
||||
public record InitializeResult
|
||||
{
|
||||
/// <summary>
|
||||
/// The version of the Model Context Protocol that the server wants to use.
|
||||
/// </summary>
|
||||
[JsonPropertyName("protocolVersion")]
|
||||
public required string ProtocolVersion { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// The server's capabilities.
|
||||
/// </summary>
|
||||
[JsonPropertyName("capabilities")]
|
||||
public required ServerCapabilities Capabilities { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Information about the server implementation.
|
||||
/// </summary>
|
||||
[JsonPropertyName("serverInfo")]
|
||||
public required Implementation ServerInfo { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Optional instructions for using the server and its features.
|
||||
/// </summary>
|
||||
[JsonPropertyName("instructions")]
|
||||
public string? Instructions { get; init; }
|
||||
}
|
||||
Loading…
Reference in a new issue