1import{r as c,j as e,L as o}from"./vendor-react-WTlcpp_v.js";import{b as l}from"./vendor-shell-BcsIXhhh.js";import{c as s,a4 as a}from"./index-CfbuGyp0.js";import{P as r}from"./pageMeta-cmah72KJ.js";import{f as p,a as x}from"./seoTitle-B_iRM_id.js";import{a as h}from"./seoPages-DZIB7LMD.js";import{A as m,a as u,b as g,c as f}from"./accordion-D0goAyZL.js";import{aU as y,aV as b,aW as j,aa as w,ae as v}from"./vendor-icons-Zl1GJZx9.js";import"./vendor-radix-Dg0RGC_0.js";import"./vendor-query-D9r2JgXi.js";import"./vendor-supabase-CsMrTuoW.js";const N=31,n="https://yyeslynjoqhqcdlzpevq.supabase.co/functions/v1/mcp",k=[{title:"Adapt a recipe without leaving the chat",body:"Paste a link or the recipe text and ask for it gluten-free, vegan, lower in sodium, or scaled to the number of people actually eating. The instructions are rewritten too, not just the ingredient list."},{title:"Rescale around what you have",body:"Ask for six servings instead of four, or say you only have 1 lb of chicken and let the rest of the recipe follow from that."},{title:"Keep the results",body:"Save a recipe, mark it cooked, rate it, favourite it, or create a share link â all against the same RecipeFix account you use on the site."},{title:"Build the shopping list",body:"Add the adapted ingredients to your list, tick things off, and clear it when you get home."}],C=[{question:"What can the assistant see in my account?",answer:"Only what you ask it to do, and only your own data. You sign in with your RecipeFix account and the connection carries your session, so the assistant reaches exactly what you would see logged in on the site â your saved recipes, your shopping list, your dietary preferences. It cannot see other people's accounts, and RecipeFix never sends your chat history anywhere."},{question:"Do I need a paid plan?",answer:"No. It uses the same free allowance as the website, and an adaptation run through the assistant counts against the same monthly total. If you are on RecipeFix Plus, the assistant is unlimited too."},{question:"Does it work with anything other than Claude?",answer:"Yes. It is a standard MCP server, so any client that speaks the Model Context Protocol can connect to it. Claude is the one most people will have."},{question:"Is this different from using the website?",answer:"The adaptation engine is identical â the same substitution rules, the same instruction rewriting, the same diet compliance checks. What changes is where you are standing when you ask."},{question:"How do I disconnect it?",answer:"Remove the connector in your assistant's settings. Nothing is left running on the RecipeFix side, and your saved recipes stay exactly as they are."}],R=[{prompt:"Make this recipe dairy-free",result:"RecipeFix adapts the ingredients and the cooking steps together."},{prompt:"Save this to RecipeFix",result:"The result goes into the same cookbook you use on the site."},{prompt:"Mark this cooked",result:"Your assistant can update the recipe against your own RecipeFix account."}],O=()=>{c.useEffect(()=>{s("mcp_page_viewed")},[]);const i=async()=>{try{await navigator.clipboard.writeText(n),a({description:"Server URL copied."}),s("mcp_endpoint_copied")}catch{a({description:"Select the URL above to copy it.",variant:"destructive"})}};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsxs(l,{children:[e.jsx("title",{children:p(r.mcpServer.title)}),e.jsx("meta",{name:"description",content:x(r.mcpServer.description)}),e.jsx("link",{rel:"canonical",href:"https://recipefix.app/recipe-mcp-server"})]}),e.jsxs("main",{className:"mx-auto w-full max-w-[980px] px-4 pb-16 pt-10 md:px-6 md:pb-24 md:pt-16",children:[e.jsxs("header",{className:"max-w-[760px]",children:[e.jsxs("p",{className:"inline-flex items-center gap-2 rounded-full border border-primary/25 bg-primary/[0.06] px-3 py-1 font-body text-[11px] font-semibold uppercase tracking-label text-primary",children:[e.jsx(y,{size:14,"aria-hidden":"true"}),"Claude + MCP"]}),e.jsx("h1",{className:"mt-4 font-heading text-[39px] font-bold leading-[1.03] tracking-tight text-foreground md:text-[54px]",children:"Use RecipeFix inside your assistant."}),e.jsx("p",{className:"mt-4 max-w-[680px] font-body text-[16px] leading-relaxed text-foreground
1/75",children:"Ask for the recipe change in plain language. RecipeFix uses the same account, cookbook, shopping list, and adaptation engine you already use on the site."})]}),e.jsxs("section",{className:"mt-9","aria-labelledby":"mcp-examples-heading",children:[e.jsx("h2",{id:"mcp-examples-heading",className:"font-body text-[11px] font-semibold uppercase tracking-label text-muted-foreground",children:"Try saying"}),e.jsx("div",{className:"mt-3 grid gap-2 md:grid-cols-3",children:R.map(t=>e.jsxs("div",{className:"rounded-2xl border border-border bg-card p-4 shadow-[var(--shadow-card)]",children:[e.jsxs("div",{className:"flex items-start gap-2.5",children:[e.jsx(b,{size:17,className:"mt-0.5 shrink-0 text-primary"}),e.jsxs("p",{className:"font-heading text-[17px] font-semibold leading-snug text-foreground",children:["â",t.prompt,"â"]})]}),e.jsx("p",{className:"mt-3 font-body text-[12.5px] leading-relaxed text-muted-foreground",children:t.result})]},t.prompt))})]}),e.jsxs("section",{className:"mt-10 rounded-2xl border border-border bg-card p-5 shadow-[var(--shadow-card)] md:p-6",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(j,{size:17,className:"text-primary","aria-hidden":"true"}),e.jsx("h2",{className:"font-heading text-[22px] font-semibold text-foreground",children:"Connect RecipeFix"})]}),e.jsx("p",{className:"mt-2 font-body text-[13.5px] leading-relaxed text-muted-foreground",children:"Add this URL as a custom MCP connector, then sign in with your RecipeFix account when your assistant asks."}),e.jsxs("div",{className:"mt-4 flex min-w-0 flex-col gap-2 sm:flex-row sm:items-center",children:[e.jsx("code",{className:"min-w-0 flex-1 overflow-x-auto rounded-xl border border-border bg-secondary/45 px-3 py-2.5 font-mono text-[12px] text-foreground",children:n}),e.jsxs("button",{type:"button",onClick:i,className:"inline-flex h-10 shrink-0 items-center justify-center gap-2 rounded-xl bg-primary px-4 font-body text-[13px] font-semibold text-primary-foreground transition-transform active:scale-[0.98]",children:[e.jsx(w,{size:14,"aria-hidden":"true"}),"Copy"]})]}),e.jsxs("div",{className:"mt-4 flex flex-wrap gap-x-4 gap-y-1 font-body text-[12px] text-muted-foreground",children:[e.jsxs("span",{children:[N," tools"]}),e.jsx("span",{children:"OAuth sign-in"}),e.jsx("span",{children:"Standard MCP"})]})]}),e.jsx("section",{className:"mt-8 rounded-2xl border border-border bg-secondary/35 px-5 py-5",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(v,{size:17,className:"mt-0.5 shrink-0 text-primary"}),e.jsxs("div",{children:[e.jsx("h2",{className:"font-heading text-[18px] font-semibold text-foreground",children:"Your account, only when you ask"}),e.jsx("p",{className:"mt-1.5 font-body text-[13px] leading-relaxed text-muted-foreground",children:"The connection carries your own RecipeFix session. It can work with your saved recipes, shopping list, and food preferences; it cannot reach another account, and RecipeFix does not receive your conversation history."})]})]})}),e.jsxs("section",{className:"mt-10",children:[e.jsx("h2",{className:"font-heading text-[26px] font-semibold text-foreground",children:"Questions"}),e.jsx(m,{type:"single",collapsible:!0,className:"mt-3 overflow-hidden rounded-2xl border border-border bg-card px-4 md:px-5",children:C.map((t,d)=>e.jsxs(u,{value:"mcp-faq-"+d,className:"last:border-b-0",children:[e.jsx(g,{className:"py-4 text-left font-body text-[14px] font-medium leading-snug hover:no-underline",children:t.question}),e.jsx(f,{className:"pb-5",children:e.jsx("p",{className:"font-body text-[13.5px] leading-relaxed text-muted-foreground",children:t.answer})})]},t.question))})]}),e.jsxs("details",{className:"group mt-6 overflow-hidden rounded-2xl border border-border bg-card",children:[e.jsxs("summary",{className:"cursor-pointer list-none px-5 py-4 font-body text-[13.5px] font-medium text-foreground",children:["Developer details",e.jsx("span",{className:"float-right text-muted-foreground transition-transform group-open:rotate-45",children:"+"})]}),e.jsxs("div",{className:"border-t border-border px-5 py-5",children:[e.jsx("p",{className:"font-body text-[12.5px] leading-relaxed text-muted-foreground",children:"RecipeFix exposes a standard OAuth-authenticated MCP server. The tool count is derived from the generated server manifest rather than typed into this page."}),e.jsx("div",{className:"mt-4 grid gap-3 sm:grid-cols-2",children:k.map(t=>e.jsxs("div",{children:[e.jsx("h3",{className:"font-body text-[13px] font-semibold text-foreground",children:t.title}),e.jsx("p",{className:"mt-1 font-body text-[12px] leading-relaxed text-muted-foreground",children:t.body})]},t.title))})]})]}),e.jsxs("p",{className:"mt-7 font-body text-[12.5px] text-muted-foreground",children:["Prefer the website?"," ",e.jsx(o,{to:h({}),onClick:()=>s("mcp_page_adapt_clicked"),className:"font-semibold text-primary hover:underline",children:"Adapt a recipe there"}
1)," · ",e.jsx(o,{to:"/recipe-browser-extension",className:"text-primary hover:underline",children:"Browser extension"})]})]})]})};export{O as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.