import { XIcon } from "@phosphor-icons/react"; import ShellCommand from "./ShellCommand"; const LocalhostWarningModal = ({ visible, handleHide }: { visible: boolean; handleHide: (e: React.MouseEvent) => void; }) => { if (!visible) return null; return ( // oxlint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions -- modal backdrop dismiss
{/* oxlint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions -- stop propagation */}
e.stopPropagation()} className="bg-kumo-base shadow-xl rounded-lg md:max-w-2xl w-full p-6 ring ring-kumo-line" >

Localhost is not allowed {/* oxlint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions -- close button */}

MCP servers are connected server-side. Localhost URLs cannot be accessed.

Use Cloudflare Tunnel for Local Development

Copy the tunnel URL (e.g., https://xyz.trycloudflare.com) and use it as your MCP server endpoint. Note you will need to add the /mcp path.

); }; export default LocalhostWarningModal;