using ModelContextProtocol.Protocol;
using System.ComponentModel;
namespace ModelContextProtocol.Client;
///
/// Represents an instance of a Model Context Protocol (MCP) client that connects to and communicates with an MCP server.
///
[Obsolete($"Use {nameof(McpClient)} instead. This member will be removed in a subsequent release.")] // See: https://github.com/modelcontextprotocol/csharp-sdk/issues/774
[EditorBrowsable(EditorBrowsableState.Never)]
public interface IMcpClient : IMcpEndpoint
{
///
/// Gets the capabilities supported by the connected server.
///
/// The client is not connected.
ServerCapabilities ServerCapabilities { get; }
///
/// Gets the implementation information of the connected server.
///
///
///
/// This property provides identification details about the connected server, including its name and version.
/// It is populated during the initialization handshake and is available after a successful connection.
///
///
/// This information can be useful for logging, debugging, compatibility checks, and displaying server
/// information to users.
///
///
/// The client is not connected.
Implementation ServerInfo { get; }
///
/// Gets any instructions describing how to use the connected server and its features.
///
///
///
/// This property contains instructions provided by the server during initialization that explain
/// how to effectively use its capabilities. These instructions can include details about available
/// tools, expected input formats, limitations, or any other helpful information.
///
///
/// This can be used by clients to improve an LLM's understanding of available tools, prompts, and resources.
/// It can be thought of like a "hint" to the model and may be added to a system prompt.
///
///
string? ServerInstructions { get; }
}