import { Star, Download, Terminal, ChevronRight, Info } from "lucide-react"; import { Badge } from "./ui/badge"; import { Button } from "./ui/button"; import { Card, CardContent, CardHeader } from "./ui/card"; import type { MCPServer } from "../types/server"; import { Link, NavLink } from "react-router"; import { useState } from "react"; import { motion, AnimatePresence } from "motion/react"; import { getGooseInstallLink } from "../utils/install-links"; export function ServerCard({ server }: { server: MCPServer }) { const [isCommandVisible, setIsCommandVisible] = useState(false); return (
{server.name}

{server.description}

{server.is_builtin ? (
{/* */} Can be enabled in the goose settings page
) : ( <> {isCommandVisible && ( {`goose session --with-extension "${server.command}"`} )} )}
{server.githubStars} on Github
{server.is_builtin ? (
Built-in
) : ( )}
); }