Class InitializeResult | MCP C# SDK

Namespace
ModelContextProtocol.Protocol
Assembly
ModelContextProtocol.Core.dll

Represents the result of a Initialize request sent to the server during connection establishment.

public sealed class InitializeResult : Result
Inheritance

InitializeResult

Inherited Members

Properties

Capabilities

Gets or sets the server's capabilities.

[JsonPropertyName("capabilities")]
public required ServerCapabilities Capabilities { get; set; }

Property Value

ServerCapabilities

Instructions

Gets or sets optional instructions for using the server and its features.

[JsonPropertyName("instructions")]
public string? Instructions { get; set; }

Property Value

string

ProtocolVersion

Gets or sets the version of the Model Context Protocol that the server will use for this session.

[JsonPropertyName("protocolVersion")]
public required string ProtocolVersion { get; set; }

Property Value

string

ServerInfo

Gets or sets information about the server implementation, including its name and version.

[JsonPropertyName("serverInfo")]
public required Implementation ServerInfo { get; set; }

Property Value

Implementation