-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathMCPDebugWindow.uxml
More file actions
78 lines (65 loc) · 4.02 KB
/
Copy pathMCPDebugWindow.uxml
File metadata and controls
78 lines (65 loc) · 4.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements">
<ui:ScrollView class="debug-window-root">
<!-- Header -->
<ui:VisualElement class="header-container">
<ui:Label text="MCP Debug Console" class="header-title" />
<ui:Label text="Model Context Protocol Connection Monitor" class="header-subtitle" />
</ui:VisualElement>
<!-- Connection Controls Section -->
<ui:VisualElement class="section-container">
<ui:Label text="Connection" class="section-header" />
<ui:VisualElement style="flex-direction: row; align-items: center; margin-bottom: 10px;">
<ui:Label text="Status:" class="status-label" />
<ui:Label text="Not Connected" name="connection-status" class="status-label status-disconnected" style="margin-left: 10px;" />
</ui:VisualElement>
<ui:VisualElement style="flex-direction: row; align-items: center; margin-bottom: 10px;">
<ui:Label text="Port:" class="server-url-label" />
<ui:TextField name="server-port-field" value="5010" placeholder="Default: 5010" class="server-url-field" />
</ui:VisualElement>
<ui:VisualElement style="flex-direction: row; align-items: center;">
<ui:Button text="Connect" name="connect-button" class="control-button connect-button" />
<ui:Button text="Disconnect" name="disconnect-button" class="control-button disconnect-button" />
<ui:Toggle label="Auto Reconnect" name="auto-reconnect-toggle" class="toggle-control" />
</ui:VisualElement>
</ui:VisualElement>
<!-- Connection Info Section -->
<ui:VisualElement class="section-container">
<ui:Label text="Connection Information" class="section-header" />
<ui:VisualElement class="info-grid">
<ui:VisualElement class="info-row">
<ui:Label text="Last Error:" class="info-label" />
<ui:Label text="None" name="last-error-value" class="info-value" />
</ui:VisualElement>
<ui:VisualElement class="info-row">
<ui:Label text="Connection Time:" class="info-label" />
<ui:Label text="00:00:00" name="connection-time-value" class="info-value" />
</ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>
<!-- Statistics Section -->
<ui:VisualElement class="section-container">
<ui:Label text="Statistics" class="section-header" />
<ui:VisualElement class="statistics-container">
<ui:VisualElement class="statistic-box">
<ui:Label text="Messages Sent" class="statistic-label" />
<ui:Label text="0" name="messages-sent-value" class="statistic-value" />
</ui:VisualElement>
<ui:VisualElement class="statistic-box">
<ui:Label text="Messages Received" class="statistic-label" />
<ui:Label text="0" name="messages-received-value" class="statistic-value" />
</ui:VisualElement>
<ui:VisualElement class="statistic-box">
<ui:Label text="Reconnect Attempts" class="statistic-label" />
<ui:Label text="0" name="reconnect-attempts-value" class="statistic-value" />
</ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>
<!-- Logging Controls Section -->
<ui:VisualElement class="section-container">
<ui:Label text="Logging Controls" class="section-header" />
<ui:VisualElement name="logging-container">
<!-- These toggles will be created programmatically -->
</ui:VisualElement>
</ui:VisualElement>
</ui:ScrollView>
</ui:UXML>