* In Sidebar.tsx

- Add tooltip over the Connection Type field
This commit is contained in:
cliffhall 2025-09-18 17:42:37 -04:00
commit 6b7c752684

View file

@ -108,6 +108,8 @@ const Sidebar = ({
const [copiedServerFile, setCopiedServerFile] = useState(false); const [copiedServerFile, setCopiedServerFile] = useState(false);
const { toast } = useToast(); const { toast } = useToast();
const connectionTypeTip =
"Connect to server directly (requires CORS config on server) or via MCP Inspector Proxy";
// Reusable error reporter for copy actions // Reusable error reporter for copy actions
const reportError = useCallback( const reportError = useCallback(
(error: unknown) => { (error: unknown) => {
@ -319,6 +321,8 @@ const Sidebar = ({
</div> </div>
{/* Connection Type switch - only visible for non-STDIO transport types */} {/* Connection Type switch - only visible for non-STDIO transport types */}
<Tooltip>
<TooltipTrigger asChild>
<div className="space-y-2"> <div className="space-y-2">
<label <label
className="text-sm font-medium" className="text-sm font-medium"
@ -341,6 +345,9 @@ const Sidebar = ({
</SelectContent> </SelectContent>
</Select> </Select>
</div> </div>
</TooltipTrigger>
<TooltipContent>{connectionTypeTip}</TooltipContent>
</Tooltip>
</> </>
)} )}