unity-mcp/UnityMcpBridge/Editor/Models/MCPConfigServer.cs

20 lines
455 B
C#
Raw Normal View History

2025-03-20 19:24:31 +08:00
using System;
using Newtonsoft.Json;
namespace UnityMcpBridge.Editor.Models
2025-03-20 19:24:31 +08:00
{
[Serializable]
public class McpConfigServer
2025-03-20 19:24:31 +08:00
{
[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;
2025-03-20 19:24:31 +08:00
}
}