2025-03-20 19:24:31 +08:00
|
|
|
using System;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
2025-08-21 03:59:49 +08:00
|
|
|
namespace MCPForUnity.Editor.Models
|
2025-03-20 19:24:31 +08:00
|
|
|
{
|
|
|
|
|
[Serializable]
|
2025-04-08 18:14:13 +08:00
|
|
|
public class McpConfigServer
|
2025-03-20 19:24:31 +08:00
|
|
|
{
|
|
|
|
|
[JsonProperty("command")]
|
|
|
|
|
public string command;
|
|
|
|
|
|
|
|
|
|
[JsonProperty("args")]
|
|
|
|
|
public string[] args;
|
2025-08-13 11:56:22 +08:00
|
|
|
|
2025-08-13 12:33:43 +08:00
|
|
|
// VSCode expects a transport type; include only when explicitly set
|
2025-08-13 11:56:22 +08:00
|
|
|
[JsonProperty("type", NullValueHandling = NullValueHandling.Ignore)]
|
2025-08-13 12:33:43 +08:00
|
|
|
public string type;
|
2025-03-20 19:24:31 +08:00
|
|
|
}
|
|
|
|
|
}
|