2025-10-04 08:23:28 +08:00
|
|
|
using System;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
|
namespace MCPForUnity.Editor.Models
|
|
|
|
|
{
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class McpConfigServer
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("command")]
|
|
|
|
|
public string command;
|
|
|
|
|
|
|
|
|
|
[JsonProperty("args")]
|
|
|
|
|
public string[] args;
|
|
|
|
|
|
|
|
|
|
// VSCode expects a transport type; include only when explicitly set
|
|
|
|
|
[JsonProperty("type", NullValueHandling = NullValueHandling.Ignore)]
|
|
|
|
|
public string type;
|
2026-01-23 14:48:03 +08:00
|
|
|
|
|
|
|
|
// URL for HTTP transport mode
|
|
|
|
|
[JsonProperty("url", NullValueHandling = NullValueHandling.Ignore)]
|
|
|
|
|
public string url;
|
2025-10-04 08:23:28 +08:00
|
|
|
}
|
|
|
|
|
}
|