BotSharp/src/Infrastructure/BotSharp.Abstraction/MCP/Models/McpServerConfigModel.cs
geffzhang 38d1d4fcba feat:upgrade modelcontextprotocol nuget
1、upgrade ModelContextProtocol 0.1.0-preview.5
2、Add ModelContextProtocol.AspNetCore
2025-04-04 10:58:20 +08:00

34 lines
967 B
C#

namespace BotSharp.Abstraction.MCP.Models;
public class McpServerConfigModel
{
/// <summary>
/// Unique identifier for this server configuration.
/// </summary>
public string Id { get; set; } = null!;
/// <summary>
/// Display name for the server.
/// </summary>
public string Name { get; set; } = null!;
/// <summary>
/// The type of transport to use.
/// </summary>
[JsonPropertyName("transport_type")]
public string TransportType { get; set; } = null!;
/// <summary>
/// For stdio transport: path to the executable
/// For HTTP transport: base URL of the server
/// </summary>
public string? Location { get; set; }
/// <summary>
/// Additional transport-specific configuration.
/// </summary>
[JsonPropertyName("transport_options")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Dictionary<string, string>? TransportOptions { get; set; }
}