"use client"; import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from "@/components/ui/dialog"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Badge } from "@/components/ui/badge"; import { ExternalLink, Copy, CheckCircle2 } from "lucide-react"; import { useState } from "react"; interface MCPConnectModalProps { open: boolean; onOpenChange: (open: boolean) => void; projectId: string; } export function MCPConnectModal({ open, onOpenChange, projectId, }: MCPConnectModalProps) { const [copied, setCopied] = useState(false); const mcpUrl = `https://api.vibn.co/mcp/projects/${projectId}`; const copyToClipboard = () => { navigator.clipboard.writeText(mcpUrl); setCopied(true); setTimeout(() => setCopied(false), 2000); }; return (
Connect ChatGPT MCP Protocol
Link your ChatGPT to this project for real-time sync and AI-powered updates
{/* Step 1 */}
1

Copy your MCP Server URL

This unique URL connects ChatGPT to your project

{/* Step 2 */}
2

Add Connector in ChatGPT

  1. Open ChatGPT settings
  2. Navigate to Connectors
  3. Click New Connector
  4. Paste the MCP Server URL
  5. Select OAuth authentication
{/* Step 3 */}
3

Authorize Access

ChatGPT will request permission to:

  • Read your project vision and progress
  • Add features and tasks
  • Update documentation
{/* Info Box */}
ℹ️

What happens after connecting?

You'll be able to chat with ChatGPT about your project, and it will automatically sync updates to your Vib'n workspace. Plan features, discuss architecture, and track progress - all seamlessly connected.

{/* Actions */}
); }