@llmindset/hf-mcp-server 0.2.28 → 0.2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -69,4 +69,4 @@ import{e as n,a as w,j as e,B as x,p as y,C as u,h as f,i as g,l as j,q as b,k a
|
|
|
69
69
|
-t http https://huggingface.co/mcp \\
|
|
70
70
|
-H "Authorization: Bearer <HF_TOKEN>"`,copyable:!0},{type:"text",content:e.jsxs("span",{children:["Replace ",e.jsx("code",{className:"bg-muted px-1 py-0.5 rounded text-xs font-mono",children:"<HF_TOKEN>"})," with your Hugging Face API token."]})}]}},{id:"codex-cli",name:"Codex CLI",icon:e.jsx("svg",{className:"h-5 w-5",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 32 32",children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeWidth:"2.484",d:"M22.356 19.797H17.17M9.662 12.29l1.979 3.576a.511.511 0 0 1-.005.504l-1.974 3.409M30.758 16c0 8.15-6.607 14.758-14.758 14.758-8.15 0-14.758-6.607-14.758-14.758C1.242 7.85 7.85 1.242 16 1.242c8.15 0 14.758 6.608 14.758 14.758Z"})}),instructions:[{type:"text",content:e.jsxs("a",{href:"https://github.com/openai/codex",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center space-x-2 text-primary hover:underline cursor-pointer",children:[e.jsx("span",{children:"Codex CLI Instructions are at: https://github.com/openai/codex"}),e.jsx(r,{className:"h-3 w-3"})]})},{type:"text",content:e.jsxs("span",{children:["Edit your ",e.jsx("code",{className:"bg-muted px-1 py-0.5 rounded text-xs font-mono",children:"~/.codex/config.toml"})," and include the below:"]})},{type:"code",content:`[mcp_servers.huggingface]
|
|
71
71
|
command = "npx"
|
|
72
|
-
args = ["-y", "mcp-remote@latest", "https://huggingface.co/mcp?login"]`,copyable:!0}],actionButtons:[{type:"external",label:"Codex CLI Instructions",url:"https://github.com/openai/codex",variant:"outline"}]}];function P(){const[p,i]=w.useState(new Set),c=async()=>{const s="https://huggingface.co/mcp?login";try{await navigator.clipboard.writeText(s)}catch(t){console.error("Failed to copy URL:",t)}},d=()=>{window.open("https://huggingface.co/settings/mcp","_blank")},m=s=>{i(t=>{const a=new Set(t);return a.has(s)?a.delete(s):a.add(s),a})},h=async s=>{switch(s.type){case"copy":if(s.content)try{await navigator.clipboard.writeText(s.content)}catch(t){console.error("Failed to copy content:",t)}break;case"link":case"external":s.url&&window.open(s.url,"_blank");break;case"download":if(s.url){const t=document.createElement("a");t.href=s.url,t.download=s.label,document.body.appendChild(t),t.click(),document.body.removeChild(t)}break}},o=(s,t)=>{const a="text-sm";switch(s.type){case"warning":return e.jsxs("div",{className:"flex items-start space-x-2 p-3 bg-yellow-50 border border-yellow-200 rounded-lg",children:[e.jsx(M,{className:"h-4 w-4 text-yellow-600 mt-0.5 flex-shrink-0"}),e.jsx("div",{className:"text-sm text-yellow-800",children:s.content})]},t);case"info":return e.jsxs("div",{className:"flex items-start space-x-2 p-3 bg-blue-50 border border-blue-200 rounded-lg",children:[e.jsx(I,{className:"h-4 w-4 text-blue-600 mt-0.5 flex-shrink-0"}),e.jsx("div",{className:"text-sm text-blue-800",children:s.content})]},t);case"code":return e.jsxs("div",{className:"relative group",children:[e.jsx("pre",{className:"bg-muted p-3 rounded-md text-xs overflow-x-auto",children:e.jsx("code",{className:"text-foreground font-mono",children:s.content})}),s.copyable&&e.jsx(v,{content:s.content,variant:"ghost",size:"sm",iconOnly:!0,className:"absolute top-2 right-2 h-6 px-2 text-xs"})]},t);case"button":return e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("span",{className:a+" text-muted-foreground flex-grow",children:s.content}),s.button&&e.jsxs(x,{variant:s.button.variant||"default",size:"sm",onClick:()=>h(s.button),className:"ml-auto cursor-pointer",children:[s.button.type==="external"&&e.jsx(r,{className:"h-4 w-4 mr-2"}),s.button.type==="download"&&e.jsx(N,{className:"h-4 w-4 mr-2"}),s.button.type==="copy"&&e.jsx(y,{className:"h-4 w-4 mr-2"}),s.button.label]})]},t);default:return e.jsx("div",{className:a+" text-muted-foreground",children:s.content},t)}};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx("div",{className:"bg-gradient-to-b from-primary/5 to-background px-8 pt-12 pb-8",children:e.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[e.jsx("img",{src:D,alt:"Hugging Face",className:"h-16 mx-auto mb-8"}),e.jsx("h2",{className:"text-3xl font-bold text-foreground mb-4",children:"Welcome to the Hugging Face MCP Server"}),e.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Connect assistants to the Hub and thousands of AI Apps"})]})}),e.jsx("div",{className:"px-8 pb-12",children:e.jsxs("div",{className:"max-w-3xl mx-auto",children:[e.jsxs(u,{children:[e.jsx(f,{className:"pb-0",children:e.jsx(g,{className:"text-xl font-semibold",children:"Get Started"})}),e.jsx(j,{className:"space-y-6 pt-0",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[e.jsx("span",{className:"flex-shrink-0 w-10 h-10 rounded-full bg-primary/10 text-primary flex items-center justify-center text-lg font-bold",children:"1"}),e.jsx("span",{className:"text-lg font-medium text-foreground",children:"Setup your Client with this URL:"})]}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"text",value:"https://huggingface.co/mcp?login",readOnly:!0,className:"w-full px-4 py-3 pr-12 text-sm font-mono bg-muted border border-border rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/20 h-12 cursor-pointer hover:bg-muted/80 transition-colors",onClick:c}),e.jsx(v,{content:"https://huggingface.co/mcp?login",variant:"secondary",size:"sm",iconOnly:!0,className:"absolute right-2 top-1/2 transform -translate-y-1/2 h-8 px-2"})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[e.jsx("span",{className:"flex-shrink-0 w-10 h-10 rounded-full bg-primary/10 text-primary flex items-center justify-center text-lg font-bold",children:"2"}),e.jsx("span",{className:"text-lg font-medium text-foreground",children:"Choose your Apps and Tools"})]}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"text",value:"Go to MCP Settings",readOnly:!0,className:"w-full pl-12 pr-12 py-3 text-sm bg-muted border border-border rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/20 h-12 cursor-pointer hover:bg-muted/80 transition-colors",onClick:d}),e.jsx(x,{size:"sm",onClick:d,className:"absolute right-2 top-1/2 transform -translate-y-1/2 h-8 px-2 hover:bg-secondary/80 transition-colors cursor-pointer",variant:"secondary",children:e.jsx(r,{className:"h-4 w-4"})}),e.jsx(b,{className:"absolute left-4 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground pointer-events-none"})]})]})]})})]}),e.jsxs(u,{className:"mt-8",children:[e.jsxs(f,{className:"pb-0",children:[e.jsx(g,{className:"text-xl font-semibold",children:"Detailed Client Setup"}),e.jsx(C,{children:"Choose your preferred AI client and follow the setup instructions"})]}),e.jsx(j,{className:"space-y-4 pt-0",children:G.map(s=>{const t=p.has(s.id);return e.jsxs("div",{className:"border border-border rounded-lg",children:[e.jsxs("button",{onClick:()=>m(s.id),className:"w-full px-4 py-3 flex items-center justify-between hover:bg-accent/50 transition-colors rounded-lg",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:"text-primary",children:s.icon}),e.jsxs("div",{className:"text-left",children:[e.jsx("h4",{className:"font-semibold text-foreground",children:s.name}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s.description})]})]}),e.jsx("div",{className:"text-muted-foreground",children:t?e.jsx(k,{className:"h-6 w-6"}):e.jsx(L,{className:"h-6 w-6"})})]}),t&&e.jsxs("div",{className:"px-4 pb-4 space-y-4 border-t border-border mt-3 pt-4",children:[s.actionButtons&&s.actionButtons.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2",children:s.actionButtons.map((a,l)=>e.jsxs(x,{variant:a.variant||"default",size:"sm",onClick:()=>h(a),className:"h-8 cursor-pointer",children:[a.type==="external"&&e.jsx(r,{className:"h-4 w-4 mr-2"}),a.type==="download"&&e.jsx(N,{className:"h-4 w-4 mr-2"}),a.type==="copy"&&e.jsx(y,{className:"h-4 w-4 mr-2"}),a.label]},l))}),e.jsxs("div",{children:[e.jsx("h5",{className:"font-semibold text-sm text-foreground mb-2",children:s.id==="lm-studio"||s.id==="cursor"||s.id==="vscode"?"One Click Install:":"Instructions:"}),e.jsx("div",{className:"space-y-2",children:s.instructions.map((a,l)=>typeof a=="string"?e.jsxs("div",{className:"flex items-start space-x-2",children:[e.jsxs("span",{className:"text-sm text-muted-foreground flex-shrink-0 mt-0.5",children:[l+1,"."]}),e.jsx("span",{className:"text-sm text-muted-foreground",children:a})]},l):o(a,l))})]}),s.configExample&&e.jsxs("div",{className:"relative group",children:[e.jsx("div",{className:"flex items-center justify-between mb-2",children:e.jsx("h5",{className:"font-semibold text-sm text-foreground",children:"Configuration:"})}),e.jsx("pre",{className:"bg-muted p-3 rounded-md text-xs overflow-x-auto",children:e.jsx("code",{className:"text-foreground font-mono",children:s.configExample})}),e.jsx(v,{content:s.configExample,variant:"ghost",size:"sm",className:"absolute top-2 right-2 h-6 px-2 text-xs"})]}),s.manualConfig&&e.jsxs("div",{children:[e.jsx("h5",{className:"font-semibold text-sm text-foreground mb-2",children:s.manualConfig.title}),e.jsx("div",{className:"space-y-2",children:s.manualConfig.steps.map((a,l)=>o(a,l))})]})]})]},s.id)})})]}),e.jsxs(u,{className:"mt-8",children:[e.jsx(f,{className:"pb-3",children:e.jsx(g,{className:"text-xl font-semibold",children:"What is MCP?"})}),e.jsxs(j,{className:"space-y-4",children:[e.jsx("p",{className:"text-base text-muted-foreground leading-relaxed",children:"The Model Context Protocol (MCP) is an open standard that enables AI assistants to securely connect to external data sources and tools."}),e.jsx("p",{className:"text-base text-muted-foreground leading-relaxed",children:"The Hugging Face MCP Server provides seamless access to Hugging Face's vast ecosystem of Models, Datasets, Research Papers and state-of-the-art AI tools. This server is Open Source, click the link below for details of alternative deployment options, to raise issues or suggest a contribution."}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 pt-4",children:[e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx(T,{className:"h-5 w-5 text-primary mt-0.5"}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-sm text-foreground",children:"Search Models and Datasets"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Discover Models and Trends"})]})]}),e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx(U,{className:"h-5 w-5 text-primary mt-0.5"}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-sm text-foreground",children:"Discover Spaces"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Add the latest AI Applications"})]})]}),e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx("svg",{className:"h-5 w-5 mt-0.5",viewBox:"0 0 98 96",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z",fill:"#6b7280"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-sm text-foreground",children:e.jsxs("a",{href:"https://github.com/evalstate/hf-mcp-server",target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary hover:underline transition-colors duration-200 inline-flex items-center space-x-1",children:[e.jsx("span",{children:"Open Source"}),e.jsx(r,{className:"h-3 w-3"})]})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Contribute on GitHub"})]})]})]})]})]})]})})]})}_.createRoot(document.getElementById("root")).render(e.jsx(w.StrictMode,{children:e.jsx(P,{})}));
|
|
72
|
+
args = ["-y", "mcp-remote@latest", "https://huggingface.co/mcp?login"]`,copyable:!0}],actionButtons:[{type:"external",label:"Codex CLI Instructions",url:"https://github.com/openai/codex",variant:"outline"}]}];function P(){const[p,i]=w.useState(new Set),c=async()=>{const s="https://huggingface.co/mcp?login";try{await navigator.clipboard.writeText(s)}catch(t){console.error("Failed to copy URL:",t)}},d=()=>{window.open("https://huggingface.co/settings/mcp","_blank")},m=s=>{i(t=>{const a=new Set(t);return a.has(s)?a.delete(s):a.add(s),a})},h=async s=>{switch(s.type){case"copy":if(s.content)try{await navigator.clipboard.writeText(s.content)}catch(t){console.error("Failed to copy content:",t)}break;case"link":case"external":s.url&&window.open(s.url,"_blank");break;case"download":if(s.url){const t=document.createElement("a");t.href=s.url,t.download=s.label,document.body.appendChild(t),t.click(),document.body.removeChild(t)}break}},o=(s,t)=>{const a="text-sm";switch(s.type){case"warning":return e.jsxs("div",{className:"flex items-start space-x-2 p-3 bg-yellow-50 border border-yellow-200 rounded-lg",children:[e.jsx(M,{className:"h-4 w-4 text-yellow-600 mt-0.5 flex-shrink-0"}),e.jsx("div",{className:"text-sm text-yellow-800",children:s.content})]},t);case"info":return e.jsxs("div",{className:"flex items-start space-x-2 p-3 bg-blue-50 border border-blue-200 rounded-lg",children:[e.jsx(I,{className:"h-4 w-4 text-blue-600 mt-0.5 flex-shrink-0"}),e.jsx("div",{className:"text-sm text-blue-800",children:s.content})]},t);case"code":return e.jsxs("div",{className:"relative group",children:[e.jsx("pre",{className:"bg-muted p-3 rounded-md text-xs overflow-x-auto",children:e.jsx("code",{className:"text-foreground font-mono",children:s.content})}),s.copyable&&e.jsx(v,{content:s.content,variant:"ghost",size:"sm",iconOnly:!0,className:"absolute top-2 right-2 h-6 px-2 text-xs"})]},t);case"button":return e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("span",{className:a+" text-muted-foreground flex-grow",children:s.content}),s.button&&e.jsxs(x,{variant:s.button.variant||"default",size:"sm",onClick:()=>h(s.button),className:"ml-auto cursor-pointer",children:[s.button.type==="external"&&e.jsx(r,{className:"h-4 w-4 mr-2"}),s.button.type==="download"&&e.jsx(N,{className:"h-4 w-4 mr-2"}),s.button.type==="copy"&&e.jsx(y,{className:"h-4 w-4 mr-2"}),s.button.label]})]},t);default:return e.jsx("div",{className:a+" text-muted-foreground",children:s.content},t)}};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx("div",{className:"bg-gradient-to-b from-primary/5 to-background px-8 pt-12 pb-8",children:e.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[e.jsx("img",{src:D,alt:"Hugging Face",className:"h-16 mx-auto mb-8"}),e.jsx("h2",{className:"text-3xl font-bold text-foreground mb-4",children:"Welcome to the Hugging Face MCP Server"}),e.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Connect assistants to the Hub and thousands of AI Apps"})]})}),e.jsx("div",{className:"px-8 pb-12",children:e.jsxs("div",{className:"max-w-3xl mx-auto",children:[e.jsxs(u,{children:[e.jsx(f,{className:"pb-0",children:e.jsx(g,{className:"text-xl font-semibold",children:"Get Started"})}),e.jsx(j,{className:"space-y-6 pt-0",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[e.jsx("span",{className:"flex-shrink-0 w-10 h-10 rounded-full bg-primary/10 text-primary flex items-center justify-center text-lg font-bold",children:"1"}),e.jsx("span",{className:"text-lg font-medium text-foreground",children:"Setup your Client with this URL:"})]}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"text",value:"https://huggingface.co/mcp?login",readOnly:!0,className:"w-full px-4 py-3 pr-12 text-sm font-mono bg-muted border border-border rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/20 h-12 cursor-pointer hover:bg-muted/80 transition-colors",onClick:c}),e.jsx(v,{content:"https://huggingface.co/mcp?login",variant:"secondary",size:"sm",iconOnly:!0,className:"absolute right-2 top-1/2 transform -translate-y-1/2 h-8 px-2"})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[e.jsx("span",{className:"flex-shrink-0 w-10 h-10 rounded-full bg-primary/10 text-primary flex items-center justify-center text-lg font-bold",children:"2"}),e.jsx("span",{className:"text-lg font-medium text-foreground",children:"Choose your Apps and Tools"})]}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"text",value:"Go to MCP Settings",readOnly:!0,className:"w-full pl-12 pr-12 py-3 text-sm bg-muted border border-border rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/20 h-12 cursor-pointer hover:bg-muted/80 transition-colors",onClick:d}),e.jsx(x,{size:"sm",onClick:d,className:"absolute right-2 top-1/2 transform -translate-y-1/2 h-8 px-2 hover:bg-secondary/80 transition-colors cursor-pointer",variant:"secondary",children:e.jsx(r,{className:"h-4 w-4"})}),e.jsx(b,{className:"absolute left-4 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground pointer-events-none"})]})]})]})})]}),e.jsxs(u,{className:"mt-8",children:[e.jsxs(f,{className:"pb-0",children:[e.jsx(g,{className:"text-xl font-semibold",children:"Detailed Client Setup"}),e.jsx(C,{children:"Choose your preferred AI client and follow the setup instructions"})]}),e.jsx(j,{className:"space-y-4 pt-0",children:G.map(s=>{const t=p.has(s.id);return e.jsxs("div",{className:"border border-border rounded-lg",children:[e.jsxs("button",{onClick:()=>m(s.id),className:"w-full px-4 py-3 flex items-center justify-between hover:bg-accent/50 transition-colors rounded-lg",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:"text-primary",children:s.icon}),e.jsxs("div",{className:"text-left",children:[e.jsx("h4",{className:"font-semibold text-foreground",children:s.name}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s.description})]})]}),e.jsx("div",{className:"text-muted-foreground",children:t?e.jsx(k,{className:"h-6 w-6"}):e.jsx(L,{className:"h-6 w-6"})})]}),t&&e.jsxs("div",{className:"px-4 pb-4 space-y-4 border-t border-border mt-3 pt-4",children:[s.actionButtons&&s.actionButtons.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2",children:s.actionButtons.map((a,l)=>e.jsxs(x,{variant:a.variant||"default",size:"sm",onClick:()=>h(a),className:"h-8 cursor-pointer",children:[a.type==="external"&&e.jsx(r,{className:"h-4 w-4 mr-2"}),a.type==="download"&&e.jsx(N,{className:"h-4 w-4 mr-2"}),a.type==="copy"&&e.jsx(y,{className:"h-4 w-4 mr-2"}),a.label]},l))}),e.jsxs("div",{children:[e.jsx("h5",{className:"font-semibold text-sm text-foreground mb-2",children:s.id==="lm-studio"||s.id==="cursor"||s.id==="vscode"?"One Click Install:":"Instructions:"}),e.jsx("div",{className:"space-y-2",children:s.instructions.map((a,l)=>typeof a=="string"?e.jsxs("div",{className:"flex items-start space-x-2",children:[e.jsxs("span",{className:"text-sm text-muted-foreground flex-shrink-0 mt-0.5",children:[l+1,"."]}),e.jsx("span",{className:"text-sm text-muted-foreground",children:a})]},l):o(a,l))})]}),s.configExample&&e.jsxs("div",{className:"relative group",children:[e.jsx("div",{className:"flex items-center justify-between mb-2",children:e.jsx("h5",{className:"font-semibold text-sm text-foreground",children:"Configuration:"})}),e.jsx("pre",{className:"bg-muted p-3 rounded-md text-xs overflow-x-auto",children:e.jsx("code",{className:"text-foreground font-mono",children:s.configExample})}),e.jsx(v,{content:s.configExample,variant:"ghost",size:"sm",className:"absolute top-2 right-2 h-6 px-2 text-xs"})]}),s.manualConfig&&e.jsxs("div",{children:[e.jsx("h5",{className:"font-semibold text-sm text-foreground mb-2",children:s.manualConfig.title}),e.jsx("div",{className:"space-y-2",children:s.manualConfig.steps.map((a,l)=>o(a,l))})]})]})]},s.id)})})]}),e.jsxs(u,{className:"mt-8",children:[e.jsx(f,{className:"pb-3",children:e.jsx(g,{className:"text-xl font-semibold",children:"What is MCP?"})}),e.jsxs(j,{className:"space-y-4",children:[e.jsx("p",{className:"text-base text-muted-foreground leading-relaxed",children:"The Model Context Protocol (MCP) is an open standard that enables AI assistants to securely connect to external data sources and tools."}),e.jsx("p",{className:"text-base text-muted-foreground leading-relaxed",children:"The Hugging Face MCP Server provides seamless access to Hugging Face's vast ecosystem of Models, Datasets, Research Papers and state-of-the-art AI tools. This server is Open Source, click the link below for details of alternative deployment options, to raise issues or suggest a contribution."}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 pt-4",children:[e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx(T,{className:"h-5 w-5 text-primary mt-0.5"}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-sm text-foreground",children:"Search Models and Datasets"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Discover Models and Trends"})]})]}),e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx(U,{className:"h-5 w-5 text-primary mt-0.5"}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-sm text-foreground",children:"Discover Spaces"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Add the latest AI Applications"})]})]}),e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx("svg",{className:"h-5 w-5 mt-0.5",viewBox:"0 0 98 96",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z",fill:"#6b7280"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-sm text-foreground",children:e.jsxs("a",{href:"https://github.com/huggingface/hf-mcp-server",target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary hover:underline transition-colors duration-200 inline-flex items-center space-x-1",children:[e.jsx("span",{children:"Open Source"}),e.jsx(r,{className:"h-3 w-3"})]})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Contribute on GitHub"})]})]})]})]})]})]})})]})}_.createRoot(document.getElementById("root")).render(e.jsx(w.StrictMode,{children:e.jsx(P,{})}));
|