module.exports=[93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},31983,(a,b,c)=>{b.exports=a.r(18622)},62807,a=>{a.n(a.i(90605))},73121,a=>{a.n(a.i(30983))},84194,a=>{a.n(a.i(31198))},59018,a=>{a.n(a.i(22631))},27767,a=>{a.n(a.i(18330))},8672,a=>{a.n(a.i(76614))},82302,a=>{a.n(a.i(97555))},44174,a=>{a.n(a.i(5810))},63098,a=>{a.n(a.i(95492))},8619,a=>{a.n(a.i(64063))},80988,a=>{a.n(a.i(19999))},44523,a=>{a.n(a.i(9545))},53312,a=>{a.n(a.i(9469))},83834,a=>{a.n(a.i(90386))},84278,a=>{a.n(a.i(94334))},90442,a=>{a.n(a.i(780))},68246,a=>{a.n(a.i(34497))},6330,a=>{a.n(a.i(12977))},41405,a=>{a.n(a.i(7213))},25052,a=>{a.n(a.i(87429))},13557,a=>{a.n(a.i(96077))},56043,a=>{a.n(a.i(18035))},2246,a=>{a.n(a.i(69986))},44791,a=>{a.n(a.i(90453))},61714,a=>{a.n(a.i(26058))},60946,a=>{a.n(a.i(17335))},29644,a=>{a.n(a.i(34171))},85422,a=>{a.n(a.i(76773))},1654,a=>{a.n(a.i(80778))},66146,a=>{a.n(a.i(92823))},24457,a=>{a.n(a.i(84393))},5662,a=>{a.n(a.i(83962))},10921,a=>{a.n(a.i(31803))},85860,a=>{a.n(a.i(85533))},35330,a=>{"use strict";var b=a.i(68118),c=a.i(39138);a.s(["Card",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card",className:(0,c.cn)("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",a),...d})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,c.cn)("px-6",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,c.cn)("text-sm text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-header",className:(0,c.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-title",className:(0,c.cn)("leading-none font-semibold",a),...d})}])},53974,a=>{"use strict";var b=a.i(66680),c=a.i(80026);function d(a){return(0,c.getDb)().prepare("SELECT * FROM questions WHERE id = ?").get(a)??null}a.s(["answerQuestion",0,function(a){let b=(0,c.getDb)(),e=new Date().toISOString();return 0===b.prepare(`UPDATE questions
          SET status = 'answered',
              answer_option_index = ?,
              answer_text = ?,
              resolved_by_kind = 'user',
              resolved_at = ?
        WHERE id = ? AND status = 'pending'`).run(a.answer_option_index??null,a.answer_text??null,e,a.id).changes?null:d(a.id)},"cancelQuestion",0,function(a){let b=(0,c.getDb)(),e=new Date().toISOString();return 0===b.prepare(`UPDATE questions
          SET status = 'cancelled',
              resolved_by_kind = 'user',
              resolved_at = ?
        WHERE id = ? AND status = 'pending'`).run(e,a).changes?null:d(a)},"createQuestion",0,function(a){let e=(0,c.getDb)(),f=(0,b.randomUUID)(),g=new Date().toISOString();return e.prepare(`INSERT INTO questions
       (id, project_slug, agent_id, task_id, prompt, options_json,
        status, answer_option_index, answer_text, resolved_by_kind,
        created_at, resolved_at)
     VALUES (?, ?, ?, ?, ?, ?, 'pending', NULL, NULL, NULL, ?, NULL)`).run(f,a.project_slug,a.agent_id,a.task_id??null,a.prompt,JSON.stringify(a.options??[]),g),d(f)},"getQuestion",0,d,"listQuestionsForTask",0,function(a){return(0,c.getDb)().prepare(`SELECT * FROM questions
        WHERE task_id = ?
        ORDER BY created_at DESC, rowid DESC`).all(a)},"parseQuestionOptions",0,function(a){try{let b=JSON.parse(a.options_json);if(Array.isArray(b)&&b.every(a=>"string"==typeof a))return b}catch{}return[]}])},53417,a=>{"use strict";a.s(["McpFlashBanner",()=>b]);let b=(0,a.i(80718).registerClientReference)(function(){throw Error("Attempted to call McpFlashBanner() from the server but McpFlashBanner is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/components/mcp-flash-banner.tsx <module evaluation>","McpFlashBanner")},38520,a=>{"use strict";a.s(["McpFlashBanner",()=>b]);let b=(0,a.i(80718).registerClientReference)(function(){throw Error("Attempted to call McpFlashBanner() from the server but McpFlashBanner is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/components/mcp-flash-banner.tsx","McpFlashBanner")},29816,a=>{"use strict";a.i(53417);var b=a.i(38520);a.n(b)},29455,a=>{"use strict";a.s(["McpCard",()=>b]);let b=(0,a.i(80718).registerClientReference)(function(){throw Error("Attempted to call McpCard() from the server but McpCard is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/components/mcp-card.tsx <module evaluation>","McpCard")},38038,a=>{"use strict";a.s(["McpCard",()=>b]);let b=(0,a.i(80718).registerClientReference)(function(){throw Error("Attempted to call McpCard() from the server but McpCard is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/components/mcp-card.tsx","McpCard")},34532,a=>{"use strict";a.i(29455);var b=a.i(38038);a.n(b)},41596,a=>{"use strict";a.s(["BuiltinMcpCard",()=>b]);let b=(0,a.i(80718).registerClientReference)(function(){throw Error("Attempted to call BuiltinMcpCard() from the server but BuiltinMcpCard is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/components/builtin-mcp-card.tsx <module evaluation>","BuiltinMcpCard")},95170,a=>{"use strict";a.s(["BuiltinMcpCard",()=>b]);let b=(0,a.i(80718).registerClientReference)(function(){throw Error("Attempted to call BuiltinMcpCard() from the server but BuiltinMcpCard is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/components/builtin-mcp-card.tsx","BuiltinMcpCard")},52648,a=>{"use strict";a.i(41596);var b=a.i(95170);a.n(b)},99931,a=>{"use strict";var b=a.i(68118);a.i(32268);var c=a.i(42378),d=a.i(35330),e=a.i(75170),f=a.i(11857),g=a.i(69043),h=a.i(62063),i=a.i(34532),j=a.i(52648),k=a.i(29816);async function l({searchParams:a,params:m}){let{project:n}=await m,o=(0,e.getProject)(n),{mcp_connected:p,mcp_error:q}=await a;(!o||o.archived_at)&&(0,c.notFound)();let r=await Promise.all(f.MCP_CATALOG.map(a=>(0,g.getMcpStatus)((0,f.storedMcpKey)(o.slug,a.key)))),s=(0,h.summarizeBuiltinTools)();return(0,b.jsxs)("div",{className:"mx-auto max-w-3xl space-y-6",children:[(0,b.jsxs)("header",{children:[(0,b.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:"MCP Connections"}),(0,b.jsx)("p",{className:"text-sm text-muted-foreground",children:"MCPs are the tool servers your agents call into. Connect external ones (Google Ads, etc.) with one click, or browse the orchestration tools that ship built-in."})]}),(0,b.jsx)(k.McpFlashBanner,{connected:p,error:q}),(0,b.jsxs)("div",{className:"space-y-3",children:[(0,b.jsx)(j.BuiltinMcpCard,{name:"Orchestration",description:"Built-in tools your agents use to coordinate: assign tasks, request approvals, write PROJECT.md, comment, and report status.",tools:s}),0===f.MCP_CATALOG.length?(0,b.jsx)(d.Card,{children:(0,b.jsx)(d.CardContent,{className:"py-12 text-center text-sm text-muted-foreground",children:"No external MCP servers in the catalog yet."})}):f.MCP_CATALOG.map((a,c)=>(0,b.jsx)(i.McpCard,{spec:a,status:r[c]},a.key))]})]})}a.s(["default",0,l])},89581,a=>{a.n(a.i(99931))},11040,a=>{a.v(b=>Promise.all(["server/chunks/ssr/src_server_orchestration_0i_x~ej._.js"].map(b=>a.l(b))).then(()=>b(28151)))}];

//# sourceMappingURL=%5Broot-of-the-server%5D__03s7yu5._.js.map