import { jsxs as t, jsx as e } from "react/jsx-runtime";
import { H as s, C as r, a as o, T as l, K as n, c as a, y as c } from "../index-sdOMz8GW.js";
import { Cloud as d } from "lucide-react";
import "react-router-dom";
import "react";
import "react-dom";
const b = () => /* @__PURE__ */ t("div", { className: "flex flex-col gap-8", children: [
  /* @__PURE__ */ e(
    s,
    {
      title: "Self-Hosting & Deployment",
      description: "Deploy the MCP server to Docker, Fly.io, or any container platform for team-wide access.",
      icon: /* @__PURE__ */ e("div", { className: "w-16 h-16 sm:w-20 sm:h-20 bg-linear-to-br from-sky-500 to-blue-600 rounded-full flex items-center justify-center shadow-lg", children: /* @__PURE__ */ e(d, { className: "w-8 h-8 sm:w-10 sm:h-10 text-white" }) })
    }
  ),
  /* @__PURE__ */ e(r, { children: /* @__PURE__ */ t(o, { title: "Live Instance", children: [
    /* @__PURE__ */ e(l, { className: "text-sm text-foreground/70 mb-3", children: "A public instance is available for testing and evaluation:" }),
    /* @__PURE__ */ t("div", { className: "p-4 rounded-lg border border-emerald-500/20 bg-emerald-500/5 flex items-center gap-3", children: [
      /* @__PURE__ */ e(
        n,
        {
          variant: "soft",
          className: "bg-emerald-500/10 text-emerald-500",
          children: "LIVE"
        }
      ),
      /* @__PURE__ */ e("code", { className: "text-sm font-mono text-emerald-600 dark:text-emerald-400", children: "https://tucu-ui-mcp.fly.dev" })
    ] })
  ] }) }),
  /* @__PURE__ */ e(r, { children: /* @__PURE__ */ t(o, { title: "Docker", children: [
    /* @__PURE__ */ e(l, { className: "text-sm text-foreground/70 mb-3", children: "Run with Docker Compose or standalone:" }),
    /* @__PURE__ */ e(
      a,
      {
        code: `# Using Docker Compose (recommended)
docker compose up -d

# Or build and run manually
docker build -t tucu-ui-mcp .
docker run -d \\
  --name tucu-ui-mcp \\
  -p 3100:3100 \\
  -e MCP_API_KEY=your-secret-key \\
  tucu-ui-mcp`
      }
    )
  ] }) }),
  /* @__PURE__ */ e(r, { children: /* @__PURE__ */ t(o, { title: "Fly.io", children: [
    /* @__PURE__ */ e(l, { className: "text-sm text-foreground/70 mb-3", children: "Deploy to Fly.io for a globally-distributed instance:" }),
    /* @__PURE__ */ e(
      a,
      {
        code: `# Initial setup
fly launch --name tucu-ui-mcp --region iad

# Set secrets
fly secrets set MCP_API_KEY=your-secret-key

# Deploy
fly deploy

# Check status
fly status
fly logs`
      }
    )
  ] }) }),
  /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(o, { title: "Environment Variables", children: /* @__PURE__ */ e(
    c,
    {
      columns: [
        {
          key: "variable",
          label: "Variable",
          render: (i) => /* @__PURE__ */ e("code", { className: "px-1.5 py-0.5 bg-muted rounded text-xs font-mono", children: String(i) })
        },
        { key: "default", label: "Default" },
        { key: "description", label: "Description" }
      ],
      data: [
        {
          variable: "PORT",
          default: "3100",
          description: "HTTP server port"
        },
        {
          variable: "MCP_API_KEY",
          default: "—",
          description: "Bearer token for authentication (required in production)"
        },
        {
          variable: "NODE_ENV",
          default: "production",
          description: "Environment mode"
        },
        {
          variable: "RATE_LIMIT_MAX",
          default: "100",
          description: "Max requests per minute per IP"
        }
      ]
    }
  ) }) }),
  /* @__PURE__ */ e(r, { children: /* @__PURE__ */ t(o, { title: "Docker Compose File", children: [
    /* @__PURE__ */ t(l, { className: "text-sm text-foreground/70 mb-3", children: [
      "Reference",
      " ",
      /* @__PURE__ */ e("code", { className: "px-1.5 py-0.5 bg-muted rounded text-xs font-mono", children: "docker-compose.yml" }),
      ":"
    ] }),
    /* @__PURE__ */ e(
      a,
      {
        code: `version: '3.8'
services:
  mcp-server:
    build: .
    ports:
      - "3100:3100"
    environment:
      - PORT=3100
      - MCP_API_KEY=\${MCP_API_KEY}
      - NODE_ENV=production
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:3100/health"]
      interval: 30s
      timeout: 10s
      retries: 3`
      }
    )
  ] }) })
] });
export {
  b as default
};
