import{j as e,r as s}from"./vendor-react-RSDKEZ60.js";import{bb as C,bC as t,q_ as a,bm as r,T8 as n,bs as i,qv as o,a9 as l,oI as d,f as c,cy as m,dX as x,I as f,l$ as u,hZ as h}from"./c818056db-BBpc4u6S.js";import{C as g}from"./c1f96d614-fszDh6Jj.js";import{u as p,M as j}from"./vendor-intl-BNW8a19h.js";import{C as v,A as b}from"./c40b9b8f5-FH3kS9Lp.js";import{bC as M,h as w,b0 as L,bD as N}from"./vendor-icons-CjJMeNuY.js";const y=s=>e.jsx(C,{...s,children:e.jsx("path",{d:"M13.24 3.072a.5.5 0 0 1 .667.718l-.067.076L7.233 10l6.607 6.134a.5.5 0 1 1-.68.732l-7-6.5-.068-.077a.5.5 0 0 1 .068-.655l7-6.5z"})}),k=s.memo(({skill:C,hideTryButton:n=!1,addedBy:i=b.Anthropic})=>{const o=p(),l=t(),d=s.useCallback(()=>{const e=new URLSearchParams({q:`/${C.name}`});l.push(`${a}?${e.toString()}`)},[l,C.name]);return e.jsx(v,{name:C.name,addedBy:i??void 0,description:C.description?{content:C.description,tooltip:o.formatMessage({defaultMessage:"Claude uses these descriptions when deciding which skills to use in chat.",id:"g08yMBD/54"})}:void 0,children:n?null:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsxs(r,{variant:"secondary",className:"gap-1",onClick:d,children:[e.jsx(g,{size:16}),e.jsx(j,{defaultMessage:"Try in Cowork",id:"la/kX21r6k"})]})})})});k.displayName="BuiltInSkillDetailPanel";const P=Object.freeze(Object.defineProperty({__proto__:null,BuiltInSkillDetailPanel:k},Symbol.toStringTag,{value:"Module"})),S=e=>e.normalize("NFKD").toLowerCase().replace(/[\u0300-\u036f]/g,"").replace(/[\s\-_]+/g," ").trim(),I=({serverName:s})=>e.jsx(r,{variant:"secondary",size:"sm",onClick:()=>{n?.revealServerLog?.(s)},children:e.jsx(j,{defaultMessage:"View Logs",description:"Button text to open the log file for this MCP server",id:"zvT1bjOqfj"})}),T=({configKey:C,config:t,deleteCallback:a})=>{const[r,n]=s.useState(!1),i=p(),o=t.args?.join(" ")||void 0,l=t.env?Object.keys(t.env).map(s=>e.jsx("p",{children:`${s}=${t.env?.[s]}`},s)):null,d=!!l,c=!!t.extensionId,m=i.formatMessage({defaultMessage:"Delete",description:"Title text for the delete button that removes an MCP server configuration",id:"L32WRR6NOL"});return e.jsxs("div",{className:"flex-1 h-full min-w-0 overflow-auto break-words px-5 py-2 bg-bg-100",children:[e.jsxs("header",{className:"flex items-center justify-between mb-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h2",{className:"text-base font-medium",children:C}),e.jsx("div",{className:"rounded px-2 py-0.5 text-xs "+("running"===t.status?"bg-accent-200 text-text-000":"failed"===t.status?"bg-danger-200 text-text-000":"bg-brand-200 text-text-000"),children:t.status})]}),!c&&e.jsx("button",{onClick:a,className:"appearance-none border-0 bg-transparent p-2 hover:bg-bg-200 rounded transition-colors",title:m,"aria-label":m,children:e.jsx(M,{className:"text-text-300 hover:text-danger-100"})})]}),c&&e.jsx("p",{className:"text-sm text-text-500",children:e.jsx(j,{defaultMessage:"This server is managed by an extension",id:"HC0OdPtRvg",description:"Message shown when an MCP server is controlled by an extension"})}),e.jsxs("section",{className:"mt-4",children:[e.jsx("h3",{className:"text-sm font-medium",children:e.jsx(j,{defaultMessage:"Command",description:"Label for the command used to start the MCP server",id:"urCd4k/cE0"})}),e.jsx("p",{className:"mt-1 text-sm text-text-500",children:t.command})]}),o&&e.jsxs("section",{className:"mt-4",children:[e.jsx("h3",{className:"text-sm font-medium",children:e.jsx(j,{defaultMessage:"Arguments",description:"Label for the command-line arguments passed to the MCP server",id:"pgaCSv2/6H"})}),e.jsx("p",{className:"mt-1 text-sm text-text-500",children:o})]}),t.error&&e.jsxs("section",{className:"mt-4",children:[e.jsx("h3",{className:"text-sm font-medium text-danger-100",children:e.jsx(j,{defaultMessage:"Error",description:"Label for the error message when an MCP server fails",id:"zCIK9K8J4a"})}),e.jsx("p",{className:"mt-1 text-sm text-danger-100",children:t.error})]}),e.jsx("section",{className:"mt-4",children:e.jsx(I,{serverName:C})}),d&&e.jsxs(e.Fragment,{children:[e.jsxs("button",{className:"mt-4 flex items-center gap-1 text-text-500 hover:text-text-100",onClick:()=>n(!r),children:[e.jsx(w,{className:"transition-transform "+(r?"rotate-90":"")}),e.jsx(j,{defaultMessage:"Advanced options",description:"Button text to show or hide advanced MCP server configuration options",id:"CZwl8X2D85"})]}),r&&l&&e.jsxs("section",{className:"mt-4",children:[e.jsx("h3",{className:"text-sm font-medium",children:e.jsx(j,{defaultMessage:"Environment variables",description:"Label for the environment variables section of MCP server configuration",id:"4qP7MjrQfC"})}),l]})]})]})};function D(){const s=i();return e.jsxs("svg",{width:"70",height:"71",viewBox:"0 0 70 71",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M23.6406 17.5098L30.971 39.7362L34.9386 33.8576C34.9386 33.8576 40.9684 40.6112 41.4346 40.5566C41.9008 40.502 45.8754 36.1032 45.8754 36.1032L39.6482 29.5414C39.6482 29.5414 45.9818 27.1558 46.0406 27.1782C46.0994 27.2006 23.6406 17.5112 23.6406 17.5112",fill:"dark"===s.resolvedMode?"#4D4C48":"#E3DACC"}),e.jsx("path",{d:"M24.3667 16.5411C24.9537 16.8024 25.5408 17.0643 26.1279 17.3265C27.0057 17.7241 27.0617 17.6009 27.9409 17.9999C28.8187 18.3975 28.7403 18.5711 29.6181 18.9701C30.2051 19.2324 30.7917 19.4947 31.3779 19.7569C32.2557 20.1545 32.2949 20.0677 33.1741 20.4667C34.0533 20.8657 34.0183 20.9385 34.8975 21.3375C35.7753 21.7351 35.7879 21.7085 36.6657 22.1075C37.5435 22.5051 37.5883 22.4085 38.4661 22.8061C39.3439 23.2037 39.3299 23.2359 40.2091 23.6335C41.0869 24.0311 41.0589 24.0927 41.9381 24.4903C42.8159 24.8879 42.8635 24.7829 43.7427 25.1819C44.6891 25.6103 44.3181 25.5235 46.0807 26.3215C46.1815 26.3691 46.2864 26.4111 46.362 26.4573C46.3971 26.4811 46.4321 26.5035 46.4657 26.5259C46.4993 26.5483 46.5189 26.5707 46.5455 26.5931C46.5693 26.6155 46.5945 26.6365 46.6127 26.6561C46.6295 26.6757 46.6449 26.6953 46.6603 26.7149C46.6925 26.7527 46.7205 26.7891 46.7359 26.8199C46.7541 26.8521 46.7723 26.8815 46.7891 26.9109C46.8031 26.9389 46.8101 26.9627 46.8213 26.9865C46.8423 27.0355 46.8591 27.0803 46.8703 27.1181C46.8955 27.1923 46.9291 27.3715 46.8829 27.5689C46.8605 27.6655 46.8185 27.7607 46.7751 27.8111C46.7513 27.8405 46.7275 27.8713 46.7009 27.9035C46.6771 27.9357 46.6337 27.9777 46.5987 28.0183C46.4517 28.1709 46.2696 28.3137 46.0471 28.3963C45.6495 28.5377 45.3863 28.6539 45.0433 28.7869C44.9551 28.8205 44.8641 28.8541 44.7675 28.8919C44.7171 28.9101 44.6653 28.9283 44.612 28.9479L44.5743 28.9619L44.5533 28.9703C44.5393 28.9759 44.5239 28.9815 44.5099 28.9871C44.3895 29.0333 44.2467 29.0823 44.0689 29.1355C43.1449 29.4113 43.1225 29.3385 42.1999 29.6143C41.7379 29.7529 41.4999 29.8005 41.2633 29.8481C41.1541 29.8705 41.0449 29.8943 40.9091 29.9223C40.8783 29.9223 40.8377 29.9293 40.7887 29.9433C40.7397 29.9587 40.7117 29.9727 40.7075 29.9923C40.7033 30.0161 40.7341 30.0497 40.7705 30.0665C40.8503 30.0973 40.9049 30.1015 40.9217 30.1183C40.9245 30.1211 40.9259 30.1239 40.9287 30.1253C40.9595 30.1561 40.9875 30.1841 41.0141 30.2121C41.0785 30.2807 41.1359 30.3409 41.1877 30.3955C41.2899 30.5061 41.3683 30.5985 41.4481 30.6895C41.6049 30.8729 41.7631 31.0563 42.1089 31.3923C42.8019 32.0629 42.8453 32.0181 43.5369 32.6887C44.2299 33.3593 44.1347 33.4573 44.8277 34.1293C45.1735 34.4653 45.3709 34.6081 45.5683 34.7509C45.6663 34.8223 45.7657 34.8937 45.8819 34.9889C45.8959 35.0015 45.9113 35.0127 45.9267 35.0253C45.9421 35.0379 45.9533 35.0477 45.9883 35.0785C46.0471 35.1331 46.1087 35.1891 46.1759 35.2507C46.2417 35.3123 46.3117 35.3781 46.3859 35.4481C46.4615 35.5167 46.5329 35.5965 46.5875 35.6847C46.6435 35.7715 46.6799 35.8541 46.7037 35.9269C46.7289 35.9983 46.7457 36.0795 46.7527 36.1579C46.7667 36.3161 46.7387 36.4617 46.6995 36.5639C46.6211 36.7683 46.4797 36.9489 46.2977 37.0931C46.2137 37.1673 46.1297 37.2415 46.0401 37.3199C45.9995 37.3563 45.9575 37.3941 45.9141 37.4333C45.8875 37.4557 45.8609 37.4781 45.8315 37.5033C45.7167 37.6027 45.5837 37.7245 45.4143 37.8967C44.9597 38.3513 44.5047 38.8058 44.0493 39.2603C43.7105 39.6033 43.5453 39.7783 43.3801 39.9547C43.2975 40.0415 43.2149 40.1297 43.1099 40.2389C42.9923 40.3593 42.8509 40.5035 42.6633 40.6953C42.4561 40.8955 42.2909 41.0971 42.1257 41.1853C42.0459 41.2329 41.9717 41.2665 41.9059 41.2903C41.8373 41.3141 41.7617 41.3295 41.6861 41.3351C41.5349 41.3449 41.3907 41.3127 41.2787 41.2595C41.1611 41.2049 41.0267 41.1265 40.8881 40.9851C40.7915 40.8843 40.5871 40.6715 40.2861 40.3565C39.6155 39.6649 39.5511 39.7265 38.8791 39.0335C38.2071 38.3405 38.2701 38.2817 37.5981 37.5887C36.9275 36.8971 36.8421 36.9783 36.1701 36.2867C35.8341 35.9409 35.6493 35.7841 35.4645 35.6273C35.3721 35.5489 35.2797 35.4705 35.1677 35.3683C35.1117 35.3179 35.0515 35.2605 34.9843 35.1947C34.8849 35.0967 34.9185 35.1331 34.9129 35.1261C34.9129 35.1261 34.9171 35.1135 34.9101 35.0953C34.9017 35.0771 34.8919 35.0701 34.8793 35.0813C34.8765 35.0813 34.8723 35.0869 34.8667 35.0953C34.7729 35.2689 34.7029 35.3991 34.6455 35.5083C34.5727 35.6399 34.5153 35.7463 34.4579 35.8527C34.3417 36.0641 34.2255 36.2755 34.0001 36.7011C33.5479 37.5537 33.4373 37.4949 32.9851 38.3475C32.6701 38.9495 32.5133 39.2519 32.3551 39.5529C32.3047 39.6495 32.2543 39.7461 32.2011 39.8483C32.1759 39.9015 32.1507 39.9617 32.1213 40.0149C32.0905 40.0611 32.0583 40.1157 32.0233 40.1619C31.8805 40.3453 31.6985 40.4741 31.5137 40.5609C31.4423 40.6015 31.3009 40.6393 31.1693 40.6351C31.0391 40.6351 30.9229 40.6057 30.8515 40.5791C30.8137 40.5651 30.7885 40.5553 30.7633 40.5441C30.7367 40.5315 30.7115 40.5189 30.6863 40.5063C30.6611 40.4937 30.6373 40.4867 30.6107 40.4713C30.5841 40.4559 30.5575 40.4391 30.5309 40.4237C30.4273 40.3579 30.2999 40.2725 30.1809 40.0415C30.0731 39.7937 29.9597 39.4521 29.8085 39.0041C29.7721 38.8907 29.7371 38.7857 29.7049 38.6849C29.6895 38.6387 29.6755 38.5925 29.6615 38.5491C29.6545 38.5253 29.6475 38.5015 29.6405 38.4791C29.6139 38.3881 29.5929 38.3083 29.5733 38.2355C29.5369 38.0885 29.5131 37.9695 29.4893 37.8505C29.4417 37.6125 29.3941 37.3745 29.2429 36.9167C28.9405 35.9997 28.9055 36.0123 28.6045 35.0953C28.3021 34.1797 28.3819 34.1531 28.0795 33.2375C27.7771 32.3219 27.7225 32.3387 27.4201 31.4231C27.1177 30.5075 27.2003 30.4795 26.8979 29.5639C26.5955 28.6483 26.5241 28.6707 26.2217 27.7551C25.9193 26.8381 25.9445 26.8311 25.6421 25.9141C25.3397 24.9985 25.3229 25.0041 25.0219 24.0885C24.7195 23.1715 24.6397 23.1981 24.3373 22.2811C24.0349 21.3641 24.1511 21.3249 23.8487 20.4079C23.5463 19.4909 23.5701 19.4825 23.2677 18.5655C23.0339 17.8585 23.2187 17.6527 23.6331 17.5155C24.0475 17.3783 24.3723 17.4161 24.6061 18.1231C24.9085 19.0387 24.8721 19.0499 25.1745 19.9655C25.3723 20.5768 25.5707 21.1886 25.7695 21.8009C26.0719 22.7165 26.1797 22.6801 26.4821 23.5957C26.7845 24.5113 26.6795 24.5463 26.9819 25.4619C27.2843 26.3775 27.4621 26.3187 27.7631 27.2343C28.0655 28.1499 28.0361 28.1597 28.3385 29.0753C28.6409 29.9909 28.5569 30.0189 28.8593 30.9345C29.1617 31.8501 29.1407 31.8571 29.4431 32.7727C29.7455 33.6883 29.7287 33.6939 30.0311 34.6095C30.3335 35.5251 30.2873 35.5405 30.5897 36.4561C30.7409 36.9139 30.8235 37.1407 30.9061 37.3675C30.9467 37.4809 30.9873 37.5943 31.0391 37.7357C31.0741 37.8351 31.1147 37.9555 31.1693 38.1151C31.2043 38.2201 31.2253 38.2663 31.2449 38.3069C31.2547 38.3265 31.2631 38.3475 31.2757 38.3713C31.2883 38.3951 31.3499 38.4049 31.3709 38.3559C31.4185 38.2663 31.4311 38.1865 31.4297 38.1305C31.4297 38.1025 31.4269 38.0787 31.4269 38.0591C31.4269 38.0549 31.4269 38.0493 31.4269 38.0451C31.4437 38.0101 31.4619 37.9723 31.4815 37.9317C31.5235 37.8477 31.5711 37.7525 31.6271 37.6461C32.0779 36.7935 32.0373 36.7725 32.4881 35.9199C32.7135 35.4943 32.8353 35.2857 32.9557 35.0757C33.0159 34.9707 33.0747 34.8657 33.1503 34.7355C33.2329 34.5829 33.3323 34.4009 33.4639 34.1587C33.6165 33.8731 33.7481 33.6421 33.7677 33.5847C33.9175 33.3005 34.0897 33.1899 34.2171 33.1059C34.3305 33.0359 34.5013 32.9757 34.6735 32.9659C34.7589 32.9617 34.8457 32.9673 34.9213 32.9827C34.9955 32.9995 35.0683 33.0191 35.1593 33.0597C35.2489 33.0961 35.3525 33.1563 35.4645 33.2473C35.5765 33.3425 35.6913 33.4755 35.8229 33.6071C35.9629 33.7527 36.0847 33.8801 36.1939 33.9935C36.2583 34.0621 36.3143 34.1237 36.3647 34.1783C36.4655 34.2903 36.5453 34.3813 36.6237 34.4723C36.7819 34.6543 36.9401 34.8377 37.2747 35.1835C37.9453 35.8751 37.9747 35.8471 38.6453 36.5387C39.3159 37.2303 39.2823 37.2625 39.9543 37.9555C40.4042 38.4147 40.854 38.8739 41.3039 39.3331C41.3529 39.3835 41.3991 39.4297 41.4411 39.4731C41.4621 39.4941 41.4831 39.5151 41.5027 39.5361L41.5223 39.5557L41.5279 39.5599C41.5405 39.5697 41.5517 39.5767 41.5615 39.5809C41.5867 39.5907 41.6007 39.5991 41.6217 39.5851C41.6441 39.5697 41.6497 39.5389 41.6721 39.5193C41.7323 39.4605 41.7841 39.4101 41.8317 39.3653C41.9003 39.3009 41.9619 39.2449 42.0179 39.1945C42.1313 39.0951 42.2265 39.0195 42.3217 38.9439C42.5121 38.7927 42.7011 38.6415 43.0399 38.2985C43.7175 37.6125 43.5803 37.4767 44.2579 36.7907C44.5785 36.4673 44.8431 36.2013 44.7647 36.2811C44.7647 36.2811 44.7717 36.2797 44.7689 36.2755L43.7413 35.2773C43.2783 34.8312 42.8159 34.385 42.3539 33.9389C41.6609 33.2683 41.7785 33.1479 41.0855 32.4759C40.7397 32.1399 40.5591 31.9789 40.3799 31.8193C40.2903 31.7381 40.2007 31.6569 40.0901 31.5561C40.0355 31.5043 39.9739 31.4483 39.9053 31.3839C39.8045 31.2873 39.6925 31.1795 39.5637 31.0563C39.4027 30.9009 39.2613 30.7665 39.1339 30.6447C39.0009 30.5257 38.9071 30.4123 38.8497 30.3143C38.7307 30.1141 38.6985 29.9825 38.6677 29.8509C38.6411 29.7095 38.6607 29.4855 38.7531 29.2979C38.8007 29.2041 38.8371 29.1453 38.9211 29.0529C39.0009 28.9675 39.1073 28.8611 39.3061 28.7729C39.4083 28.7323 39.5133 28.7001 39.6127 28.6721C39.7107 28.6427 39.8031 28.6147 39.8899 28.5881C40.0635 28.5335 40.2175 28.4873 40.3561 28.4439C40.4093 28.4271 40.4611 28.4103 40.5101 28.3949C40.5423 28.3837 40.5745 28.3739 40.6039 28.3627C40.6641 28.3417 40.7215 28.3221 40.7789 28.3025C41.0071 28.2241 41.2353 28.1443 41.6973 28.0071C42.6213 27.7313 42.6829 27.9357 43.6069 27.6585C43.7861 27.6053 43.9303 27.5577 44.0535 27.5157C44.0829 27.5059 44.1109 27.4947 44.1389 27.4863L44.1571 27.4765C44.1683 27.4695 44.1781 27.4625 44.1865 27.4555C44.2201 27.4289 44.2355 27.4051 44.2635 27.3841C44.2761 27.3729 44.2957 27.3631 44.3279 27.3533C44.3629 27.3407 44.3909 27.3379 44.3867 27.3127C44.3839 27.2903 44.3559 27.2707 44.3265 27.2651C44.2663 27.2539 44.2201 27.2483 44.1795 27.2301C44.1585 27.2203 44.1445 27.2119 44.1319 27.2049C44.1249 27.2007 44.1235 27.1979 44.1109 27.1909C44.0535 27.1629 43.9989 27.1363 43.9443 27.1097C43.7273 27.0047 43.5103 26.8983 43.0707 26.6995C42.1915 26.3019 42.1565 26.3789 41.2773 25.9813C40.3981 25.5837 40.4667 25.4325 39.5875 25.0349C38.7097 24.6373 38.6733 24.7157 37.7955 24.3181C36.9163 23.9205 36.8785 24.0059 35.9993 23.6069C35.4122 23.3447 34.8251 23.0824 34.2381 22.8201L32.4797 22.0249C31.6005 21.6273 31.6663 21.4803 30.7885 21.0827C29.9107 20.6851 29.9247 20.6529 29.0455 20.2539C28.1663 19.8563 28.1425 19.9081 27.2633 19.5091C26.3841 19.1101 26.3645 19.1507 25.4853 18.7531C24.6061 18.3541 24.6411 18.2771 23.7605 17.8781C23.7409 17.8697 23.7227 17.8599 23.7059 17.8529L23.6317 17.8179L23.8641 17.4455C23.8781 17.4231 23.8795 17.4063 23.8795 17.4063C23.8795 17.4063 23.8795 17.4105 23.8823 17.4175C23.8879 17.4287 23.8893 17.4259 23.8823 17.4217C23.8669 17.4119 23.8641 17.4175 23.8823 17.4147C23.8935 17.4133 23.9103 17.4077 23.9075 17.4077C23.8263 17.4385 23.7353 17.4735 23.6359 17.5099C23.5365 17.5463 23.4469 17.5883 23.3615 17.6093C23.2775 17.6275 23.1879 17.6275 23.1053 17.5309C23.0647 17.4819 23.0297 17.4063 23.0171 17.2985C23.0059 17.1907 23.0227 17.0507 23.0983 16.9023C23.1739 16.7553 23.3069 16.5999 23.5323 16.5019C23.6429 16.4515 23.7801 16.4221 23.9299 16.4249C24.0797 16.4291 24.2351 16.4711 24.3723 16.5467L24.3149 16.5173C24.3317 16.5243 24.3499 16.5327 24.3695 16.5411H24.3667Z",fill:"dark"===s.resolvedMode?"#FAF9F5":"#141413"}),e.jsx("path",{d:"M11.116 9.08201C14.9268 8.97421 14.9254 8.914 18.7362 8.8062C19.2122 8.7922 19.6294 8.77961 20.0004 8.76841C20.0928 8.76561 20.1837 8.76281 20.2705 8.76001C20.3587 8.76001 20.4428 8.76 20.5254 8.7614C20.6906 8.7614 20.8473 8.76281 20.9957 8.76421C21.5907 8.76421 22.0667 8.76421 22.5427 8.76421C23.4947 8.76281 24.4453 8.76001 26.3493 8.78661C28.888 8.82021 31.4272 8.85427 33.9668 8.88881C37.7748 8.94061 37.7747 9.03721 41.5813 9.08901C45.3893 9.14081 45.3907 8.96161 49.1987 9.01341C53.0067 9.06521 53.0053 9.21641 56.8134 9.26821C57.7654 9.28081 58.4793 9.2836 59.0757 9.2794C59.3739 9.2766 59.6413 9.2738 59.8947 9.271C60.1538 9.2668 60.3974 9.26261 60.641 9.25841C60.753 9.25841 60.8663 9.25701 60.9783 9.26541C61.0876 9.27801 61.1954 9.29901 61.3004 9.33541C61.509 9.40681 61.7049 9.52721 61.8673 9.69241C62.0269 9.85901 62.1571 10.0676 62.2229 10.3112C62.2579 10.4316 62.2748 10.5604 62.279 10.6976C62.2804 10.8012 62.2832 10.9076 62.2846 11.0182C62.2986 11.6132 62.3084 12.3272 62.3126 13.2792C62.3266 17.0858 62.2187 17.0872 62.2327 20.8938C62.2467 24.7018 62.1978 24.7018 62.2118 28.5098C62.2258 32.3192 62.405 32.3178 62.419 36.1272C62.433 39.9352 62.3797 39.9352 62.3937 43.7432C62.3979 45.0662 62.3938 45.93 62.384 46.658C62.3812 46.84 62.3797 47.0136 62.3769 47.183C62.3769 47.2726 62.3741 47.3594 62.3727 47.4476C62.3713 47.6058 62.3755 47.7668 62.3419 47.9152C62.2845 48.2148 62.1264 48.4948 61.8883 48.7048C61.6503 48.9148 61.3339 49.0464 60.9727 49.0576C60.6283 49.0646 60.2363 49.073 59.7715 49.0828C59.3445 49.0954 58.8517 49.108 58.2693 49.1248C56.3625 49.1836 55.4091 49.2018 54.4557 49.22C53.9797 49.2298 53.5024 49.2396 52.906 49.2522C52.6078 49.2648 52.2801 49.2578 51.9091 49.2536C51.5367 49.2508 51.1209 49.248 50.6435 49.2438C46.8327 49.22 46.8342 49.3348 43.0233 49.311C40.4847 49.3035 37.946 49.2961 35.4073 49.2886C31.5979 49.2648 31.5979 49.1822 27.7885 49.1584C25.2489 49.1472 22.7094 49.136 20.1698 49.1248C16.3604 49.101 16.3604 49.0212 12.551 48.996C11.599 48.9904 10.8835 48.996 10.2885 49.0086C10.1401 49.0128 9.99874 49.0156 9.86294 49.0198C9.81534 49.0198 9.76773 49.0212 9.72153 49.0226C9.65993 49.0226 9.59836 49.0254 9.53956 49.0226C9.47936 49.0226 9.42056 49.0184 9.36456 49.0072C9.30716 49.0002 9.25113 48.9876 9.19653 48.9736C8.75833 48.8546 8.41394 48.534 8.25574 48.1322C8.21374 48.0328 8.18856 47.9264 8.16896 47.8186C8.15356 47.708 8.14933 47.5946 8.14513 47.4784C8.13813 47.351 8.13115 47.2208 8.12275 47.0864C8.11015 46.833 8.09614 46.5656 8.08214 46.2688C8.05554 45.6738 8.03455 44.9598 8.01915 44.0078C7.97808 41.4701 7.93703 38.9323 7.89596 36.3946C7.83716 32.5838 7.93514 32.5824 7.87634 28.773C7.84461 26.2306 7.81289 23.6887 7.78115 21.1472C7.72235 17.335 7.76435 17.3336 7.70415 13.5214C7.65795 10.5786 7.94075 10.475 8.37755 10.468C8.81435 10.461 9.23575 10.5534 9.28195 13.4962C9.34075 17.3028 9.28194 17.3042 9.34074 21.1108C9.39954 24.916 9.29035 24.9174 9.34915 28.7226C9.40795 32.5292 9.49614 32.5278 9.55634 36.3358C9.61514 40.141 9.66273 40.141 9.72153 43.9462C9.74533 45.6878 9.75795 46.5586 9.77055 47.4294C9.77335 47.4434 9.78314 47.4574 9.79854 47.463C9.80274 47.463 9.80695 47.4644 9.81115 47.4644H9.83775C9.97355 47.4658 10.115 47.4672 10.2634 47.4686C10.8584 47.4728 11.5709 47.4784 12.5229 47.4854C15.0597 47.5097 17.5966 47.5344 20.1334 47.5596C23.94 47.5834 23.9399 47.6814 27.7465 47.7052C31.5517 47.729 31.5518 47.6716 35.3584 47.6954C39.165 47.7192 39.1649 47.6002 42.9715 47.624C46.7781 47.6478 46.781 47.8158 50.5876 47.841C51.0636 47.841 51.4794 47.841 51.8518 47.841C52.2228 47.8368 52.5503 47.8396 52.8471 47.8172C53.4407 47.7822 53.9153 47.7472 54.3899 47.7108C55.3391 47.638 56.2884 47.5666 58.1868 47.5078C58.7734 47.4896 59.2703 47.4784 59.7015 47.4714C59.9171 47.4686 60.1173 47.4672 60.3035 47.4644C60.3973 47.4644 60.4869 47.4644 60.5751 47.4644C60.6185 47.4644 60.662 47.4644 60.704 47.4644C60.718 47.4644 60.7193 47.4644 60.7179 47.4644L60.7207 47.4672C60.7389 47.4826 60.7767 47.4812 60.7949 47.4546C60.7991 47.4476 60.802 47.4406 60.8062 47.4322V47.4294C60.8062 47.4294 60.809 47.4112 60.809 47.4028L60.8173 47.2138C60.8229 47.0458 60.8299 46.8736 60.8369 46.693C60.8607 45.9706 60.8775 45.1096 60.8733 43.7936C60.8593 39.9856 60.7866 39.9856 60.7726 36.1762C60.7586 32.3668 60.6675 32.3668 60.6535 28.5574C60.6395 24.7508 60.8202 24.7508 60.8062 20.9428C60.7922 17.1348 60.7039 17.1348 60.6899 13.3268C60.6871 12.3748 60.6802 11.6608 60.6718 11.0658C60.6718 11.028 60.6718 10.9916 60.6704 10.9552V10.9118L60.669 10.9062L60.6662 10.8866C60.6634 10.874 60.6563 10.8642 60.6479 10.8572C60.6311 10.8418 60.6073 10.8432 60.5891 10.8474C60.1313 10.8474 59.6722 10.8474 59.0996 10.8502C58.5046 10.8488 57.7905 10.8432 56.8399 10.8292C53.0333 10.7774 53.0348 10.6892 49.2282 10.6374C45.4202 10.5856 45.4215 10.5142 41.6135 10.4624C37.8083 10.4106 37.807 10.5926 34.0018 10.5408C31.4631 10.4951 28.9239 10.4498 26.3843 10.405C24.4789 10.3784 23.5255 10.356 22.5735 10.3322C22.0975 10.321 21.6201 10.3098 21.0251 10.2972C20.8767 10.2944 20.72 10.2916 20.5548 10.2874C20.3896 10.2832 20.2146 10.2818 20.0284 10.2874C19.656 10.2972 19.2401 10.3084 18.7641 10.321C14.9575 10.4288 14.9576 10.37 11.151 10.4778C10.416 10.4988 9.85315 10.496 9.42055 10.475C9.31275 10.4694 9.21196 10.4624 9.11956 10.4554C9.09716 10.454 9.07333 10.4512 9.05233 10.4498L9.02153 10.447V10.4442C9.02153 10.4442 9.01736 10.433 9.01316 10.4274C9.00056 10.4036 8.97115 10.3882 8.93475 10.3812C8.86055 10.3672 8.77094 10.3938 8.67994 10.419C8.59034 10.4456 8.48956 10.4638 8.38036 10.4652C8.27256 10.4652 8.17315 10.4596 8.09615 10.3602C8.05975 10.3098 8.03036 10.2342 8.02896 10.1264C8.02756 10.0186 8.05414 9.8744 8.15214 9.7162C8.24874 9.5594 8.41956 9.38161 8.69956 9.28221C8.76816 9.25701 8.84374 9.2374 8.92354 9.2276C8.97534 9.2206 9.02996 9.21361 9.08596 9.20661C9.17836 9.19541 9.27775 9.1842 9.38555 9.173C9.81815 9.131 10.3823 9.10021 11.1187 9.07921L11.116 9.08201Z",fill:"dark"===s.resolvedMode?"#FAF9F5":"#141413"}),e.jsx("path",{d:"M51.5212 60.9407C50.0036 60.0181 49.9728 60.0699 48.4538 59.1473C46.9362 58.2261 46.9054 58.2765 45.3878 57.3539C45.0084 57.1229 44.7228 56.9507 44.4862 56.8065C44.4568 56.7883 44.4274 56.7715 44.3994 56.7533C44.3574 56.7267 44.3112 56.6987 44.2706 56.6679C44.1866 56.6091 44.1124 56.5461 44.0438 56.4803C43.9052 56.3501 43.7946 56.2073 43.7008 56.0547C43.6084 55.9021 43.5342 55.7369 43.481 55.5549C43.467 55.5087 43.4558 55.4625 43.446 55.4149C43.4404 55.3911 43.4348 55.3673 43.432 55.3421C43.4264 55.3113 43.4222 55.2805 43.4166 55.2497C43.411 55.2203 43.4124 55.1895 43.4096 55.1587L43.4068 55.1083C43.4054 55.0747 43.4026 55.0411 43.4012 55.0075C43.3844 54.7303 43.3648 54.3985 43.3368 53.9547C43.229 52.1823 43.3256 52.1767 43.2192 50.4029C43.2052 50.1677 43.1898 49.9633 43.173 49.7813C43.1646 49.6903 43.1562 49.6063 43.1478 49.5265C43.1436 49.4859 43.1394 49.4481 43.1352 49.4103L43.1324 49.3823C43.1324 49.3823 43.1324 49.3781 43.131 49.3753L43.1268 49.3655C43.1058 49.3179 43.0792 49.2997 43.0554 49.2997C43.0148 49.3207 42.9896 49.3417 42.9784 49.3571L42.9742 49.3627C42.9742 49.3627 42.977 49.3641 42.9644 49.3655C42.9462 49.3655 42.928 49.3669 42.9098 49.3683C42.8356 49.3711 42.7586 49.3753 42.676 49.3795C42.5108 49.3851 42.3274 49.3907 42.1202 49.3935C40.3436 49.4145 40.3422 49.2619 38.567 49.2829C36.7904 49.3039 36.7918 49.4285 35.0152 49.4495C33.2386 49.4705 33.2372 49.3627 31.462 49.3837C29.6854 49.4047 29.6854 49.3557 27.9088 49.3767C27.8948 49.3767 27.8808 49.3767 27.8668 49.3767C27.857 49.3767 27.8486 49.3767 27.8402 49.3767C27.8234 49.3781 27.808 49.3795 27.7926 49.3809C27.7632 49.3851 27.7408 49.3893 27.724 49.3963C27.7366 49.4551 27.752 49.4985 27.7702 49.5293C27.7744 49.5377 27.7786 49.5447 27.7828 49.5503L27.7898 49.5587C27.7898 49.5587 27.794 49.5531 27.7968 49.5839C27.8066 49.6721 27.815 49.7617 27.8248 49.8541C27.8612 50.2237 27.8934 50.6479 27.8976 51.3549C27.9102 53.1315 27.857 53.1315 27.8696 54.9081C27.8696 55.0677 27.8696 55.2119 27.871 55.3449C27.871 55.3911 27.871 55.4359 27.871 55.4807C27.871 55.5423 27.8668 55.6011 27.8598 55.6585C27.8458 55.7733 27.8206 55.8825 27.7856 55.9819C27.6442 56.3837 27.381 56.6413 27.1192 56.7981C26.8322 56.9619 26.597 57.0963 26.3044 57.2629C26.023 57.4253 25.6898 57.6227 25.2054 57.9237C23.6948 58.8589 23.671 58.8211 22.1604 59.7577C21.9728 59.8767 21.8076 59.9803 21.662 60.0727C21.5892 60.1203 21.5206 60.1651 21.4562 60.2071C21.4114 60.2351 21.4254 60.2295 21.4156 60.2365L21.4016 60.2505C21.3666 60.2855 21.3512 60.3121 21.3456 60.3317C21.34 60.3527 21.3442 60.3667 21.3456 60.3793C21.3456 60.3849 21.3456 60.3905 21.3428 60.3961C21.3386 60.3975 21.3288 60.4115 21.3428 60.4255C21.4044 60.4367 21.4492 60.4227 21.4786 60.4185C21.4856 60.4171 21.4926 60.4157 21.4996 60.4143L21.5094 60.4115H21.5136C21.5136 60.4115 21.5052 60.4101 21.5542 60.4101C21.8314 60.4101 22.1646 60.4073 22.6084 60.4059C24.385 60.4059 24.385 60.4871 26.1616 60.4871C27.346 60.4824 28.5304 60.4773 29.7148 60.4717C31.4914 60.4717 31.4914 60.5515 33.268 60.5515C35.0446 60.5515 35.046 60.3737 36.8226 60.3737C38.007 60.3718 39.1914 60.37 40.3758 60.3681C42.1538 60.3681 42.1538 60.4661 43.9318 60.4661C45.7098 60.4661 45.7112 60.4899 47.4906 60.4899C49.27 60.4899 49.27 60.5319 51.0494 60.5319C52.4228 60.5319 52.469 60.8161 52.469 61.2529C52.469 61.6897 52.4228 62.1097 51.0494 62.1097C49.2728 62.1097 49.2728 62.0495 47.4962 62.0495C45.7196 62.0495 45.721 61.9403 43.9458 61.9403C42.1706 61.9403 42.1692 62.0285 40.3926 62.0285C38.616 62.0285 38.6174 62.0747 36.8408 62.0747C35.6564 62.0709 34.472 62.0668 33.2876 62.0621C31.511 62.0621 31.511 62.0369 29.7358 62.0369C27.9606 62.0369 27.9592 61.9403 26.1826 61.9403C24.406 61.9403 24.406 61.9991 22.6308 61.9991C22.187 61.9991 21.8538 62.0061 21.5752 62.0173C21.0614 62.0327 20.6498 62.0453 20.2382 62.0593C20.0156 62.0663 19.793 62.0733 19.5578 62.0817C19.3142 62.0943 19.0678 62.0901 18.8956 62.0299C18.8088 62.0033 18.7444 61.9655 18.6632 61.9291C18.6086 61.8899 18.5512 61.8479 18.491 61.8045C18.4504 61.7625 18.4112 61.7191 18.3678 61.6701C18.3272 61.6197 18.309 61.5987 18.2446 61.4685C18.1872 61.3453 18.1536 61.1899 18.1494 61.0849C18.1466 61.0317 18.148 60.9911 18.1494 60.9729C18.1494 60.9589 18.1508 60.9603 18.1522 60.9533L18.1592 60.9113C18.1704 60.8553 18.1788 60.8077 18.1956 60.7531C18.2194 60.6929 18.2432 60.6355 18.2684 60.5823C18.309 60.5193 18.3468 60.4591 18.3874 60.4017C18.4168 60.3695 18.4462 60.3387 18.4742 60.3079C18.5064 60.2771 18.5218 60.2491 18.568 60.2169C18.6086 60.1861 18.6478 60.1567 18.687 60.1273L18.7164 60.1049L18.7598 60.0839L18.8466 60.0433C18.8732 60.0293 18.8914 60.0139 18.9194 60.0013L19.0286 59.9663C19.0608 59.9537 19.1084 59.9439 19.1294 59.9299L19.1994 59.8893C19.5732 59.6709 19.9344 59.4609 20.3628 59.2005C20.4664 59.1375 20.5742 59.0717 20.689 59.0017C20.7562 58.9639 20.8262 58.9233 20.9018 58.8799C21.0516 58.7931 21.2182 58.6923 21.4072 58.5747C22.9178 57.6395 22.8282 57.4939 24.3374 56.5587C24.8316 56.2521 25.1746 56.0617 25.4644 55.9105C25.61 55.8363 25.7416 55.7705 25.8732 55.7047C25.939 55.6725 26.0048 55.6389 26.072 55.6067C26.1056 55.5899 26.1392 55.5731 26.1742 55.5549L26.226 55.5283C26.226 55.5283 26.2484 55.5171 26.247 55.5171H26.2526C26.2806 55.5171 26.3128 55.5017 26.3338 55.4681C26.3394 55.4597 26.3422 55.4499 26.345 55.4387C26.345 55.4331 26.3464 55.4275 26.3478 55.4219V55.4121L26.3492 55.3645C26.3492 55.2357 26.3492 55.0957 26.3492 54.9417C26.3366 53.1651 26.2624 53.1651 26.2498 51.3885C26.2442 50.6829 26.2274 50.2573 26.2078 49.8863C26.2022 49.7939 26.198 49.7043 26.1924 49.6133C26.1868 49.4495 26.1812 49.2843 26.1756 49.1121C26.1658 48.7383 26.156 48.3351 26.1434 47.8465C26.5578 47.8353 27.136 47.8255 27.8668 47.8157C29.6504 47.7947 29.6476 47.9753 31.4242 47.9543C33.2008 47.9333 33.1994 47.8451 34.976 47.8255C36.7526 47.8045 36.7526 47.7387 38.5292 47.7191C40.3058 47.6981 40.3072 47.7863 42.0838 47.7653C42.2952 47.7639 42.4814 47.7625 42.6494 47.7611C42.8608 47.7611 43.0484 47.7611 43.2192 47.7611C43.7092 47.7639 44.1012 47.7667 44.482 47.7695C44.5002 48.2007 44.517 48.6193 44.5394 49.1415C44.5464 49.3039 44.5548 49.4845 44.5632 49.6889C44.573 49.8681 44.5842 50.0711 44.5968 50.3035C44.7046 52.0759 44.8866 52.0661 44.9944 53.8385C45.0196 54.2823 45.0378 54.6155 45.0532 54.8927C45.056 54.9501 45.0588 55.0047 45.0602 55.0579C45.0602 55.0593 45.0602 55.0551 45.0602 55.0523C45.0602 55.0495 45.0602 55.0607 45.0602 55.0635C45.063 55.0733 45.063 55.0831 45.0658 55.0929C45.0742 55.1307 45.0868 55.1671 45.105 55.2007C45.1232 55.2343 45.1442 55.2651 45.1722 55.2959C45.1862 55.3099 45.2016 55.3253 45.2184 55.3379C45.2268 55.3449 45.2366 55.3505 45.245 55.3575C45.2716 55.3743 45.2982 55.3911 45.3248 55.4079C45.5614 55.5535 45.8456 55.7271 46.225 55.9609C47.7454 56.8849 47.723 56.9213 49.2448 57.8439C50.7652 58.7679 50.7344 58.8183 52.2548 59.7423C52.539 59.9145 52.7504 60.0629 52.903 60.1931L52.7784 60.1329C52.8428 60.1623 52.9002 60.1903 52.9562 60.2309C53.0136 60.2729 53.0654 60.3149 53.1102 60.3681C53.2026 60.4689 53.2614 60.5879 53.2936 60.6971C53.3552 60.9197 53.3174 61.1045 53.2558 61.2431C53.1242 61.5245 52.882 61.6239 52.7434 61.6197C52.5978 61.6169 52.532 61.5497 52.5012 61.4825C52.469 61.4139 52.4676 61.3355 52.4676 61.2529C52.4676 61.1703 52.4718 61.0947 52.4704 61.0261C52.4704 61.0107 52.469 60.9883 52.4676 60.9799L52.4704 60.9953C52.4704 60.9953 52.4746 61.0135 52.476 61.0163C52.4858 61.0303 52.469 61.0065 52.4522 61.0037C52.4452 61.0023 52.4578 61.0065 52.4746 60.9995C52.4914 60.9967 52.4802 60.9813 52.4508 61.0527L52.329 61.3607L52.2226 61.3145C52.0392 61.2347 51.811 61.1129 51.5268 60.9407H51.5212Z",fill:"dark"===s.resolvedMode?"#FAF9F5":"#141413"})]})}const O=()=>{const[C,t]=s.useState(""),a=o(),[r,i]=s.useState(null),[f,u]=s.useState({}),h=p(),{addError:g}=l(),v=s.useRef(C);v.current=C,s.useEffect(()=>((async()=>{try{const e=await(n?.getMcpServersConfigWithStatus?.());e&&(u(e),t(s=>s||Object.keys(e)[0]||""))}catch(e){g(h.formatMessage({defaultMessage:"Failed to load MCP server configurations",id:"weK5eotSU/",description:"Error message when MCP configs fail to load"}),{error:e,messageForLogging:"Failed to load MCP server configurations"})}})(),n?.onMcpStatusChanged?.((e,s,C)=>{u(t=>({...t,[e]:{...t[e],status:s,error:C??void 0}}))})),[g,h]),s.useEffect(()=>{const e=d?.getAppConfig;e?e().then(e=>{i(e?.features?.isDxtEnabled??!0)}).catch(()=>i(!1)):i(!0)},[]);const[b,M]=s.useState(new Set);s.useEffect(()=>n?.onMcpConfigChange?.(e=>{if(!e)return u({});u(s=>{const C=new Set;for(const t of Object.keys(e))Object.hasOwn(s,t)||C.add(t);return M(C),e}),v.current&&!e[v.current]&&t("")}),[t]);const w=Object.keys(f),N=s.useRef(null),y=e.jsx("ul",{className:"flex-1 overflow-y-auto min-h-0 py-0.5",ref:N,children:w.map(s=>e.jsx("li",{className:c("mx-2 my-1 rounded-lg px-3 py-2 cursor-pointer transition-all ease-in-out active:scale-95 text-sm",{"bg-bg-300 font-medium":C===s,"hover:bg-bg-200":C!==s,"animate-pulse bg-brand-100":b.has(s)}),"data-config-key":s,onClick:()=>t(s),children:e.jsxs("div",{className:"flex items-center justify-between w-full pr-2",children:[e.jsx("span",{className:"min-w-0 truncate",children:s}),"failed"===f[s].status&&e.jsx(L,{className:"text-danger-100 flex-shrink-0",size:16})]})},s))});s.useEffect(()=>{if(b.size<1)return;const e=N.current;if(!e)return;let s=Number.POSITIVE_INFINITY;for(const C of b){const t=e.querySelector(`[data-config-key="${C}"]`);t instanceof HTMLElement&&(s=Math.min(t.offsetTop,s))}if(s<Number.POSITIVE_INFINITY){const e=N.current;if(e){const C=s-e.offsetTop;e.scrollTo({top:C,behavior:"smooth"})}}},[b,N]);const k=s.useCallback(()=>{if(window.confirm(h.formatMessage({defaultMessage:"Are you sure you want to remove the MCP server \u201c{serverKey}\u201d?",id:"E4wAMW5Ily",description:"Confirmation message shown when deleting an MCP server configuration"},{serverKey:C}))){const e={...f};delete e[C],n?.setMcpServerConfigs?.(e),u(e)}},[f,C,h]),P=Object.hasOwn(f,C)?e.jsx(T,{configKey:C,config:f[C],deleteCallback:k}):e.jsx("div",{className:"flex-1 bg-bg-100"}),S=w.length>0?e.jsxs("div",{className:"flex flex-row flex-1 min-h-0 min-w-0 rounded-lg border border-border-300 overflow-hidden py-2",children:[e.jsx("div",{className:"flex flex-col w-48 border-r border-border-300 flex-shrink-0",children:y}),P]}):e.jsxs("div",{className:"flex flex-col gap-3 items-center justify-center text-center flex-1 gap-4",children:[e.jsx(D,{}),e.jsx("p",{className:"max-w-[60%] text-text-300",children:e.jsx(j,{defaultMessage:"No servers added",id:"TrS+kwadjI",description:"Message indicating there are no MCP servers currently added"})}),e.jsxs("div",{className:"inline-flex gap-3",children:[e.jsx(E,{variant:"primary"}),e.jsx(F,{})]})]});return null===a||null===r?null:r||a?e.jsx(m,{title:e.jsxs(e.Fragment,{children:[e.jsx(j,{defaultMessage:"Local MCP servers",id:"7+U8x5o7v9",description:"Title for the MCP servers settings page"}),e.jsx("span",{className:"block pt-xs text-footnote font-normal text-secondary",children:e.jsx(j,{defaultMessage:"Add and manage MCP servers that you\u2019re working on. ",id:"h2kOgf50w3",description:"Description of the MCP settings page"})})]}),children:e.jsxs("div",{className:"flex flex-col h-full pt-md",children:[!r&&e.jsx(x,{variant:"neutral",className:"my-4",children:h.formatMessage({defaultMessage:"Desktop extensions are disabled on this device. Please contact your IT administrator to enable desktop extensions.",id:"edWlt+5w83",description:"Warning message shown when desktop extensions are disabled"})}),!a&&e.jsx(x,{variant:"neutral",className:"my-4",children:h.formatMessage({defaultMessage:"Developer MCP servers are disabled on this device. Please contact your IT administrator to enable developer MCP servers.",id:"GDoDijLG+q",description:"Warning message shown when developer MCP servers are disabled"})}),w.length>0?e.jsx("div",{className:"pb-4",children:e.jsx(E,{})}):null,e.jsx("div",{className:"flex flex-1 min-h-0 min-w-0 overflow-hidden h-full",children:S})]})}):e.jsx(m,{title:e.jsx(j,{defaultMessage:"Local MCP servers",id:"7+U8x5o7v9",description:"Title for the MCP servers settings page"}),children:e.jsx(x,{variant:"neutral",className:"m-0",children:h.formatMessage({defaultMessage:"Desktop extensions and developer MCP servers are disabled on this device. Please contact your IT administrator to enable these features.",id:"IeexSlMkuP",description:"Warning message shown when both desktop extensions and developer MCP servers are disabled"})})})};function E({size:s,variant:C}){return e.jsx(r,{variant:C||"secondary",size:"sm"===s?"sm":void 0,onClick:()=>{n?.revealConfig?.()},children:e.jsx(j,{defaultMessage:"Edit Config",id:"Vvus2ifAny",description:"Button text to open and edit the MCP configuration file"})})}const F=()=>e.jsx(r,{variant:"secondary",icon:e.jsx(N,{size:16}),iconPosition:"end",render:e.jsx("a",{href:"https://modelcontextprotocol.io/quickstart",target:"_blank",rel:"noopener noreferrer"}),children:e.jsx(j,{defaultMessage:"Developer docs",id:"J1rj3Exw6V",description:"Button text to open the MCP developer documentation"})});function z(){return f(u)||h(),e.jsx("main",{className:"flex flex-col gap-8 h-full",children:e.jsx(O,{})})}const A=Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"}));export{k as B,y as C,z as D,P as a,S as f,A as p};
