* In Sidebar.tsx
- Add tooltip over the Connection Type field
This commit is contained in:
parent
05534ca430
commit
6b7c752684
1 changed files with 29 additions and 22 deletions
|
|
@ -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>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue