|
102 | 102 | </TreeView> |
103 | 103 | <!-- Splitter between file tree and MCP tools panel --> |
104 | 104 | <GridSplitter Grid.Row="2" Height="5" Background="#2A2A2A" HorizontalAlignment="Stretch" |
105 | | - ResizeDirection="Rows" IsVisible="{Binding IsMcpEnabled}"/> |
| 105 | + ResizeDirection="Rows"/> |
106 | 106 | <!-- MCP servers + tools panel --> |
107 | | - <Border Grid.Row="3" Background="#1B1B1B" BorderBrush="#333" BorderThickness="1,1,0,0" Padding="8" IsVisible="{Binding IsMcpEnabled}"> |
| 107 | + <Border Grid.Row="3" Background="#1B1B1B" BorderBrush="#333" BorderThickness="1,1,0,0" Padding="8"> |
108 | 108 | <Grid RowDefinitions="Auto,*"> |
109 | 109 | <!-- Header with gear + refresh --> |
110 | 110 | <StackPanel Grid.Row="0" Orientation="Horizontal" Spacing="8" Margin="0,0,0,6"> |
|
119 | 119 |
|
120 | 120 | <!-- Combined servers + tools with vertical scroll --> |
121 | 121 | <ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" Margin="0,4,0,0"> |
122 | | - <ItemsControl ItemsSource="{Binding McpServers}" HorizontalAlignment="Stretch"> |
123 | | - <ItemsControl.ItemTemplate> |
124 | | - <DataTemplate> |
125 | | - <Expander IsExpanded="False" Padding="0" Margin="0,2,0,2" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"> |
126 | | - <Expander.Header> |
127 | | - <Grid ColumnDefinitions="Auto,6,*" Margin="0"> |
128 | | - <!-- Slightly smaller checkbox to reduce visual weight --> |
129 | | - <CheckBox Grid.Column="0" IsChecked="{Binding Selected, Mode=TwoWay}" VerticalAlignment="Center" FontSize="10"/> |
130 | | - <Border Grid.Column="1"/> |
131 | | - <TextBlock Grid.Column="2" Text="{Binding Name}" VerticalAlignment="Center"/> |
132 | | - </Grid> |
133 | | - </Expander.Header> |
134 | | - <ItemsControl ItemsSource="{Binding Tools}" Margin="0,2,0,0" HorizontalAlignment="Stretch"> |
135 | | - <ItemsControl.ItemTemplate> |
136 | | - <DataTemplate> |
137 | | - <TextBlock Text="{Binding Short}" ToolTip.Tip="{Binding Full}" Margin="16,0,0,0"/> |
138 | | - </DataTemplate> |
139 | | - </ItemsControl.ItemTemplate> |
140 | | - </ItemsControl> |
141 | | - </Expander> |
142 | | - </DataTemplate> |
143 | | - </ItemsControl.ItemTemplate> |
144 | | - </ItemsControl> |
| 122 | + <StackPanel HorizontalAlignment="Stretch" Spacing="6"> |
| 123 | + <TextBlock TextWrapping="Wrap" Foreground="#AAAAAA" FontSize="12" |
| 124 | + Text="No MCP servers configured yet. Click ⚙ to open mcp_servers.json and add your servers using Semantic Developer's JSON format." |
| 125 | + IsVisible="{Binding HasNoMcpServers}"/> |
| 126 | + <TextBlock TextWrapping="Wrap" Foreground="#AAAAAA" FontSize="12" |
| 127 | + Text="MCP support is currently disabled. Enable it under CLI Settings so selected servers are passed to Codex." |
| 128 | + IsVisible="{Binding IsMcpDisabled}"/> |
| 129 | + <ItemsControl ItemsSource="{Binding McpServers}" HorizontalAlignment="Stretch"> |
| 130 | + <ItemsControl.ItemTemplate> |
| 131 | + <DataTemplate> |
| 132 | + <Expander IsExpanded="False" Padding="0" Margin="0,2,0,2" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"> |
| 133 | + <Expander.Header> |
| 134 | + <Grid ColumnDefinitions="Auto,6,*" Margin="0"> |
| 135 | + <!-- Slightly smaller checkbox to reduce visual weight --> |
| 136 | + <CheckBox Grid.Column="0" IsChecked="{Binding Selected, Mode=TwoWay}" VerticalAlignment="Center" FontSize="10"/> |
| 137 | + <Border Grid.Column="1"/> |
| 138 | + <TextBlock Grid.Column="2" Text="{Binding Name}" VerticalAlignment="Center"/> |
| 139 | + </Grid> |
| 140 | + </Expander.Header> |
| 141 | + <ItemsControl ItemsSource="{Binding Tools}" Margin="0,2,0,0" HorizontalAlignment="Stretch"> |
| 142 | + <ItemsControl.ItemTemplate> |
| 143 | + <DataTemplate> |
| 144 | + <TextBlock Text="{Binding Short}" ToolTip.Tip="{Binding Full}" Margin="16,0,0,0"/> |
| 145 | + </DataTemplate> |
| 146 | + </ItemsControl.ItemTemplate> |
| 147 | + </ItemsControl> |
| 148 | + </Expander> |
| 149 | + </DataTemplate> |
| 150 | + </ItemsControl.ItemTemplate> |
| 151 | + </ItemsControl> |
| 152 | + </StackPanel> |
145 | 153 | </ScrollViewer> |
146 | 154 | </Grid> |
147 | 155 | </Border> |
|
0 commit comments