29 lines
706 B
C#
29 lines
706 B
C#
using System.Collections.Generic;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace AxCopilot.Models;
|
|
|
|
public class McpServerEntry
|
|
{
|
|
[JsonPropertyName("name")]
|
|
public string Name { get; set; } = "";
|
|
|
|
[JsonPropertyName("command")]
|
|
public string Command { get; set; } = "";
|
|
|
|
[JsonPropertyName("args")]
|
|
public List<string> Args { get; set; } = new List<string>();
|
|
|
|
[JsonPropertyName("env")]
|
|
public Dictionary<string, string> Env { get; set; } = new Dictionary<string, string>();
|
|
|
|
[JsonPropertyName("enabled")]
|
|
public bool Enabled { get; set; } = true;
|
|
|
|
[JsonPropertyName("transport")]
|
|
public string Transport { get; set; } = "stdio";
|
|
|
|
[JsonPropertyName("url")]
|
|
public string? Url { get; set; }
|
|
}
|