/
CyberSys
/
unity-mcp-bridge
Обзор
Документация
Войти
/
CyberSys
/
unity-mcp-bridge
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
MCPForUnity/Editor/Windows/Components/Connection/McpConnectionSection.uxml
47 строк
3 KB
Marcus Sanatan
HTTP Server, uvx, C# only custom tools (#375)
25 ноя 2025, 06:21
Не верифицирован
25 ноя 2025, 06:21
a034ab0
Код
Авторство
О чём код?
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="True"> <Style src="../Common.uss" /> <ui:VisualElement name="connection-section" class="section"> <ui:Label text="Connection" class="section-title" /> <ui:VisualElement class="section-content"> <ui:VisualElement class="setting-row"> <ui:Label text="Transport:" class="setting-label" /> <uie:EnumField name="transport-dropdown" class="setting-dropdown-inline" /> </ui:VisualElement> <ui:VisualElement class="setting-row" name="http-url-row"> <ui:Label text="HTTP URL:" class="setting-label" /> <ui:TextField name="http-url" class="url-field" placeholder-text="http://localhost:8080" /> </ui:VisualElement> <ui:VisualElement name="http-server-command-section" class="manual-config-content"> <ui:Label text="Use this command to launch the server manually:" class="config-label" /> <ui:VisualElement class="config-json-row"> <ui:TextField name="http-server-command" readonly="true" multiline="true" class="config-json-field" /> <ui:Button name="copy-http-server-command-button" text="Copy" class="icon-button-vertical" /> </ui:VisualElement> <ui:Label name="http-server-command-hint" class="help-text" /> <ui:VisualElement style="flex-direction: row; justify-content: flex-start; margin-bottom: 6px;"> <ui:Button name="start-http-server-button" text="Start Server" class="secondary-button" style="width: auto; flex-grow: 1; margin-right: 5px;" /> <ui:Button name="stop-http-server-button" text="Stop Server" class="secondary-button" style="width: auto; flex-grow: 1;" /> </ui:VisualElement> </ui:VisualElement> <ui:VisualElement class="setting-row" name="unity-socket-port-row"> <ui:Label text="Unity Socket Port:" class="setting-label" /> <ui:TextField name="unity-port" class="port-field" /> </ui:VisualElement> <ui:VisualElement class="setting-row"> <ui:VisualElement class="status-container"> <ui:VisualElement name="status-indicator" class="status-dot" /> <ui:Label name="connection-status" text="Disconnected" class="status-text" /> </ui:VisualElement> <ui:Button name="connection-toggle" text="Start" class="action-button" /> </ui:VisualElement> <ui:VisualElement class="setting-row"> <ui:Label text="Health:" class="setting-label" /> <ui:VisualElement class="status-container"> <ui:VisualElement name="health-indicator" class="status-dot" /> <ui:Label name="health-status" text="Unknown" class="status-text" /> </ui:VisualElement> <ui:Button name="test-connection-button" text="Test" class="action-button" /> </ui:VisualElement> </ui:VisualElement> </ui:VisualElement> </ui:UXML>