diff --git a/src/vs/workbench/contrib/void/browser/react/src/void-settings-tsx/Settings.tsx b/src/vs/workbench/contrib/void/browser/react/src/void-settings-tsx/Settings.tsx index d0f2529d..52e00dc2 100644 --- a/src/vs/workbench/contrib/void/browser/react/src/void-settings-tsx/Settings.tsx +++ b/src/vs/workbench/contrib/void/browser/react/src/void-settings-tsx/Settings.tsx @@ -919,66 +919,72 @@ const MCPServerComponent = ({ name, server }: { name: string, server: MCPServer const removeUniquePrefix = (name: string) => name.split('_').slice(1).join('_') return ( -
-
- {/* Status indicator */} -
+
+ {/* Left side - status and name */} +
+ {/* Status indicator */} +
- `}>
- - {/* Server name */} -
{name}
- - {/* Power toggle switch */} -
- mcpService.toggleServerIsOn(name, !isOn)} - /> + {/* Server name */} +
{name}
+ + {/* Right side - power toggle switch */} + mcpService.toggleServerIsOn(name, !isOn)} + />
{/* Tools section */} -
-
- {isOn && (server.tools ?? []).length > 0 ? ( - (server.tools ?? []).map((tool: { name: string; description?: string }) => ( - +
+ {(server.tools ?? []).length > 0 ? ( + (server.tools ?? []).map((tool: { name: string; description?: string }) => ( + - {removeUniquePrefix(tool.name)} - - )) - ) : ( - No tools available - )} + data-tooltip-id='void-tooltip' + data-tooltip-content={tool.description || ''} + data-tooltip-class-name='void-max-w-[300px]' + > + {removeUniquePrefix(tool.name)} + + )) + ) : ( + No tools available + )} +
-
+ )} {/* Command badge */} {isOn && server.command && ( -
-
Command:
-
+
+
Command:
+
{server.command}
)} {/* Error message if present */} - {server.error && ()} + {server.error && ( +
+ +
+ )}
); }; @@ -989,27 +995,25 @@ const MCPServersList = () => { let content: React.ReactNode if (mcpServiceState.error) { - content =
+ content =
{mcpServiceState.error}
} else { const entries = Object.entries(mcpServiceState.mcpServerOfName) if (entries.length === 0) { - content =
+ content =
No servers found
} else { content = entries.map(([name, server]) => ( -
- -
+ )) } } - return content + return
{content}
}; export const Settings = () => { @@ -1359,44 +1363,44 @@ Alternatively, place a \`.voidrules\` file in the root of your workspace. {/* --- Disable System Message Toggle --- */} -
- -
- { - voidSettingsService.setGlobalSetting('disableSystemMessage', newValue); - }} - /> - - {settingsState.globalSettings.disableSystemMessage ? 'Minimal system messages sent' : 'Full system messages sent'} - -
+
+ +
+ { + voidSettingsService.setGlobalSetting('disableSystemMessage', newValue); + }} + /> + + {settingsState.globalSettings.disableSystemMessage ? 'Disable system message' : 'Disable system message'} + +
-
- {`When enabled, Void will not include anything in the system message except for content you specified in voidrules and AI Instructions.`} -
-
+
+ {`When disabled, Void will not include anything in the system message except for content you specified above.`} +
+
-
+

MCP

-
- { await mcpService.revealMCPConfigFile() }}> +
+ { await mcpService.revealMCPConfigFile() }}> Add MCP Server
-
- - - + + + +