File tree Expand file tree Collapse file tree 2 files changed +33
-2
lines changed Expand file tree Collapse file tree 2 files changed +33
-2
lines changed Original file line number Diff line number Diff line change 77 import IconArrowUpRight from " ./IconArrowUpRight.svelte" ;
88 import IconOpenAI from " ./IconOpenAI.svelte" ;
99 import IconAnthropic from " ./IconAnthropic.svelte" ;
10+ import IconMCP from " ./IconMCP.svelte" ;
1011
1112 export let label = " Copy page" ;
1213 export let markdownDescription = " Copy page as Markdown for LLMs" ;
3738 type ExternalOption = {
3839 label: string ;
3940 description: string ;
40- icon: " chatgpt" | " claude" ;
41+ icon: " chatgpt" | " claude" | " mcp " ;
4142 buildUrl: () => string ;
4243 };
4344
5859 buildUrl : () =>
5960 encodedPrompt ? ` https://claude.ai/new?q=${encodedPrompt } ` : " https://claude.ai/new" ,
6061 },
62+ {
63+ label: " Connect to MCP Client" ,
64+ description: " Install MCP server on Cursor, VS Code, etc." ,
65+ icon: " mcp" ,
66+ buildUrl : () => " https://huggingface.co/mcp" ,
67+ },
6168 ];
6269
6370 const baseMenuItemClass =
293300 <div class =" border border-gray-200 dark:border-gray-850 rounded-lg p-1.5" >
294301 {#if option .icon === " chatgpt" }
295302 <IconOpenAI classNames =" w-4 h-4 shrink-0" />
296- {:else }
303+ {:else if option . icon === " claude " }
297304 <IconAnthropic classNames =" w-4 h-4 shrink-0" />
305+ {:else if option .icon === " mcp" }
306+ <IconMCP classNames =" w-4 h-4 shrink-0" />
298307 {/if }
299308 </div >
300309 <div class =" flex flex-col px-1" >
Original file line number Diff line number Diff line change 1+ <script lang =" ts" >
2+ export let classNames = " " ;
3+ </script >
4+
5+ <svg
6+ xmlns =" http://www.w3.org/2000/svg"
7+ fill =" currentColor"
8+ fill-rule =" evenodd"
9+ height =" 1em"
10+ style =" flex:none;line-height:1"
11+ viewBox =" 0 0 24 24"
12+ width =" 1em"
13+ class ={classNames }
14+ >
15+ <title >ModelContextProtocol</title >
16+ <path
17+ d =" M15.688 2.343a2.588 2.588 0 00-3.61 0l-9.626 9.44a.863.863 0 01-1.203 0 .823.823 0 010-1.18l9.626-9.44a4.313 4.313 0 016.016 0 4.116 4.116 0 011.204 3.54 4.3 4.3 0 013.609 1.18l.05.05a4.115 4.115 0 010 5.9l-8.706 8.537a.274.274 0 000 .393l1.788 1.754a.823.823 0 010 1.18.863.863 0 01-1.203 0l-1.788-1.753a1.92 1.92 0 010-2.754l8.706-8.538a2.47 2.47 0 000-3.54l-.05-.049a2.588 2.588 0 00-3.607-.003l-7.172 7.034-.002.002-.098.097a.863.863 0 01-1.204 0 .823.823 0 010-1.18l7.273-7.133a2.47 2.47 0 00-.003-3.537z"
18+ />
19+ <path
20+ d =" M14.485 4.703a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a4.115 4.115 0 000 5.9 4.314 4.314 0 006.016 0l7.12-6.982a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a2.588 2.588 0 01-3.61 0 2.47 2.47 0 010-3.54l7.12-6.982z"
21+ />
22+ </svg >
You can’t perform that action at this time.
0 commit comments