/* ┌──────────────────────────────────────────────────────────────────┐ │ Author: Ivan Murzak (https://github.com/IvanMurzak) │ │ Repository: GitHub (https://github.com/IvanMurzak/Unity-MCP) │ │ Copyright (c) 2025 Ivan Murzak │ │ Licensed under the Apache License, Version 2.0. │ │ See the LICENSE file in the project root for more information. │ └──────────────────────────────────────────────────────────────────┘ */ #nullable enable using System; using System.Threading; using com.IvanMurzak.McpPlugin.Common.Model; using com.IvanMurzak.McpPlugin.Common.Utils; using com.IvanMurzak.ReflectorNet.Utils; using com.IvanMurzak.Unity.MCP.Editor.UI.Controls; using Microsoft.Extensions.Logging; using R3; using UnityEngine; using UnityEngine.UIElements; using static com.IvanMurzak.McpPlugin.Common.Consts.MCP.Server; using TransportMethod = com.IvanMurzak.McpPlugin.Common.Consts.MCP.Server.TransportMethod; namespace com.IvanMurzak.Unity.MCP.Editor.UI { public partial class MainWindowEditor { private void SetupMcpServerSection(VisualElement root) { var btnStartStop = root.Q