@redscope-ai/redscope 1.0.0
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.
- package/README.md +224 -0
- package/dist/chunk-090920rk.js +288 -0
- package/dist/chunk-0afb2r78.js +141 -0
- package/dist/chunk-0d4ekx1g.js +73 -0
- package/dist/chunk-0g6nwbhq.js +15 -0
- package/dist/chunk-0qj905nt.js +18 -0
- package/dist/chunk-0s5btnn1.js +186 -0
- package/dist/chunk-0s8fars0.js +91 -0
- package/dist/chunk-10ev3dvh.js +312 -0
- package/dist/chunk-10k5jfc5.js +1295 -0
- package/dist/chunk-12tspwqa.js +240 -0
- package/dist/chunk-13qesvnw.js +17 -0
- package/dist/chunk-143eh1e0.js +121 -0
- package/dist/chunk-14p6wvsq.js +39 -0
- package/dist/chunk-19f3zb1m.js +342 -0
- package/dist/chunk-1a5cep8h.js +145 -0
- package/dist/chunk-1abw9kkn.js +34 -0
- package/dist/chunk-1aer7c78.js +118 -0
- package/dist/chunk-1dazz4g6.js +154 -0
- package/dist/chunk-1fcf4ty1.js +142 -0
- package/dist/chunk-1gnxhyf8.js +62 -0
- package/dist/chunk-1he3944e.js +8124 -0
- package/dist/chunk-1jpayz7y.js +952 -0
- package/dist/chunk-1qd6f6vk.js +269 -0
- package/dist/chunk-1v0kpe62.js +2547 -0
- package/dist/chunk-1w20m7gw.js +445 -0
- package/dist/chunk-1y7kp51j.js +72 -0
- package/dist/chunk-1ycb5sxt.js +247 -0
- package/dist/chunk-1zbwhcbt.js +1124 -0
- package/dist/chunk-20psem54.js +116 -0
- package/dist/chunk-23h69r5b.js +30 -0
- package/dist/chunk-23x86ptv.js +473 -0
- package/dist/chunk-24fyv3jz.js +378 -0
- package/dist/chunk-24kv69g3.js +97 -0
- package/dist/chunk-2azx8zsc.js +125 -0
- package/dist/chunk-2d1gwzz9.js +524 -0
- package/dist/chunk-2g0ytd9d.js +29058 -0
- package/dist/chunk-2hfp9kat.js +21 -0
- package/dist/chunk-2j875eq6.js +37 -0
- package/dist/chunk-2kcgxnvp.js +39 -0
- package/dist/chunk-2kz09j2s.js +23 -0
- package/dist/chunk-2mwnwp0n.js +17 -0
- package/dist/chunk-2p1cqhcn.js +921 -0
- package/dist/chunk-2p369q9z.js +61 -0
- package/dist/chunk-2rf6asgf.js +151 -0
- package/dist/chunk-2vr7mqx1.js +384 -0
- package/dist/chunk-2xcg933e.js +205 -0
- package/dist/chunk-2ypwckbz.js +40310 -0
- package/dist/chunk-30wnahyg.js +626 -0
- package/dist/chunk-326zehp8.js +204 -0
- package/dist/chunk-32s6jzgw.js +183 -0
- package/dist/chunk-35yzt1a7.js +202 -0
- package/dist/chunk-38frkej6.js +62 -0
- package/dist/chunk-3abaq08g.js +34 -0
- package/dist/chunk-3h59ttr5.js +32 -0
- package/dist/chunk-3nk9q8dr.js +154 -0
- package/dist/chunk-3prrxevm.js +224 -0
- package/dist/chunk-3tv8p9xw.js +127 -0
- package/dist/chunk-3txyekes.js +19 -0
- package/dist/chunk-3vfxjn7g.js +19 -0
- package/dist/chunk-3w9sye8h.js +81 -0
- package/dist/chunk-3y69j7y8.js +24 -0
- package/dist/chunk-3zwjpkjh.js +1603 -0
- package/dist/chunk-40t1d75v.js +3442 -0
- package/dist/chunk-470kmby4.js +318 -0
- package/dist/chunk-47jc141z.js +335 -0
- package/dist/chunk-48rz50ct.js +868 -0
- package/dist/chunk-49wv03ts.js +232 -0
- package/dist/chunk-4a189mn2.js +103 -0
- package/dist/chunk-4c4fmh7a.js +15 -0
- package/dist/chunk-4ct8dsj5.js +49 -0
- package/dist/chunk-4kqt1pm1.js +100 -0
- package/dist/chunk-4ng0xy0e.js +802 -0
- package/dist/chunk-4spgkgr3.js +43 -0
- package/dist/chunk-4tjdwtyy.js +19 -0
- package/dist/chunk-4tr60273.js +370 -0
- package/dist/chunk-4vnaeng5.js +29 -0
- package/dist/chunk-4wbqpeaw.js +871 -0
- package/dist/chunk-4wgkv3fv.js +1140 -0
- package/dist/chunk-4yjskjb6.js +40 -0
- package/dist/chunk-50m3a23z.js +35 -0
- package/dist/chunk-511f79az.js +182 -0
- package/dist/chunk-51sgztvv.js +161 -0
- package/dist/chunk-563fcpv1.js +290 -0
- package/dist/chunk-564cnq6v.js +735 -0
- package/dist/chunk-569r8cxc.js +31 -0
- package/dist/chunk-570x55d4.js +12 -0
- package/dist/chunk-571556cm.js +80 -0
- package/dist/chunk-59t4c56e.js +63 -0
- package/dist/chunk-5axjhkma.js +36 -0
- package/dist/chunk-5b188q5e.js +157 -0
- package/dist/chunk-5dmn1865.js +439 -0
- package/dist/chunk-5ks4829r.js +267 -0
- package/dist/chunk-5mmhfbxb.js +1078 -0
- package/dist/chunk-5rdt14hy.js +742 -0
- package/dist/chunk-5ssryexj.js +121 -0
- package/dist/chunk-5v95pnq4.js +15 -0
- package/dist/chunk-5xvjt2t9.js +68 -0
- package/dist/chunk-5zyq6t1q.js +118 -0
- package/dist/chunk-60fkafk2.js +15 -0
- package/dist/chunk-62fjkf5q.js +46 -0
- package/dist/chunk-64gazrrb.js +8067 -0
- package/dist/chunk-65tq2yjx.js +126 -0
- package/dist/chunk-65zbgg1n.js +14 -0
- package/dist/chunk-66v8mty3.js +264 -0
- package/dist/chunk-6acx5heq.js +292 -0
- package/dist/chunk-6hr7742d.js +61 -0
- package/dist/chunk-6hygvrhn.js +143 -0
- package/dist/chunk-6kjh280m.js +128 -0
- package/dist/chunk-6s0q1s5r.js +66 -0
- package/dist/chunk-6x35ffpx.js +690 -0
- package/dist/chunk-71jfy1hh.js +570 -0
- package/dist/chunk-71sdcaq6.js +15 -0
- package/dist/chunk-754qdxs5.js +92 -0
- package/dist/chunk-79v5bkj4.js +1176 -0
- package/dist/chunk-7br0w7j5.js +151 -0
- package/dist/chunk-7cjgrzz1.js +298 -0
- package/dist/chunk-7d41ks0y.js +133 -0
- package/dist/chunk-7f40pmtr.js +71 -0
- package/dist/chunk-7g15x8hm.js +131 -0
- package/dist/chunk-7gtnzdet.js +120 -0
- package/dist/chunk-7h0z4aqx.js +702 -0
- package/dist/chunk-7h7e5a7d.js +25 -0
- package/dist/chunk-7m2cznwr.js +40 -0
- package/dist/chunk-7nvday0n.js +252 -0
- package/dist/chunk-7qey87th.js +145 -0
- package/dist/chunk-7qx3xhv3.js +9076 -0
- package/dist/chunk-7tfdhkpy.js +61 -0
- package/dist/chunk-80m511j6.js +121 -0
- package/dist/chunk-80ysxfe9.js +784 -0
- package/dist/chunk-8375zk8t.js +17200 -0
- package/dist/chunk-85bpkyy9.js +412 -0
- package/dist/chunk-85tcn547.js +876 -0
- package/dist/chunk-85vqgbc8.js +13 -0
- package/dist/chunk-86626jb4.js +49 -0
- package/dist/chunk-87ms17f6.js +444 -0
- package/dist/chunk-87mz239c.js +118 -0
- package/dist/chunk-89vdzt4e.js +254 -0
- package/dist/chunk-89z3e99z.js +159 -0
- package/dist/chunk-8cwrz1dd.js +1806 -0
- package/dist/chunk-8gv2pjby.js +21 -0
- package/dist/chunk-8hdevr3s.js +140 -0
- package/dist/chunk-8hdsk6qc.js +710 -0
- package/dist/chunk-8kct9arg.js +724 -0
- package/dist/chunk-8kf8h7xf.js +23 -0
- package/dist/chunk-8qed8ymj.js +605 -0
- package/dist/chunk-8sdgr592.js +101 -0
- package/dist/chunk-8we9w8pw.js +111 -0
- package/dist/chunk-8xnm5637.js +72 -0
- package/dist/chunk-8y3q0eqy.js +67 -0
- package/dist/chunk-8yvsnrkr.js +3449 -0
- package/dist/chunk-8zz4z1q3.js +42 -0
- package/dist/chunk-90eyff3k.js +119 -0
- package/dist/chunk-92bjkrf2.js +121 -0
- package/dist/chunk-92zrc7c6.js +327 -0
- package/dist/chunk-935nrvdb.js +13 -0
- package/dist/chunk-94pfyv6a.js +48 -0
- package/dist/chunk-9568p8se.js +115 -0
- package/dist/chunk-96km1ywr.js +37 -0
- package/dist/chunk-980bg4w4.js +163 -0
- package/dist/chunk-9a9g5hbj.js +205 -0
- package/dist/chunk-9cm4725d.js +4395 -0
- package/dist/chunk-9ds3vzq8.js +847 -0
- package/dist/chunk-9ffc9n60.js +618 -0
- package/dist/chunk-9fstrwv2.js +184 -0
- package/dist/chunk-9gt0g0qe.js +153 -0
- package/dist/chunk-9h9k5vz3.js +2761 -0
- package/dist/chunk-9he8bmhy.js +17 -0
- package/dist/chunk-9hn8e6h1.js +12 -0
- package/dist/chunk-9j0n3g8e.js +179 -0
- package/dist/chunk-9j6pa3ft.js +251 -0
- package/dist/chunk-9jpg9dn7.js +122 -0
- package/dist/chunk-9mycnwj5.js +46 -0
- package/dist/chunk-9npy2c17.js +517 -0
- package/dist/chunk-9p6sec8n.js +34 -0
- package/dist/chunk-9pnym83h.js +4584 -0
- package/dist/chunk-9skwrnd2.js +25 -0
- package/dist/chunk-9tsfaqr8.js +459 -0
- package/dist/chunk-9tsw3cqv.js +5924 -0
- package/dist/chunk-9w6ckyk4.js +49 -0
- package/dist/chunk-a15bwzv6.js +147 -0
- package/dist/chunk-a9t6cp69.js +28 -0
- package/dist/chunk-ad2yk19p.js +102 -0
- package/dist/chunk-ad4cw4nw.js +336 -0
- package/dist/chunk-ad69fbsk.js +347 -0
- package/dist/chunk-ae76ded0.js +30 -0
- package/dist/chunk-aeysytks.js +216 -0
- package/dist/chunk-ag81m9bq.js +61 -0
- package/dist/chunk-ahx7gp6r.js +4448 -0
- package/dist/chunk-aj4tk4tk.js +23 -0
- package/dist/chunk-an82t9jc.js +104 -0
- package/dist/chunk-apg95qd7.js +1393 -0
- package/dist/chunk-aq5n2adz.js +27 -0
- package/dist/chunk-aw4s3a99.js +208 -0
- package/dist/chunk-awgdfggg.js +14 -0
- package/dist/chunk-ayymxgn1.js +164 -0
- package/dist/chunk-azbab59e.js +637 -0
- package/dist/chunk-azdxq2a3.js +293 -0
- package/dist/chunk-b0tjx3k1.js +523 -0
- package/dist/chunk-b5pp4g2g.js +371 -0
- package/dist/chunk-b5zm8dt6.js +26 -0
- package/dist/chunk-bcnye5a0.js +109 -0
- package/dist/chunk-beqz3k49.js +190 -0
- package/dist/chunk-bf906wpw.js +147 -0
- package/dist/chunk-bgan4cpf.js +13 -0
- package/dist/chunk-bhzp13h7.js +1178 -0
- package/dist/chunk-bk403kpw.js +142 -0
- package/dist/chunk-bmq4c135.js +489 -0
- package/dist/chunk-bprbeda7.js +35 -0
- package/dist/chunk-bst7czdd.js +888 -0
- package/dist/chunk-bths4xgn.js +111 -0
- package/dist/chunk-btjn3qby.js +13 -0
- package/dist/chunk-bwb1vxnt.js +120 -0
- package/dist/chunk-bxa6tw4m.js +643 -0
- package/dist/chunk-bxfjr8qb.js +27 -0
- package/dist/chunk-bxpzhrej.js +73 -0
- package/dist/chunk-bzyzrq0k.js +51 -0
- package/dist/chunk-c0k7b0jw.js +4265 -0
- package/dist/chunk-c17f0h2s.js +16 -0
- package/dist/chunk-c1yc761e.js +6748 -0
- package/dist/chunk-c5g9shkw.js +298 -0
- package/dist/chunk-c696122m.js +69 -0
- package/dist/chunk-c92b3yxx.js +109 -0
- package/dist/chunk-c9aqz56y.js +143 -0
- package/dist/chunk-cba7c5w3.js +345 -0
- package/dist/chunk-cbcxbbe6.js +6543 -0
- package/dist/chunk-cdfjb87h.js +11 -0
- package/dist/chunk-ce8zjt1y.js +136 -0
- package/dist/chunk-cep7e37k.js +22740 -0
- package/dist/chunk-chs5qm8d.js +258 -0
- package/dist/chunk-ckydq33g.js +144 -0
- package/dist/chunk-cnge6wpj.js +514 -0
- package/dist/chunk-cpnsvqf1.js +13 -0
- package/dist/chunk-cqqebkv4.js +32 -0
- package/dist/chunk-cvqpp7dk.js +627 -0
- package/dist/chunk-cwc33j40.js +65 -0
- package/dist/chunk-cypvrq2a.js +155 -0
- package/dist/chunk-d1ha0swn.js +475 -0
- package/dist/chunk-d2an0138.js +35 -0
- package/dist/chunk-d2tt72ck.js +343 -0
- package/dist/chunk-d6wvcqrw.js +9507 -0
- package/dist/chunk-d7ys2kka.js +991 -0
- package/dist/chunk-dbts5q5p.js +122 -0
- package/dist/chunk-dct29ggs.js +295 -0
- package/dist/chunk-de0qnnf7.js +1059 -0
- package/dist/chunk-dep72ce4.js +513 -0
- package/dist/chunk-dgpvgy8x.js +47 -0
- package/dist/chunk-dhhd7dtc.js +20 -0
- package/dist/chunk-dhzpmxv6.js +594 -0
- package/dist/chunk-djes4da7.js +413 -0
- package/dist/chunk-dnhv3vx7.js +166 -0
- package/dist/chunk-dqtvafan.js +2365 -0
- package/dist/chunk-dr4a3tcp.js +60 -0
- package/dist/chunk-dz2xk9kb.js +100 -0
- package/dist/chunk-dz7nc6rf.js +15 -0
- package/dist/chunk-e3abfxpy.js +1486 -0
- package/dist/chunk-e3cq9z89.js +85 -0
- package/dist/chunk-e3j7m7k2.js +642 -0
- package/dist/chunk-e4dsy4g1.js +9951 -0
- package/dist/chunk-e5592pnn.js +197 -0
- package/dist/chunk-e55hdegh.js +129 -0
- package/dist/chunk-e5r5r04e.js +1030 -0
- package/dist/chunk-e60zztbt.js +442 -0
- package/dist/chunk-e7qq6vn0.js +372 -0
- package/dist/chunk-e9aat7xw.js +80 -0
- package/dist/chunk-e9d5v3zs.js +143 -0
- package/dist/chunk-eax32zk4.js +87 -0
- package/dist/chunk-ebfwmbx1.js +117 -0
- package/dist/chunk-ec71pb8t.js +971 -0
- package/dist/chunk-eemjb825.js +17252 -0
- package/dist/chunk-ees8xdhd.js +256 -0
- package/dist/chunk-eewg66y1.js +112 -0
- package/dist/chunk-eg22v12d.js +266 -0
- package/dist/chunk-enzzk67f.js +313 -0
- package/dist/chunk-eskhp70f.js +117 -0
- package/dist/chunk-ewx6z4g8.js +55 -0
- package/dist/chunk-eyvx461k.js +76 -0
- package/dist/chunk-eztq2b5f.js +94 -0
- package/dist/chunk-f0ffwzdd.js +321 -0
- package/dist/chunk-f80n68mf.js +119 -0
- package/dist/chunk-fae2hjxp.js +99 -0
- package/dist/chunk-fbtfp370.js +60 -0
- package/dist/chunk-fc6ndtgf.js +94 -0
- package/dist/chunk-fdwabr8p.js +13870 -0
- package/dist/chunk-fejeqe61.js +785 -0
- package/dist/chunk-fh0d6mvk.js +168 -0
- package/dist/chunk-fh19zcaf.js +304 -0
- package/dist/chunk-fh8bd39r.js +186 -0
- package/dist/chunk-fj2ebbpn.js +33 -0
- package/dist/chunk-fjn632v7.js +194 -0
- package/dist/chunk-fncpkzs5.js +1389 -0
- package/dist/chunk-fpd1gpt8.js +332 -0
- package/dist/chunk-fq9snrnh.js +295 -0
- package/dist/chunk-fqcfzg3j.js +207 -0
- package/dist/chunk-ftt3vqj2.js +1919 -0
- package/dist/chunk-g06pm4n9.js +395 -0
- package/dist/chunk-g4m5pf4g.js +8 -0
- package/dist/chunk-g72h52y6.js +36 -0
- package/dist/chunk-g79ej71s.js +1627 -0
- package/dist/chunk-g7fwk59d.js +19 -0
- package/dist/chunk-g9jnkrtm.js +663 -0
- package/dist/chunk-g9vg5d7t.js +38 -0
- package/dist/chunk-ga1jkyqy.js +1636 -0
- package/dist/chunk-gaaap2nk.js +676 -0
- package/dist/chunk-gc6erq5q.js +483 -0
- package/dist/chunk-gjrcmf0a.js +752 -0
- package/dist/chunk-gmdy2w3z.js +238999 -0
- package/dist/chunk-gsz4yrrk.js +81 -0
- package/dist/chunk-gy47rjy8.js +3830 -0
- package/dist/chunk-h12a4f4x.js +11 -0
- package/dist/chunk-h1yratmg.js +725 -0
- package/dist/chunk-h9y0jnsy.js +155 -0
- package/dist/chunk-hbhs3mwy.js +133 -0
- package/dist/chunk-hbs8cmb4.js +8 -0
- package/dist/chunk-hdk0t1ht.js +940 -0
- package/dist/chunk-hef8dx4s.js +178 -0
- package/dist/chunk-hgsca8mt.js +381 -0
- package/dist/chunk-hhsxm2yr.js +67 -0
- package/dist/chunk-hj5tzzpd.js +39 -0
- package/dist/chunk-hjxqmtg5.js +94 -0
- package/dist/chunk-hn4w9pkj.js +68 -0
- package/dist/chunk-hnprkjgp.js +25 -0
- package/dist/chunk-hq3n5ex7.js +183 -0
- package/dist/chunk-hqjspfma.js +158 -0
- package/dist/chunk-hqxp6b72.js +1198 -0
- package/dist/chunk-hs6nrmq6.js +94 -0
- package/dist/chunk-hwba5xdc.js +267 -0
- package/dist/chunk-hy566ev3.js +430 -0
- package/dist/chunk-hzmzwte2.js +153 -0
- package/dist/chunk-hzxzvzw8.js +274 -0
- package/dist/chunk-j139fzgs.js +114 -0
- package/dist/chunk-j1mep9ck.js +62 -0
- package/dist/chunk-j3xveeg4.js +273 -0
- package/dist/chunk-j5y1s11j.js +100 -0
- package/dist/chunk-j9475b46.js +26 -0
- package/dist/chunk-j9rgqs8m.js +1192 -0
- package/dist/chunk-jccjaddz.js +74 -0
- package/dist/chunk-jdkwfy9e.js +35 -0
- package/dist/chunk-jdqp0r4h.js +6157 -0
- package/dist/chunk-jdzk4zwn.js +587 -0
- package/dist/chunk-jfafmkte.js +49 -0
- package/dist/chunk-jg3r989b.js +16 -0
- package/dist/chunk-jhtccjc9.js +54 -0
- package/dist/chunk-jj2ff1pr.js +688 -0
- package/dist/chunk-jmv7k0jn.js +37 -0
- package/dist/chunk-jmxzmwpw.js +65 -0
- package/dist/chunk-jnjxdqyr.js +353 -0
- package/dist/chunk-jsbbez9j.js +138 -0
- package/dist/chunk-jvpt2dc0.js +424 -0
- package/dist/chunk-jwd7cka0.js +34 -0
- package/dist/chunk-jy5er3st.js +15 -0
- package/dist/chunk-jyby79z5.js +121 -0
- package/dist/chunk-jzyr6j5n.js +332 -0
- package/dist/chunk-k49xc781.js +63 -0
- package/dist/chunk-k7dt2g4a.js +41 -0
- package/dist/chunk-k7hexw3v.js +969 -0
- package/dist/chunk-k7wwkraa.js +117 -0
- package/dist/chunk-kb3758f7.js +51 -0
- package/dist/chunk-kc67kt75.js +3119 -0
- package/dist/chunk-kdhmfxmh.js +3149 -0
- package/dist/chunk-kejdd6zc.js +51 -0
- package/dist/chunk-kekrjeem.js +402 -0
- package/dist/chunk-kez5r0zz.js +280 -0
- package/dist/chunk-kfsvcs5t.js +75 -0
- package/dist/chunk-khtvffc4.js +285 -0
- package/dist/chunk-kkz4w1tv.js +64 -0
- package/dist/chunk-kmywng0j.js +272 -0
- package/dist/chunk-kq6vcpdr.js +224 -0
- package/dist/chunk-kqzdszcc.js +37 -0
- package/dist/chunk-ktxpp02w.js +435 -0
- package/dist/chunk-kwcvhbtz.js +26 -0
- package/dist/chunk-kx0cm9qr.js +128 -0
- package/dist/chunk-kxcmqz10.js +120 -0
- package/dist/chunk-kxwava1g.js +14 -0
- package/dist/chunk-kywtr3jg.js +825 -0
- package/dist/chunk-kzwg923p.js +8 -0
- package/dist/chunk-m1eq3sgv.js +255 -0
- package/dist/chunk-m21h5zb4.js +119 -0
- package/dist/chunk-m2c3bjv1.js +111 -0
- package/dist/chunk-m41e19ms.js +42 -0
- package/dist/chunk-m7ka36ex.js +97 -0
- package/dist/chunk-m81w8tbm.js +259 -0
- package/dist/chunk-m95ggkax.js +281 -0
- package/dist/chunk-manx26xa.js +145 -0
- package/dist/chunk-mdxh3pk2.js +298 -0
- package/dist/chunk-mhbfkcja.js +311 -0
- package/dist/chunk-mjnr5erm.js +173 -0
- package/dist/chunk-mngvnmwp.js +135 -0
- package/dist/chunk-mvfqanv5.js +63 -0
- package/dist/chunk-mw1nesq1.js +140 -0
- package/dist/chunk-mx168925.js +661 -0
- package/dist/chunk-mxwvj18g.js +795 -0
- package/dist/chunk-my7r5mba.js +257 -0
- package/dist/chunk-myaa1kkf.js +17 -0
- package/dist/chunk-myypc3tn.js +46 -0
- package/dist/chunk-mzcnmnpq.js +3379 -0
- package/dist/chunk-mznav6d1.js +194 -0
- package/dist/chunk-n0qxskpr.js +24 -0
- package/dist/chunk-n6a6hgtp.js +394 -0
- package/dist/chunk-n6d5fgx0.js +254 -0
- package/dist/chunk-n6ym3n03.js +120 -0
- package/dist/chunk-n9g24mwe.js +104 -0
- package/dist/chunk-naamqdf9.js +185 -0
- package/dist/chunk-nb2jk7zj.js +15 -0
- package/dist/chunk-nbkbq9en.js +67 -0
- package/dist/chunk-ndttd6es.js +38 -0
- package/dist/chunk-nfygaaxg.js +133 -0
- package/dist/chunk-ngdzpszd.js +454 -0
- package/dist/chunk-nmfwksa4.js +1297 -0
- package/dist/chunk-nt837qt9.js +21 -0
- package/dist/chunk-nwc3v0vp.js +691 -0
- package/dist/chunk-nz8ha95p.js +3610 -0
- package/dist/chunk-nzxfj0gq.js +2007 -0
- package/dist/chunk-p0r8887g.js +6932 -0
- package/dist/chunk-p1seyqdm.js +120 -0
- package/dist/chunk-p425zbgw.js +726 -0
- package/dist/chunk-p7hamd2c.js +146 -0
- package/dist/chunk-pdvg91cg.js +32 -0
- package/dist/chunk-pecy49yr.js +14649 -0
- package/dist/chunk-pfxrg89f.js +547 -0
- package/dist/chunk-pfyw3155.js +2750 -0
- package/dist/chunk-pr8m11pm.js +1192 -0
- package/dist/chunk-ptxteaeh.js +1591 -0
- package/dist/chunk-pv164mac.js +394 -0
- package/dist/chunk-pxxhtxf5.js +10154 -0
- package/dist/chunk-q0e485mg.js +61 -0
- package/dist/chunk-q1vrhh0q.js +458 -0
- package/dist/chunk-q2h79ncs.js +370 -0
- package/dist/chunk-q3b4n194.js +56 -0
- package/dist/chunk-q44zc68f.js +4301 -0
- package/dist/chunk-q8gknbdx.js +352 -0
- package/dist/chunk-q8xk3kdj.js +11 -0
- package/dist/chunk-qak46xtp.js +119 -0
- package/dist/chunk-qfq7absv.js +95 -0
- package/dist/chunk-qfsn720k.js +151 -0
- package/dist/chunk-qg4811f6.js +228 -0
- package/dist/chunk-qgzn3qps.js +90 -0
- package/dist/chunk-qhaggqkt.js +113 -0
- package/dist/chunk-qjjp27z8.js +195 -0
- package/dist/chunk-qxp0nye6.js +34 -0
- package/dist/chunk-qy3nagaq.js +4957 -0
- package/dist/chunk-qz2meav1.js +1452 -0
- package/dist/chunk-r50hne7m.js +63 -0
- package/dist/chunk-r6m0vgnv.js +80 -0
- package/dist/chunk-r7yw38vf.js +22864 -0
- package/dist/chunk-r8xc618w.js +42 -0
- package/dist/chunk-r961r5kj.js +87 -0
- package/dist/chunk-r9b5xrh0.js +66 -0
- package/dist/chunk-rcn2pd6q.js +477 -0
- package/dist/chunk-rdeh8p3y.js +148 -0
- package/dist/chunk-rg9x1742.js +542 -0
- package/dist/chunk-rgyzsbs3.js +39 -0
- package/dist/chunk-rk2fsxtz.js +16 -0
- package/dist/chunk-rkchkwv9.js +40 -0
- package/dist/chunk-rp8whpb3.js +478 -0
- package/dist/chunk-rpkxdtgr.js +68 -0
- package/dist/chunk-rpmntgyh.js +394 -0
- package/dist/chunk-rpshz4dy.js +614 -0
- package/dist/chunk-rqd60ay5.js +133 -0
- package/dist/chunk-rrsjf2ea.js +229 -0
- package/dist/chunk-rtjk8c8e.js +173 -0
- package/dist/chunk-rw0y2wdf.js +1017 -0
- package/dist/chunk-rx5w7ess.js +663 -0
- package/dist/chunk-rx8t9d35.js +1947 -0
- package/dist/chunk-rxcazxgf.js +195 -0
- package/dist/chunk-rxg6q3bp.js +1413 -0
- package/dist/chunk-rxrb7xnd.js +71 -0
- package/dist/chunk-rxrzxff3.js +118 -0
- package/dist/chunk-ryqjc943.js +71 -0
- package/dist/chunk-rzk9k2rf.js +81 -0
- package/dist/chunk-s2qv0nht.js +119 -0
- package/dist/chunk-s3hafnk3.js +2285 -0
- package/dist/chunk-s4a496tt.js +226 -0
- package/dist/chunk-s4d1h3ka.js +35 -0
- package/dist/chunk-sm3k3ze4.js +16525 -0
- package/dist/chunk-sn0bja82.js +385 -0
- package/dist/chunk-sngjggw1.js +4227 -0
- package/dist/chunk-sq047n34.js +364 -0
- package/dist/chunk-sttwe2tw.js +8584 -0
- package/dist/chunk-sw8qx1r0.js +86 -0
- package/dist/chunk-swstah6a.js +240 -0
- package/dist/chunk-syrkr0mf.js +63 -0
- package/dist/chunk-sz206bd9.js +26 -0
- package/dist/chunk-t09669cj.js +333 -0
- package/dist/chunk-t5f8e30k.js +602 -0
- package/dist/chunk-t5m78mc8.js +432 -0
- package/dist/chunk-t5x1dqwn.js +143 -0
- package/dist/chunk-t877ea0w.js +168 -0
- package/dist/chunk-t91hb71c.js +17 -0
- package/dist/chunk-tb636bcf.js +942 -0
- package/dist/chunk-tb8sykbr.js +426 -0
- package/dist/chunk-tbdkekz3.js +125 -0
- package/dist/chunk-td2gsz7s.js +225 -0
- package/dist/chunk-tenvxbyh.js +20 -0
- package/dist/chunk-texg4qqt.js +317 -0
- package/dist/chunk-teymzz80.js +266 -0
- package/dist/chunk-tj26qpf7.js +153 -0
- package/dist/chunk-tk85ec4p.js +395 -0
- package/dist/chunk-tq205h01.js +164 -0
- package/dist/chunk-tqzddjzg.js +61 -0
- package/dist/chunk-trqrj23e.js +134 -0
- package/dist/chunk-tw1hfsxv.js +2477 -0
- package/dist/chunk-txxdfq83.js +122 -0
- package/dist/chunk-v0yhe582.js +31 -0
- package/dist/chunk-v14184xm.js +15 -0
- package/dist/chunk-v1h9z4hw.js +138 -0
- package/dist/chunk-v3ey5j7f.js +329 -0
- package/dist/chunk-v3nh1sfn.js +208 -0
- package/dist/chunk-v3x8tcc0.js +45 -0
- package/dist/chunk-v4nqnvqq.js +3984 -0
- package/dist/chunk-v4ypszbb.js +15 -0
- package/dist/chunk-v7wbqcx9.js +63 -0
- package/dist/chunk-v8r5fev3.js +341 -0
- package/dist/chunk-v9zg5kzx.js +2810 -0
- package/dist/chunk-va1wh5ss.js +24 -0
- package/dist/chunk-vbfswhht.js +42 -0
- package/dist/chunk-ve7x2tfq.js +124 -0
- package/dist/chunk-vfz8k89y.js +485 -0
- package/dist/chunk-vgm5k14x.js +35678 -0
- package/dist/chunk-vh9pej3c.js +247 -0
- package/dist/chunk-vjxqyt6f.js +3820 -0
- package/dist/chunk-vpb1xstn.js +178 -0
- package/dist/chunk-vqt79tj8.js +110 -0
- package/dist/chunk-vr0n9pv9.js +152 -0
- package/dist/chunk-vrejmja5.js +90 -0
- package/dist/chunk-vrxasmdw.js +449 -0
- package/dist/chunk-vrxb946v.js +125 -0
- package/dist/chunk-vv4kj0q8.js +98 -0
- package/dist/chunk-vvpfng7w.js +8 -0
- package/dist/chunk-vw6ybyew.js +2007 -0
- package/dist/chunk-vwenx8ke.js +17 -0
- package/dist/chunk-vwfa0s5a.js +155 -0
- package/dist/chunk-vx71j8xe.js +63 -0
- package/dist/chunk-vxbjzggp.js +43 -0
- package/dist/chunk-vxjxtz8w.js +440 -0
- package/dist/chunk-vy0c1bwp.js +9 -0
- package/dist/chunk-w3zczyse.js +14 -0
- package/dist/chunk-w4p5t920.js +655 -0
- package/dist/chunk-w68wc625.js +287 -0
- package/dist/chunk-w9ddp3yf.js +96 -0
- package/dist/chunk-wcggm5ja.js +125 -0
- package/dist/chunk-wgnyph3q.js +1306 -0
- package/dist/chunk-wjm5pc1e.js +134 -0
- package/dist/chunk-wnve0drm.js +131 -0
- package/dist/chunk-wp27ev2k.js +135 -0
- package/dist/chunk-wyvy8a4x.js +131 -0
- package/dist/chunk-x671y4dk.js +129 -0
- package/dist/chunk-xbj5keyy.js +22 -0
- package/dist/chunk-xf4fzms8.js +39 -0
- package/dist/chunk-xf59k3zg.js +65 -0
- package/dist/chunk-xgzc4w49.js +204 -0
- package/dist/chunk-xhj7g13b.js +2149 -0
- package/dist/chunk-xjp0cd00.js +56 -0
- package/dist/chunk-xkhnmhqs.js +74 -0
- package/dist/chunk-xkrkqx61.js +55 -0
- package/dist/chunk-xmpgmeb8.js +114 -0
- package/dist/chunk-xrw80zgd.js +4249 -0
- package/dist/chunk-xrzc96g0.js +202 -0
- package/dist/chunk-xt76sm44.js +318 -0
- package/dist/chunk-xwet3awb.js +20 -0
- package/dist/chunk-xyg1sk2w.js +78 -0
- package/dist/chunk-y0jpkqb0.js +180 -0
- package/dist/chunk-y1q7rt9n.js +102 -0
- package/dist/chunk-y67ntyek.js +258 -0
- package/dist/chunk-ybk37qp9.js +37 -0
- package/dist/chunk-yc1stfve.js +5386 -0
- package/dist/chunk-ychjpjef.js +62 -0
- package/dist/chunk-yez8fa9g.js +276 -0
- package/dist/chunk-ygm7xszr.js +90 -0
- package/dist/chunk-ym11azkj.js +37 -0
- package/dist/chunk-ympz2h15.js +578 -0
- package/dist/chunk-yqx3az3n.js +129 -0
- package/dist/chunk-yt3nfhcc.js +152 -0
- package/dist/chunk-yy8q0n8s.js +120 -0
- package/dist/chunk-yzb92zxv.js +8 -0
- package/dist/chunk-yzet6xyr.js +119 -0
- package/dist/chunk-yzm97qp1.js +226 -0
- package/dist/chunk-z0jgeax8.js +35 -0
- package/dist/chunk-z1r3z6w6.js +29 -0
- package/dist/chunk-z2dp53wn.js +17 -0
- package/dist/chunk-z79355gz.js +308 -0
- package/dist/chunk-z7e94hxz.js +251 -0
- package/dist/chunk-z8cqdcec.js +173 -0
- package/dist/chunk-z99tbg45.js +148 -0
- package/dist/chunk-z9nsjcht.js +37 -0
- package/dist/chunk-za3k6h2h.js +470 -0
- package/dist/chunk-zacynq5p.js +265 -0
- package/dist/chunk-zb0x40az.js +1785 -0
- package/dist/chunk-zbxtzycc.js +274 -0
- package/dist/chunk-zga50181.js +342 -0
- package/dist/chunk-zhb2pns1.js +44 -0
- package/dist/chunk-zkch6trx.js +231 -0
- package/dist/chunk-znf3z4qt.js +954 -0
- package/dist/chunk-zp8zwdgq.js +72 -0
- package/dist/chunk-ztjd8pyf.js +120 -0
- package/dist/chunk-ztmb7geg.js +173 -0
- package/dist/chunk-zvr4snzv.js +887 -0
- package/dist/chunk-zw62m6n3.js +34858 -0
- package/dist/chunk-zwwdebd0.js +65 -0
- package/dist/chunk-zxc6x9w8.js +340 -0
- package/dist/chunk-zy2e7sz0.js +8 -0
- package/dist/chunk-zzf074w3.js +196 -0
- package/dist/chunk-zzz0nwb5.js +310 -0
- package/dist/cli-bun.js +2 -0
- package/dist/cli-node.js +2 -0
- package/dist/cli.js +218 -0
- package/dist/vendor/audio-capture/arm64-darwin/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/arm64-linux/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/arm64-win32/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-darwin/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-linux/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-win32/audio-capture.node +0 -0
- package/dist/vendor/ripgrep/x64-win32/rg.exe +0 -0
- package/package.json +243 -0
- package/scripts/chrome-mcp-bridge-resolver.mjs +43 -0
- package/scripts/chrome-mcp-env.mjs +19 -0
- package/scripts/postinstall.cjs +339 -0
- package/scripts/run-parallel.mjs +10 -0
- package/scripts/setup-chrome-mcp.mjs +69 -0
|
@@ -0,0 +1,1192 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
MCPRemoteServerMenu,
|
|
4
|
+
MCPStdioServerMenu,
|
|
5
|
+
MCPToolDetailView,
|
|
6
|
+
MCPToolListView,
|
|
7
|
+
PluginSettings,
|
|
8
|
+
init_MCPRemoteServerMenu,
|
|
9
|
+
init_MCPStdioServerMenu,
|
|
10
|
+
init_MCPToolDetailView,
|
|
11
|
+
init_MCPToolListView,
|
|
12
|
+
init_PluginSettings
|
|
13
|
+
} from "./chunk-sttwe2tw.js";
|
|
14
|
+
import"./chunk-9ds3vzq8.js";
|
|
15
|
+
import {
|
|
16
|
+
init_MCPConnectionManager,
|
|
17
|
+
useMcpReconnect,
|
|
18
|
+
useMcpToggleEnabled
|
|
19
|
+
} from "./chunk-mxwvj18g.js";
|
|
20
|
+
import"./chunk-vwfa0s5a.js";
|
|
21
|
+
import"./chunk-fpd1gpt8.js";
|
|
22
|
+
import"./chunk-tj26qpf7.js";
|
|
23
|
+
import"./chunk-bxa6tw4m.js";
|
|
24
|
+
import"./chunk-aw4s3a99.js";
|
|
25
|
+
import {
|
|
26
|
+
McpParsingWarnings,
|
|
27
|
+
init_McpParsingWarnings
|
|
28
|
+
} from "./chunk-hq3n5ex7.js";
|
|
29
|
+
import"./chunk-awgdfggg.js";
|
|
30
|
+
import"./chunk-z79355gz.js";
|
|
31
|
+
import {
|
|
32
|
+
AuthenticationCancelledError,
|
|
33
|
+
ClaudeAuthProvider,
|
|
34
|
+
ConfigurableShortcutHint,
|
|
35
|
+
Select,
|
|
36
|
+
Spinner,
|
|
37
|
+
describeMcpConfigFilePath,
|
|
38
|
+
extractAgentMcpServers,
|
|
39
|
+
filterToolsByServer,
|
|
40
|
+
init_AppState,
|
|
41
|
+
init_ConfigurableShortcutHint,
|
|
42
|
+
init_CustomSelect,
|
|
43
|
+
init_Spinner,
|
|
44
|
+
init_auth,
|
|
45
|
+
init_utils,
|
|
46
|
+
performMCPOAuthFlow,
|
|
47
|
+
useAppState,
|
|
48
|
+
useAppStateStore
|
|
49
|
+
} from "./chunk-gmdy2w3z.js";
|
|
50
|
+
import"./chunk-q0e485mg.js";
|
|
51
|
+
import"./chunk-2kcgxnvp.js";
|
|
52
|
+
import"./chunk-14p6wvsq.js";
|
|
53
|
+
import"./chunk-6s0q1s5r.js";
|
|
54
|
+
import"./chunk-3w9sye8h.js";
|
|
55
|
+
import {
|
|
56
|
+
getSessionIngressAuthToken,
|
|
57
|
+
init_sessionIngressAuth
|
|
58
|
+
} from "./chunk-nzxfj0gq.js";
|
|
59
|
+
import"./chunk-vr0n9pv9.js";
|
|
60
|
+
import"./chunk-9a9g5hbj.js";
|
|
61
|
+
import"./chunk-ptxteaeh.js";
|
|
62
|
+
import"./chunk-w4p5t920.js";
|
|
63
|
+
import"./chunk-rgyzsbs3.js";
|
|
64
|
+
import"./chunk-q3b4n194.js";
|
|
65
|
+
import"./chunk-kywtr3jg.js";
|
|
66
|
+
import"./chunk-eewg66y1.js";
|
|
67
|
+
import"./chunk-71sdcaq6.js";
|
|
68
|
+
import"./chunk-9hn8e6h1.js";
|
|
69
|
+
import"./chunk-7qey87th.js";
|
|
70
|
+
import"./chunk-zw62m6n3.js";
|
|
71
|
+
import"./chunk-1w20m7gw.js";
|
|
72
|
+
import"./chunk-zzf074w3.js";
|
|
73
|
+
import"./chunk-rpmntgyh.js";
|
|
74
|
+
import"./chunk-24kv69g3.js";
|
|
75
|
+
import"./chunk-hzxzvzw8.js";
|
|
76
|
+
import"./chunk-30wnahyg.js";
|
|
77
|
+
import"./chunk-ztmb7geg.js";
|
|
78
|
+
import"./chunk-tbdkekz3.js";
|
|
79
|
+
import {
|
|
80
|
+
init_useKeybinding
|
|
81
|
+
} from "./chunk-65zbgg1n.js";
|
|
82
|
+
import"./chunk-4spgkgr3.js";
|
|
83
|
+
import"./chunk-60fkafk2.js";
|
|
84
|
+
import"./chunk-50m3a23z.js";
|
|
85
|
+
import"./chunk-6hygvrhn.js";
|
|
86
|
+
import"./chunk-7tfdhkpy.js";
|
|
87
|
+
import"./chunk-8gv2pjby.js";
|
|
88
|
+
import"./chunk-g06pm4n9.js";
|
|
89
|
+
import"./chunk-2p369q9z.js";
|
|
90
|
+
import"./chunk-z0jgeax8.js";
|
|
91
|
+
import"./chunk-w68wc625.js";
|
|
92
|
+
import"./chunk-6hr7742d.js";
|
|
93
|
+
import"./chunk-xyg1sk2w.js";
|
|
94
|
+
import"./chunk-935nrvdb.js";
|
|
95
|
+
import"./chunk-8zz4z1q3.js";
|
|
96
|
+
import"./chunk-fncpkzs5.js";
|
|
97
|
+
import"./chunk-hqxp6b72.js";
|
|
98
|
+
import"./chunk-m2c3bjv1.js";
|
|
99
|
+
import"./chunk-jhtccjc9.js";
|
|
100
|
+
import"./chunk-7nvday0n.js";
|
|
101
|
+
import"./chunk-vxbjzggp.js";
|
|
102
|
+
import"./chunk-yc1stfve.js";
|
|
103
|
+
import"./chunk-8yvsnrkr.js";
|
|
104
|
+
import"./chunk-5mmhfbxb.js";
|
|
105
|
+
import {
|
|
106
|
+
capitalize,
|
|
107
|
+
init_stringUtils,
|
|
108
|
+
plural
|
|
109
|
+
} from "./chunk-eemjb825.js";
|
|
110
|
+
import"./chunk-ga1jkyqy.js";
|
|
111
|
+
import"./chunk-y1q7rt9n.js";
|
|
112
|
+
import"./chunk-8kct9arg.js";
|
|
113
|
+
import"./chunk-k7hexw3v.js";
|
|
114
|
+
import"./chunk-trqrj23e.js";
|
|
115
|
+
import"./chunk-za3k6h2h.js";
|
|
116
|
+
import"./chunk-8kf8h7xf.js";
|
|
117
|
+
import"./chunk-bgan4cpf.js";
|
|
118
|
+
import"./chunk-jmv7k0jn.js";
|
|
119
|
+
import"./chunk-hjxqmtg5.js";
|
|
120
|
+
import"./chunk-bzyzrq0k.js";
|
|
121
|
+
import"./chunk-vwenx8ke.js";
|
|
122
|
+
import"./chunk-q2h79ncs.js";
|
|
123
|
+
import"./chunk-v4ypszbb.js";
|
|
124
|
+
import"./chunk-qfsn720k.js";
|
|
125
|
+
import"./chunk-7qx3xhv3.js";
|
|
126
|
+
import"./chunk-j9475b46.js";
|
|
127
|
+
import"./chunk-fdwabr8p.js";
|
|
128
|
+
import"./chunk-e4dsy4g1.js";
|
|
129
|
+
import"./chunk-326zehp8.js";
|
|
130
|
+
import"./chunk-kc67kt75.js";
|
|
131
|
+
import"./chunk-40t1d75v.js";
|
|
132
|
+
import"./chunk-dbts5q5p.js";
|
|
133
|
+
import"./chunk-e3abfxpy.js";
|
|
134
|
+
import"./chunk-q44zc68f.js";
|
|
135
|
+
import"./chunk-fejeqe61.js";
|
|
136
|
+
import"./chunk-q1vrhh0q.js";
|
|
137
|
+
import"./chunk-hn4w9pkj.js";
|
|
138
|
+
import {
|
|
139
|
+
Byline,
|
|
140
|
+
Dialog,
|
|
141
|
+
KeyboardShortcutHint,
|
|
142
|
+
Link,
|
|
143
|
+
ThemedBox_default,
|
|
144
|
+
ThemedText,
|
|
145
|
+
color,
|
|
146
|
+
init_src,
|
|
147
|
+
useKeybinding,
|
|
148
|
+
useKeybindings,
|
|
149
|
+
useTheme
|
|
150
|
+
} from "./chunk-2g0ytd9d.js";
|
|
151
|
+
import {
|
|
152
|
+
require_jsx_dev_runtime,
|
|
153
|
+
require_react
|
|
154
|
+
} from "./chunk-de0qnnf7.js";
|
|
155
|
+
import"./chunk-j1mep9ck.js";
|
|
156
|
+
import"./chunk-6x35ffpx.js";
|
|
157
|
+
import"./chunk-1zbwhcbt.js";
|
|
158
|
+
import"./chunk-92bjkrf2.js";
|
|
159
|
+
import"./chunk-10k5jfc5.js";
|
|
160
|
+
import"./chunk-n9g24mwe.js";
|
|
161
|
+
import"./chunk-e3j7m7k2.js";
|
|
162
|
+
import"./chunk-hzmzwte2.js";
|
|
163
|
+
import"./chunk-pdvg91cg.js";
|
|
164
|
+
import"./chunk-c696122m.js";
|
|
165
|
+
import"./chunk-xbj5keyy.js";
|
|
166
|
+
import"./chunk-c1yc761e.js";
|
|
167
|
+
import {
|
|
168
|
+
figures_default,
|
|
169
|
+
init_figures
|
|
170
|
+
} from "./chunk-c5g9shkw.js";
|
|
171
|
+
import"./chunk-aeysytks.js";
|
|
172
|
+
import {
|
|
173
|
+
init_debug,
|
|
174
|
+
isDebugMode
|
|
175
|
+
} from "./chunk-s3hafnk3.js";
|
|
176
|
+
import"./chunk-kb3758f7.js";
|
|
177
|
+
import"./chunk-9h9k5vz3.js";
|
|
178
|
+
import"./chunk-xmpgmeb8.js";
|
|
179
|
+
import"./chunk-2kz09j2s.js";
|
|
180
|
+
import"./chunk-c0k7b0jw.js";
|
|
181
|
+
import"./chunk-pecy49yr.js";
|
|
182
|
+
import"./chunk-azbab59e.js";
|
|
183
|
+
import"./chunk-3nk9q8dr.js";
|
|
184
|
+
import {
|
|
185
|
+
__esm,
|
|
186
|
+
__toESM
|
|
187
|
+
} from "./chunk-hhsxm2yr.js";
|
|
188
|
+
|
|
189
|
+
// src/components/mcp/MCPAgentServerMenu.tsx
|
|
190
|
+
function MCPAgentServerMenu({
|
|
191
|
+
agentServer,
|
|
192
|
+
onCancel,
|
|
193
|
+
onComplete
|
|
194
|
+
}) {
|
|
195
|
+
const [theme] = useTheme();
|
|
196
|
+
const [isAuthenticating, setIsAuthenticating] = import_react.useState(false);
|
|
197
|
+
const [error, setError] = import_react.useState(null);
|
|
198
|
+
const [authorizationUrl, setAuthorizationUrl] = import_react.useState(null);
|
|
199
|
+
const authAbortControllerRef = import_react.useRef(null);
|
|
200
|
+
import_react.useEffect(() => () => authAbortControllerRef.current?.abort(), []);
|
|
201
|
+
const handleEscCancel = import_react.useCallback(() => {
|
|
202
|
+
if (isAuthenticating) {
|
|
203
|
+
authAbortControllerRef.current?.abort();
|
|
204
|
+
authAbortControllerRef.current = null;
|
|
205
|
+
setIsAuthenticating(false);
|
|
206
|
+
setAuthorizationUrl(null);
|
|
207
|
+
}
|
|
208
|
+
}, [isAuthenticating]);
|
|
209
|
+
useKeybinding("confirm:no", handleEscCancel, {
|
|
210
|
+
context: "Confirmation",
|
|
211
|
+
isActive: isAuthenticating
|
|
212
|
+
});
|
|
213
|
+
const handleAuthenticate = import_react.useCallback(async () => {
|
|
214
|
+
if (!agentServer.needsAuth || !agentServer.url) {
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
setIsAuthenticating(true);
|
|
218
|
+
setError(null);
|
|
219
|
+
const controller = new AbortController;
|
|
220
|
+
authAbortControllerRef.current = controller;
|
|
221
|
+
try {
|
|
222
|
+
const tempConfig = {
|
|
223
|
+
type: agentServer.transport,
|
|
224
|
+
url: agentServer.url
|
|
225
|
+
};
|
|
226
|
+
await performMCPOAuthFlow(agentServer.name, tempConfig, setAuthorizationUrl, controller.signal);
|
|
227
|
+
onComplete?.(`Authentication successful for ${agentServer.name}. The server will connect when the agent runs.`);
|
|
228
|
+
} catch (err) {
|
|
229
|
+
if (err instanceof Error && !(err instanceof AuthenticationCancelledError)) {
|
|
230
|
+
setError(err.message);
|
|
231
|
+
}
|
|
232
|
+
} finally {
|
|
233
|
+
setIsAuthenticating(false);
|
|
234
|
+
authAbortControllerRef.current = null;
|
|
235
|
+
}
|
|
236
|
+
}, [agentServer, onComplete]);
|
|
237
|
+
const capitalizedServerName = capitalize(String(agentServer.name));
|
|
238
|
+
if (isAuthenticating) {
|
|
239
|
+
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
240
|
+
flexDirection: "column",
|
|
241
|
+
gap: 1,
|
|
242
|
+
padding: 1,
|
|
243
|
+
children: [
|
|
244
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
245
|
+
color: "claude",
|
|
246
|
+
children: [
|
|
247
|
+
"Authenticating with ",
|
|
248
|
+
agentServer.name,
|
|
249
|
+
"\u2026"
|
|
250
|
+
]
|
|
251
|
+
}, undefined, true, undefined, this),
|
|
252
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
253
|
+
children: [
|
|
254
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Spinner, {}, undefined, false, undefined, this),
|
|
255
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
256
|
+
children: " A browser window will open for authentication"
|
|
257
|
+
}, undefined, false, undefined, this)
|
|
258
|
+
]
|
|
259
|
+
}, undefined, true, undefined, this),
|
|
260
|
+
authorizationUrl && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
261
|
+
flexDirection: "column",
|
|
262
|
+
children: [
|
|
263
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
264
|
+
dimColor: true,
|
|
265
|
+
children: "If your browser doesn't open automatically, copy this URL manually:"
|
|
266
|
+
}, undefined, false, undefined, this),
|
|
267
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Link, {
|
|
268
|
+
url: authorizationUrl
|
|
269
|
+
}, undefined, false, undefined, this)
|
|
270
|
+
]
|
|
271
|
+
}, undefined, true, undefined, this),
|
|
272
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
273
|
+
marginLeft: 3,
|
|
274
|
+
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
275
|
+
dimColor: true,
|
|
276
|
+
children: [
|
|
277
|
+
"Return here after authenticating in your browser.",
|
|
278
|
+
" ",
|
|
279
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ConfigurableShortcutHint, {
|
|
280
|
+
action: "confirm:no",
|
|
281
|
+
context: "Confirmation",
|
|
282
|
+
fallback: "Esc",
|
|
283
|
+
description: "go back"
|
|
284
|
+
}, undefined, false, undefined, this)
|
|
285
|
+
]
|
|
286
|
+
}, undefined, true, undefined, this)
|
|
287
|
+
}, undefined, false, undefined, this)
|
|
288
|
+
]
|
|
289
|
+
}, undefined, true, undefined, this);
|
|
290
|
+
}
|
|
291
|
+
const menuOptions = [];
|
|
292
|
+
if (agentServer.needsAuth) {
|
|
293
|
+
menuOptions.push({
|
|
294
|
+
label: agentServer.isAuthenticated ? "Re-authenticate" : "Authenticate",
|
|
295
|
+
value: "auth"
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
menuOptions.push({
|
|
299
|
+
label: "Back",
|
|
300
|
+
value: "back"
|
|
301
|
+
});
|
|
302
|
+
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Dialog, {
|
|
303
|
+
title: `${capitalizedServerName} MCP Server`,
|
|
304
|
+
subtitle: "agent-only",
|
|
305
|
+
onCancel,
|
|
306
|
+
inputGuide: (exitState) => exitState.pending ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
307
|
+
children: [
|
|
308
|
+
"Press ",
|
|
309
|
+
exitState.keyName,
|
|
310
|
+
" again to exit"
|
|
311
|
+
]
|
|
312
|
+
}, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Byline, {
|
|
313
|
+
children: [
|
|
314
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(KeyboardShortcutHint, {
|
|
315
|
+
shortcut: "\u2191\u2193",
|
|
316
|
+
action: "navigate"
|
|
317
|
+
}, undefined, false, undefined, this),
|
|
318
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(KeyboardShortcutHint, {
|
|
319
|
+
shortcut: "Enter",
|
|
320
|
+
action: "confirm"
|
|
321
|
+
}, undefined, false, undefined, this),
|
|
322
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ConfigurableShortcutHint, {
|
|
323
|
+
action: "confirm:no",
|
|
324
|
+
context: "Confirmation",
|
|
325
|
+
fallback: "Esc",
|
|
326
|
+
description: "go back"
|
|
327
|
+
}, undefined, false, undefined, this)
|
|
328
|
+
]
|
|
329
|
+
}, undefined, true, undefined, this),
|
|
330
|
+
children: [
|
|
331
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
332
|
+
flexDirection: "column",
|
|
333
|
+
gap: 0,
|
|
334
|
+
children: [
|
|
335
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
336
|
+
children: [
|
|
337
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
338
|
+
bold: true,
|
|
339
|
+
children: "Type: "
|
|
340
|
+
}, undefined, false, undefined, this),
|
|
341
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
342
|
+
dimColor: true,
|
|
343
|
+
children: agentServer.transport
|
|
344
|
+
}, undefined, false, undefined, this)
|
|
345
|
+
]
|
|
346
|
+
}, undefined, true, undefined, this),
|
|
347
|
+
agentServer.url && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
348
|
+
children: [
|
|
349
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
350
|
+
bold: true,
|
|
351
|
+
children: "URL: "
|
|
352
|
+
}, undefined, false, undefined, this),
|
|
353
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
354
|
+
dimColor: true,
|
|
355
|
+
children: agentServer.url
|
|
356
|
+
}, undefined, false, undefined, this)
|
|
357
|
+
]
|
|
358
|
+
}, undefined, true, undefined, this),
|
|
359
|
+
agentServer.command && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
360
|
+
children: [
|
|
361
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
362
|
+
bold: true,
|
|
363
|
+
children: "Command: "
|
|
364
|
+
}, undefined, false, undefined, this),
|
|
365
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
366
|
+
dimColor: true,
|
|
367
|
+
children: agentServer.command
|
|
368
|
+
}, undefined, false, undefined, this)
|
|
369
|
+
]
|
|
370
|
+
}, undefined, true, undefined, this),
|
|
371
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
372
|
+
children: [
|
|
373
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
374
|
+
bold: true,
|
|
375
|
+
children: "Used by: "
|
|
376
|
+
}, undefined, false, undefined, this),
|
|
377
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
378
|
+
dimColor: true,
|
|
379
|
+
children: agentServer.sourceAgents.join(", ")
|
|
380
|
+
}, undefined, false, undefined, this)
|
|
381
|
+
]
|
|
382
|
+
}, undefined, true, undefined, this),
|
|
383
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
384
|
+
marginTop: 1,
|
|
385
|
+
children: [
|
|
386
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
387
|
+
bold: true,
|
|
388
|
+
children: "Status: "
|
|
389
|
+
}, undefined, false, undefined, this),
|
|
390
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
391
|
+
children: [
|
|
392
|
+
color("inactive", theme)(figures_default.radioOff),
|
|
393
|
+
" not connected (agent-only)"
|
|
394
|
+
]
|
|
395
|
+
}, undefined, true, undefined, this)
|
|
396
|
+
]
|
|
397
|
+
}, undefined, true, undefined, this),
|
|
398
|
+
agentServer.needsAuth && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
399
|
+
children: [
|
|
400
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
401
|
+
bold: true,
|
|
402
|
+
children: "Auth: "
|
|
403
|
+
}, undefined, false, undefined, this),
|
|
404
|
+
agentServer.isAuthenticated ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
405
|
+
children: [
|
|
406
|
+
color("success", theme)(figures_default.tick),
|
|
407
|
+
" authenticated"
|
|
408
|
+
]
|
|
409
|
+
}, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
410
|
+
children: [
|
|
411
|
+
color("warning", theme)(figures_default.triangleUpOutline),
|
|
412
|
+
" may need authentication"
|
|
413
|
+
]
|
|
414
|
+
}, undefined, true, undefined, this)
|
|
415
|
+
]
|
|
416
|
+
}, undefined, true, undefined, this)
|
|
417
|
+
]
|
|
418
|
+
}, undefined, true, undefined, this),
|
|
419
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
420
|
+
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
421
|
+
dimColor: true,
|
|
422
|
+
children: "This server connects only when running the agent."
|
|
423
|
+
}, undefined, false, undefined, this)
|
|
424
|
+
}, undefined, false, undefined, this),
|
|
425
|
+
error && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
426
|
+
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
427
|
+
color: "error",
|
|
428
|
+
children: [
|
|
429
|
+
"Error: ",
|
|
430
|
+
error
|
|
431
|
+
]
|
|
432
|
+
}, undefined, true, undefined, this)
|
|
433
|
+
}, undefined, false, undefined, this),
|
|
434
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
435
|
+
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Select, {
|
|
436
|
+
options: menuOptions,
|
|
437
|
+
onChange: async (value) => {
|
|
438
|
+
switch (value) {
|
|
439
|
+
case "auth":
|
|
440
|
+
await handleAuthenticate();
|
|
441
|
+
break;
|
|
442
|
+
case "back":
|
|
443
|
+
onCancel();
|
|
444
|
+
break;
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
onCancel
|
|
448
|
+
}, undefined, false, undefined, this)
|
|
449
|
+
}, undefined, false, undefined, this)
|
|
450
|
+
]
|
|
451
|
+
}, undefined, true, undefined, this);
|
|
452
|
+
}
|
|
453
|
+
var import_react, jsx_dev_runtime;
|
|
454
|
+
var init_MCPAgentServerMenu = __esm(() => {
|
|
455
|
+
init_figures();
|
|
456
|
+
init_src();
|
|
457
|
+
init_useKeybinding();
|
|
458
|
+
init_auth();
|
|
459
|
+
init_stringUtils();
|
|
460
|
+
init_ConfigurableShortcutHint();
|
|
461
|
+
init_CustomSelect();
|
|
462
|
+
init_src();
|
|
463
|
+
init_Spinner();
|
|
464
|
+
import_react = __toESM(require_react(), 1);
|
|
465
|
+
jsx_dev_runtime = __toESM(require_jsx_dev_runtime(), 1);
|
|
466
|
+
});
|
|
467
|
+
|
|
468
|
+
// src/components/mcp/MCPListPanel.tsx
|
|
469
|
+
function getScopeHeading(scope) {
|
|
470
|
+
switch (scope) {
|
|
471
|
+
case "project":
|
|
472
|
+
return { label: "Project MCPs", path: describeMcpConfigFilePath(scope) };
|
|
473
|
+
case "user":
|
|
474
|
+
return { label: "User MCPs", path: describeMcpConfigFilePath(scope) };
|
|
475
|
+
case "local":
|
|
476
|
+
return { label: "Local MCPs", path: describeMcpConfigFilePath(scope) };
|
|
477
|
+
case "enterprise":
|
|
478
|
+
return { label: "Enterprise MCPs" };
|
|
479
|
+
case "dynamic":
|
|
480
|
+
return { label: "Built-in MCPs", path: "always available" };
|
|
481
|
+
default:
|
|
482
|
+
return { label: scope };
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
function groupServersByScope(serverList) {
|
|
486
|
+
const groups = new Map;
|
|
487
|
+
for (const server of serverList) {
|
|
488
|
+
const scope = server.scope;
|
|
489
|
+
if (!groups.has(scope)) {
|
|
490
|
+
groups.set(scope, []);
|
|
491
|
+
}
|
|
492
|
+
groups.get(scope).push(server);
|
|
493
|
+
}
|
|
494
|
+
for (const [, groupServers] of groups) {
|
|
495
|
+
groupServers.sort((a, b) => a.name.localeCompare(b.name));
|
|
496
|
+
}
|
|
497
|
+
return groups;
|
|
498
|
+
}
|
|
499
|
+
function MCPListPanel({
|
|
500
|
+
servers,
|
|
501
|
+
agentServers = [],
|
|
502
|
+
onSelectServer,
|
|
503
|
+
onSelectAgentServer,
|
|
504
|
+
onComplete
|
|
505
|
+
}) {
|
|
506
|
+
const [theme] = useTheme();
|
|
507
|
+
const [selectedIndex, setSelectedIndex] = import_react2.useState(0);
|
|
508
|
+
const serversByScope = import_react2.default.useMemo(() => {
|
|
509
|
+
const regularServers = servers.filter((s) => s.client.config.type !== "claudeai-proxy");
|
|
510
|
+
return groupServersByScope(regularServers);
|
|
511
|
+
}, [servers]);
|
|
512
|
+
const claudeAiServers = import_react2.default.useMemo(() => servers.filter((s) => s.client.config.type === "claudeai-proxy").sort((a, b) => a.name.localeCompare(b.name)), [servers]);
|
|
513
|
+
const dynamicServers = import_react2.default.useMemo(() => (serversByScope.get("dynamic") ?? []).sort((a, b) => a.name.localeCompare(b.name)), [serversByScope]);
|
|
514
|
+
const dynamicHeading = getScopeHeading("dynamic");
|
|
515
|
+
const selectableItems = import_react2.default.useMemo(() => {
|
|
516
|
+
const items = [];
|
|
517
|
+
for (const scope of SCOPE_ORDER) {
|
|
518
|
+
const scopeServers = serversByScope.get(scope) ?? [];
|
|
519
|
+
for (const server of scopeServers) {
|
|
520
|
+
items.push({ type: "server", server });
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
for (const server of claudeAiServers) {
|
|
524
|
+
items.push({ type: "server", server });
|
|
525
|
+
}
|
|
526
|
+
for (const agentServer of agentServers) {
|
|
527
|
+
items.push({ type: "agent-server", agentServer });
|
|
528
|
+
}
|
|
529
|
+
for (const server of dynamicServers) {
|
|
530
|
+
items.push({ type: "server", server });
|
|
531
|
+
}
|
|
532
|
+
return items;
|
|
533
|
+
}, [serversByScope, claudeAiServers, agentServers, dynamicServers]);
|
|
534
|
+
const handleCancel = import_react2.useCallback(() => {
|
|
535
|
+
onComplete("MCP dialog dismissed", {
|
|
536
|
+
display: "system"
|
|
537
|
+
});
|
|
538
|
+
}, [onComplete]);
|
|
539
|
+
const handleSelect = import_react2.useCallback(() => {
|
|
540
|
+
const item = selectableItems[selectedIndex];
|
|
541
|
+
if (!item)
|
|
542
|
+
return;
|
|
543
|
+
if (item.type === "server") {
|
|
544
|
+
onSelectServer(item.server);
|
|
545
|
+
} else if (item.type === "agent-server" && onSelectAgentServer) {
|
|
546
|
+
onSelectAgentServer(item.agentServer);
|
|
547
|
+
}
|
|
548
|
+
}, [selectableItems, selectedIndex, onSelectServer, onSelectAgentServer]);
|
|
549
|
+
useKeybindings({
|
|
550
|
+
"confirm:previous": () => setSelectedIndex((prev) => prev === 0 ? selectableItems.length - 1 : prev - 1),
|
|
551
|
+
"confirm:next": () => setSelectedIndex((prev) => prev === selectableItems.length - 1 ? 0 : prev + 1),
|
|
552
|
+
"confirm:yes": handleSelect,
|
|
553
|
+
"confirm:no": handleCancel
|
|
554
|
+
}, { context: "Confirmation" });
|
|
555
|
+
const getServerIndex = (server) => {
|
|
556
|
+
return selectableItems.findIndex((item) => item.type === "server" && item.server === server);
|
|
557
|
+
};
|
|
558
|
+
const getAgentServerIndex = (agentServer) => {
|
|
559
|
+
return selectableItems.findIndex((item) => item.type === "agent-server" && item.agentServer === agentServer);
|
|
560
|
+
};
|
|
561
|
+
const debugMode = isDebugMode();
|
|
562
|
+
const hasFailedClients = servers.some((s) => s.client.type === "failed");
|
|
563
|
+
if (servers.length === 0 && agentServers.length === 0) {
|
|
564
|
+
return null;
|
|
565
|
+
}
|
|
566
|
+
const renderServerItem = (server) => {
|
|
567
|
+
const index = getServerIndex(server);
|
|
568
|
+
const isSelected = selectedIndex === index;
|
|
569
|
+
let statusIcon = "";
|
|
570
|
+
let statusText = "";
|
|
571
|
+
if (server.client.type === "disabled") {
|
|
572
|
+
statusIcon = color("inactive", theme)(figures_default.radioOff);
|
|
573
|
+
statusText = "disabled";
|
|
574
|
+
} else if (server.client.type === "connected") {
|
|
575
|
+
statusIcon = color("success", theme)(figures_default.tick);
|
|
576
|
+
statusText = "connected";
|
|
577
|
+
} else if (server.client.type === "pending") {
|
|
578
|
+
statusIcon = color("inactive", theme)(figures_default.radioOff);
|
|
579
|
+
const { reconnectAttempt, maxReconnectAttempts } = server.client;
|
|
580
|
+
if (reconnectAttempt && maxReconnectAttempts) {
|
|
581
|
+
statusText = `reconnecting (${reconnectAttempt}/${maxReconnectAttempts})\u2026`;
|
|
582
|
+
} else {
|
|
583
|
+
statusText = "connecting\u2026";
|
|
584
|
+
}
|
|
585
|
+
} else if (server.client.type === "needs-auth") {
|
|
586
|
+
statusIcon = color("warning", theme)(figures_default.triangleUpOutline);
|
|
587
|
+
statusText = "needs authentication";
|
|
588
|
+
} else {
|
|
589
|
+
statusIcon = color("error", theme)(figures_default.cross);
|
|
590
|
+
statusText = "failed";
|
|
591
|
+
}
|
|
592
|
+
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
593
|
+
children: [
|
|
594
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
595
|
+
color: isSelected ? "suggestion" : undefined,
|
|
596
|
+
children: isSelected ? `${figures_default.pointer} ` : " "
|
|
597
|
+
}, undefined, false, undefined, this),
|
|
598
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
599
|
+
color: isSelected ? "suggestion" : undefined,
|
|
600
|
+
children: server.name
|
|
601
|
+
}, undefined, false, undefined, this),
|
|
602
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
603
|
+
dimColor: !isSelected,
|
|
604
|
+
children: [
|
|
605
|
+
" \xB7 ",
|
|
606
|
+
statusIcon,
|
|
607
|
+
" "
|
|
608
|
+
]
|
|
609
|
+
}, undefined, true, undefined, this),
|
|
610
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
611
|
+
dimColor: !isSelected,
|
|
612
|
+
children: statusText
|
|
613
|
+
}, undefined, false, undefined, this)
|
|
614
|
+
]
|
|
615
|
+
}, `${server.name}-${index}`, true, undefined, this);
|
|
616
|
+
};
|
|
617
|
+
const renderAgentServerItem = (agentServer) => {
|
|
618
|
+
const index = getAgentServerIndex(agentServer);
|
|
619
|
+
const isSelected = selectedIndex === index;
|
|
620
|
+
const statusIcon = agentServer.needsAuth ? color("warning", theme)(figures_default.triangleUpOutline) : color("inactive", theme)(figures_default.radioOff);
|
|
621
|
+
const statusText = agentServer.needsAuth ? "may need auth" : "agent-only";
|
|
622
|
+
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
623
|
+
children: [
|
|
624
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
625
|
+
color: isSelected ? "suggestion" : undefined,
|
|
626
|
+
children: isSelected ? `${figures_default.pointer} ` : " "
|
|
627
|
+
}, undefined, false, undefined, this),
|
|
628
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
629
|
+
color: isSelected ? "suggestion" : undefined,
|
|
630
|
+
children: agentServer.name
|
|
631
|
+
}, undefined, false, undefined, this),
|
|
632
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
633
|
+
dimColor: !isSelected,
|
|
634
|
+
children: [
|
|
635
|
+
" \xB7 ",
|
|
636
|
+
statusIcon,
|
|
637
|
+
" "
|
|
638
|
+
]
|
|
639
|
+
}, undefined, true, undefined, this),
|
|
640
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
641
|
+
dimColor: !isSelected,
|
|
642
|
+
children: statusText
|
|
643
|
+
}, undefined, false, undefined, this)
|
|
644
|
+
]
|
|
645
|
+
}, `agent-${agentServer.name}-${index}`, true, undefined, this);
|
|
646
|
+
};
|
|
647
|
+
const totalServers = servers.length + agentServers.length;
|
|
648
|
+
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
649
|
+
flexDirection: "column",
|
|
650
|
+
children: [
|
|
651
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(McpParsingWarnings, {}, undefined, false, undefined, this),
|
|
652
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Dialog, {
|
|
653
|
+
title: "Manage MCP servers",
|
|
654
|
+
subtitle: `${totalServers} ${plural(totalServers, "server")}`,
|
|
655
|
+
onCancel: handleCancel,
|
|
656
|
+
hideInputGuide: true,
|
|
657
|
+
children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
658
|
+
flexDirection: "column",
|
|
659
|
+
children: [
|
|
660
|
+
SCOPE_ORDER.map((scope) => {
|
|
661
|
+
const scopeServers = serversByScope.get(scope);
|
|
662
|
+
if (!scopeServers || scopeServers.length === 0)
|
|
663
|
+
return null;
|
|
664
|
+
const heading = getScopeHeading(scope);
|
|
665
|
+
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
666
|
+
flexDirection: "column",
|
|
667
|
+
marginBottom: 1,
|
|
668
|
+
children: [
|
|
669
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
670
|
+
paddingLeft: 2,
|
|
671
|
+
children: [
|
|
672
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
673
|
+
bold: true,
|
|
674
|
+
children: heading.label
|
|
675
|
+
}, undefined, false, undefined, this),
|
|
676
|
+
heading.path && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
677
|
+
dimColor: true,
|
|
678
|
+
children: [
|
|
679
|
+
" (",
|
|
680
|
+
heading.path,
|
|
681
|
+
")"
|
|
682
|
+
]
|
|
683
|
+
}, undefined, true, undefined, this)
|
|
684
|
+
]
|
|
685
|
+
}, undefined, true, undefined, this),
|
|
686
|
+
scopeServers.map((server) => renderServerItem(server))
|
|
687
|
+
]
|
|
688
|
+
}, scope, true, undefined, this);
|
|
689
|
+
}),
|
|
690
|
+
claudeAiServers.length > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
691
|
+
flexDirection: "column",
|
|
692
|
+
marginBottom: 1,
|
|
693
|
+
children: [
|
|
694
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
695
|
+
paddingLeft: 2,
|
|
696
|
+
children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
697
|
+
bold: true,
|
|
698
|
+
children: "claude.ai"
|
|
699
|
+
}, undefined, false, undefined, this)
|
|
700
|
+
}, undefined, false, undefined, this),
|
|
701
|
+
claudeAiServers.map((server) => renderServerItem(server))
|
|
702
|
+
]
|
|
703
|
+
}, undefined, true, undefined, this),
|
|
704
|
+
agentServers.length > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
705
|
+
flexDirection: "column",
|
|
706
|
+
marginBottom: 1,
|
|
707
|
+
children: [
|
|
708
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
709
|
+
paddingLeft: 2,
|
|
710
|
+
children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
711
|
+
bold: true,
|
|
712
|
+
children: "Agent MCPs"
|
|
713
|
+
}, undefined, false, undefined, this)
|
|
714
|
+
}, undefined, false, undefined, this),
|
|
715
|
+
[...new Set(agentServers.flatMap((s) => s.sourceAgents))].map((agentName) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
716
|
+
flexDirection: "column",
|
|
717
|
+
marginTop: 1,
|
|
718
|
+
children: [
|
|
719
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
720
|
+
paddingLeft: 2,
|
|
721
|
+
children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
722
|
+
dimColor: true,
|
|
723
|
+
children: [
|
|
724
|
+
"@",
|
|
725
|
+
agentName
|
|
726
|
+
]
|
|
727
|
+
}, undefined, true, undefined, this)
|
|
728
|
+
}, undefined, false, undefined, this),
|
|
729
|
+
agentServers.filter((s) => s.sourceAgents.includes(agentName)).map((agentServer) => renderAgentServerItem(agentServer))
|
|
730
|
+
]
|
|
731
|
+
}, agentName, true, undefined, this))
|
|
732
|
+
]
|
|
733
|
+
}, undefined, true, undefined, this),
|
|
734
|
+
dynamicServers.length > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
735
|
+
flexDirection: "column",
|
|
736
|
+
marginBottom: 1,
|
|
737
|
+
children: [
|
|
738
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
739
|
+
paddingLeft: 2,
|
|
740
|
+
children: [
|
|
741
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
742
|
+
bold: true,
|
|
743
|
+
children: dynamicHeading.label
|
|
744
|
+
}, undefined, false, undefined, this),
|
|
745
|
+
dynamicHeading.path && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
746
|
+
dimColor: true,
|
|
747
|
+
children: [
|
|
748
|
+
" (",
|
|
749
|
+
dynamicHeading.path,
|
|
750
|
+
")"
|
|
751
|
+
]
|
|
752
|
+
}, undefined, true, undefined, this)
|
|
753
|
+
]
|
|
754
|
+
}, undefined, true, undefined, this),
|
|
755
|
+
dynamicServers.map((server) => renderServerItem(server))
|
|
756
|
+
]
|
|
757
|
+
}, undefined, true, undefined, this),
|
|
758
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
759
|
+
flexDirection: "column",
|
|
760
|
+
children: [
|
|
761
|
+
hasFailedClients && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
762
|
+
dimColor: true,
|
|
763
|
+
children: debugMode ? "\u203B Error logs shown inline with --debug" : "\u203B Run redscope --debug to see error logs"
|
|
764
|
+
}, undefined, false, undefined, this),
|
|
765
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
766
|
+
dimColor: true,
|
|
767
|
+
children: [
|
|
768
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Link, {
|
|
769
|
+
url: "https://code.claude.com/docs/en/mcp",
|
|
770
|
+
children: "https://code.claude.com/docs/en/mcp"
|
|
771
|
+
}, undefined, false, undefined, this),
|
|
772
|
+
" for help"
|
|
773
|
+
]
|
|
774
|
+
}, undefined, true, undefined, this)
|
|
775
|
+
]
|
|
776
|
+
}, undefined, true, undefined, this)
|
|
777
|
+
]
|
|
778
|
+
}, undefined, true, undefined, this)
|
|
779
|
+
}, undefined, false, undefined, this),
|
|
780
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
781
|
+
paddingX: 1,
|
|
782
|
+
children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
783
|
+
dimColor: true,
|
|
784
|
+
italic: true,
|
|
785
|
+
children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Byline, {
|
|
786
|
+
children: [
|
|
787
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(KeyboardShortcutHint, {
|
|
788
|
+
shortcut: "\u2191\u2193",
|
|
789
|
+
action: "navigate"
|
|
790
|
+
}, undefined, false, undefined, this),
|
|
791
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(KeyboardShortcutHint, {
|
|
792
|
+
shortcut: "Enter",
|
|
793
|
+
action: "confirm"
|
|
794
|
+
}, undefined, false, undefined, this),
|
|
795
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ConfigurableShortcutHint, {
|
|
796
|
+
action: "confirm:no",
|
|
797
|
+
context: "Confirmation",
|
|
798
|
+
fallback: "Esc",
|
|
799
|
+
description: "cancel"
|
|
800
|
+
}, undefined, false, undefined, this)
|
|
801
|
+
]
|
|
802
|
+
}, undefined, true, undefined, this)
|
|
803
|
+
}, undefined, false, undefined, this)
|
|
804
|
+
}, undefined, false, undefined, this)
|
|
805
|
+
]
|
|
806
|
+
}, undefined, true, undefined, this);
|
|
807
|
+
}
|
|
808
|
+
var import_react2, jsx_dev_runtime2, SCOPE_ORDER;
|
|
809
|
+
var init_MCPListPanel = __esm(() => {
|
|
810
|
+
init_figures();
|
|
811
|
+
init_src();
|
|
812
|
+
init_useKeybinding();
|
|
813
|
+
init_utils();
|
|
814
|
+
init_debug();
|
|
815
|
+
init_stringUtils();
|
|
816
|
+
init_ConfigurableShortcutHint();
|
|
817
|
+
init_src();
|
|
818
|
+
init_McpParsingWarnings();
|
|
819
|
+
import_react2 = __toESM(require_react(), 1);
|
|
820
|
+
jsx_dev_runtime2 = __toESM(require_jsx_dev_runtime(), 1);
|
|
821
|
+
SCOPE_ORDER = ["project", "local", "user", "enterprise"];
|
|
822
|
+
});
|
|
823
|
+
|
|
824
|
+
// src/components/mcp/MCPReconnect.tsx
|
|
825
|
+
function MCPReconnect({
|
|
826
|
+
serverName,
|
|
827
|
+
onComplete
|
|
828
|
+
}) {
|
|
829
|
+
const [theme] = useTheme();
|
|
830
|
+
const store = useAppStateStore();
|
|
831
|
+
const reconnectMcpServer = useMcpReconnect();
|
|
832
|
+
const [isReconnecting, setIsReconnecting] = import_react3.useState(true);
|
|
833
|
+
const [error, setError] = import_react3.useState(null);
|
|
834
|
+
import_react3.useEffect(() => {
|
|
835
|
+
async function attemptReconnect() {
|
|
836
|
+
try {
|
|
837
|
+
const server = store.getState().mcp.clients.find((c) => c.name === serverName);
|
|
838
|
+
if (!server) {
|
|
839
|
+
setError(`MCP server "${serverName}" not found`);
|
|
840
|
+
setIsReconnecting(false);
|
|
841
|
+
onComplete(`MCP server "${serverName}" not found`);
|
|
842
|
+
return;
|
|
843
|
+
}
|
|
844
|
+
const result = await reconnectMcpServer(serverName);
|
|
845
|
+
switch (result.client.type) {
|
|
846
|
+
case "connected":
|
|
847
|
+
setIsReconnecting(false);
|
|
848
|
+
onComplete(`Successfully reconnected to ${serverName}`);
|
|
849
|
+
break;
|
|
850
|
+
case "needs-auth":
|
|
851
|
+
setError(`${serverName} requires authentication`);
|
|
852
|
+
setIsReconnecting(false);
|
|
853
|
+
onComplete(`${serverName} requires authentication. Use /mcp to authenticate.`);
|
|
854
|
+
break;
|
|
855
|
+
case "pending":
|
|
856
|
+
case "failed":
|
|
857
|
+
case "disabled":
|
|
858
|
+
setError(`Failed to reconnect to ${serverName}`);
|
|
859
|
+
setIsReconnecting(false);
|
|
860
|
+
onComplete(`Failed to reconnect to ${serverName}`);
|
|
861
|
+
break;
|
|
862
|
+
}
|
|
863
|
+
} catch (err) {
|
|
864
|
+
const errorMessage = err instanceof Error ? err.message : String(err);
|
|
865
|
+
setError(errorMessage);
|
|
866
|
+
setIsReconnecting(false);
|
|
867
|
+
onComplete(`Error: ${errorMessage}`);
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
attemptReconnect();
|
|
871
|
+
}, [serverName, reconnectMcpServer, store, onComplete]);
|
|
872
|
+
if (isReconnecting) {
|
|
873
|
+
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
874
|
+
flexDirection: "column",
|
|
875
|
+
gap: 1,
|
|
876
|
+
padding: 1,
|
|
877
|
+
children: [
|
|
878
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
879
|
+
color: "text",
|
|
880
|
+
children: [
|
|
881
|
+
"Reconnecting to ",
|
|
882
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
883
|
+
bold: true,
|
|
884
|
+
children: serverName
|
|
885
|
+
}, undefined, false, undefined, this)
|
|
886
|
+
]
|
|
887
|
+
}, undefined, true, undefined, this),
|
|
888
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
889
|
+
children: [
|
|
890
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Spinner, {}, undefined, false, undefined, this),
|
|
891
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
892
|
+
children: " Establishing connection to MCP server"
|
|
893
|
+
}, undefined, false, undefined, this)
|
|
894
|
+
]
|
|
895
|
+
}, undefined, true, undefined, this)
|
|
896
|
+
]
|
|
897
|
+
}, undefined, true, undefined, this);
|
|
898
|
+
}
|
|
899
|
+
if (error) {
|
|
900
|
+
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
901
|
+
flexDirection: "column",
|
|
902
|
+
gap: 1,
|
|
903
|
+
padding: 1,
|
|
904
|
+
children: [
|
|
905
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
906
|
+
children: [
|
|
907
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
908
|
+
children: [
|
|
909
|
+
color("error", theme)(figures_default.cross),
|
|
910
|
+
" "
|
|
911
|
+
]
|
|
912
|
+
}, undefined, true, undefined, this),
|
|
913
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
914
|
+
color: "error",
|
|
915
|
+
children: [
|
|
916
|
+
"Failed to reconnect to ",
|
|
917
|
+
serverName
|
|
918
|
+
]
|
|
919
|
+
}, undefined, true, undefined, this)
|
|
920
|
+
]
|
|
921
|
+
}, undefined, true, undefined, this),
|
|
922
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
923
|
+
dimColor: true,
|
|
924
|
+
children: [
|
|
925
|
+
"Error: ",
|
|
926
|
+
error
|
|
927
|
+
]
|
|
928
|
+
}, undefined, true, undefined, this)
|
|
929
|
+
]
|
|
930
|
+
}, undefined, true, undefined, this);
|
|
931
|
+
}
|
|
932
|
+
return null;
|
|
933
|
+
}
|
|
934
|
+
var import_react3, jsx_dev_runtime3;
|
|
935
|
+
var init_MCPReconnect = __esm(() => {
|
|
936
|
+
init_figures();
|
|
937
|
+
init_src();
|
|
938
|
+
init_MCPConnectionManager();
|
|
939
|
+
init_AppState();
|
|
940
|
+
init_Spinner();
|
|
941
|
+
import_react3 = __toESM(require_react(), 1);
|
|
942
|
+
jsx_dev_runtime3 = __toESM(require_jsx_dev_runtime(), 1);
|
|
943
|
+
});
|
|
944
|
+
|
|
945
|
+
// src/components/mcp/MCPSettings.tsx
|
|
946
|
+
function MCPSettings({ onComplete }) {
|
|
947
|
+
const mcp = useAppState((s) => s.mcp);
|
|
948
|
+
const agentDefinitions = useAppState((s) => s.agentDefinitions);
|
|
949
|
+
const mcpClients = mcp.clients;
|
|
950
|
+
const [viewState, setViewState] = import_react4.default.useState({
|
|
951
|
+
type: "list"
|
|
952
|
+
});
|
|
953
|
+
const [servers, setServers] = import_react4.default.useState([]);
|
|
954
|
+
const agentMcpServers = import_react4.useMemo(() => extractAgentMcpServers(agentDefinitions.allAgents), [agentDefinitions.allAgents]);
|
|
955
|
+
const filteredClients = import_react4.default.useMemo(() => mcpClients.filter((client) => client.name !== "ide").sort((a, b) => a.name.localeCompare(b.name)), [mcpClients]);
|
|
956
|
+
import_react4.default.useEffect(() => {
|
|
957
|
+
let cancelled = false;
|
|
958
|
+
async function prepareServers() {
|
|
959
|
+
const serverInfos = await Promise.all(filteredClients.map(async (client) => {
|
|
960
|
+
const scope = client.config.scope;
|
|
961
|
+
const isSSE = client.config.type === "sse";
|
|
962
|
+
const isHTTP = client.config.type === "http";
|
|
963
|
+
const isClaudeAIProxy = client.config.type === "claudeai-proxy";
|
|
964
|
+
let isAuthenticated;
|
|
965
|
+
if (isSSE || isHTTP) {
|
|
966
|
+
const authProvider = new ClaudeAuthProvider(client.name, client.config);
|
|
967
|
+
const tokens = await authProvider.tokens();
|
|
968
|
+
const hasSessionAuth = getSessionIngressAuthToken() !== null && client.type === "connected";
|
|
969
|
+
const hasToolsAndConnected = client.type === "connected" && filterToolsByServer(mcp.tools, client.name).length > 0;
|
|
970
|
+
isAuthenticated = Boolean(tokens) || hasSessionAuth || hasToolsAndConnected;
|
|
971
|
+
}
|
|
972
|
+
const baseInfo = {
|
|
973
|
+
name: client.name,
|
|
974
|
+
client,
|
|
975
|
+
scope
|
|
976
|
+
};
|
|
977
|
+
if (isClaudeAIProxy) {
|
|
978
|
+
return {
|
|
979
|
+
...baseInfo,
|
|
980
|
+
transport: "claudeai-proxy",
|
|
981
|
+
isAuthenticated: false,
|
|
982
|
+
config: client.config
|
|
983
|
+
};
|
|
984
|
+
} else if (isSSE) {
|
|
985
|
+
return {
|
|
986
|
+
...baseInfo,
|
|
987
|
+
transport: "sse",
|
|
988
|
+
isAuthenticated,
|
|
989
|
+
config: client.config
|
|
990
|
+
};
|
|
991
|
+
} else if (isHTTP) {
|
|
992
|
+
return {
|
|
993
|
+
...baseInfo,
|
|
994
|
+
transport: "http",
|
|
995
|
+
isAuthenticated,
|
|
996
|
+
config: client.config
|
|
997
|
+
};
|
|
998
|
+
} else {
|
|
999
|
+
return {
|
|
1000
|
+
...baseInfo,
|
|
1001
|
+
transport: "stdio",
|
|
1002
|
+
config: client.config
|
|
1003
|
+
};
|
|
1004
|
+
}
|
|
1005
|
+
}));
|
|
1006
|
+
if (cancelled)
|
|
1007
|
+
return;
|
|
1008
|
+
setServers(serverInfos);
|
|
1009
|
+
}
|
|
1010
|
+
prepareServers();
|
|
1011
|
+
return () => {
|
|
1012
|
+
cancelled = true;
|
|
1013
|
+
};
|
|
1014
|
+
}, [filteredClients, mcp.tools]);
|
|
1015
|
+
import_react4.useEffect(() => {
|
|
1016
|
+
if (servers.length === 0 && filteredClients.length > 0) {
|
|
1017
|
+
return;
|
|
1018
|
+
}
|
|
1019
|
+
if (servers.length === 0 && agentMcpServers.length === 0) {
|
|
1020
|
+
onComplete("No MCP servers configured. Please run /doctor if this is unexpected. Otherwise, run `redscope mcp --help` or visit https://code.claude.com/docs/en/mcp to learn more.");
|
|
1021
|
+
}
|
|
1022
|
+
}, [
|
|
1023
|
+
servers.length,
|
|
1024
|
+
filteredClients.length,
|
|
1025
|
+
agentMcpServers.length,
|
|
1026
|
+
onComplete
|
|
1027
|
+
]);
|
|
1028
|
+
switch (viewState.type) {
|
|
1029
|
+
case "list":
|
|
1030
|
+
return /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(MCPListPanel, {
|
|
1031
|
+
servers,
|
|
1032
|
+
agentServers: agentMcpServers,
|
|
1033
|
+
onSelectServer: (server) => setViewState({ type: "server-menu", server }),
|
|
1034
|
+
onSelectAgentServer: (agentServer) => setViewState({ type: "agent-server-menu", agentServer }),
|
|
1035
|
+
onComplete,
|
|
1036
|
+
defaultTab: viewState.defaultTab
|
|
1037
|
+
}, undefined, false, undefined, this);
|
|
1038
|
+
case "server-menu": {
|
|
1039
|
+
const serverTools = filterToolsByServer(mcp.tools, viewState.server.name);
|
|
1040
|
+
const defaultTab = viewState.server.transport === "claudeai-proxy" ? "claude.ai" : "RedScope AI";
|
|
1041
|
+
if (viewState.server.transport === "stdio") {
|
|
1042
|
+
return /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(MCPStdioServerMenu, {
|
|
1043
|
+
server: viewState.server,
|
|
1044
|
+
serverToolsCount: serverTools.length,
|
|
1045
|
+
onViewTools: () => setViewState({ type: "server-tools", server: viewState.server }),
|
|
1046
|
+
onCancel: () => setViewState({ type: "list", defaultTab }),
|
|
1047
|
+
onComplete
|
|
1048
|
+
}, undefined, false, undefined, this);
|
|
1049
|
+
} else {
|
|
1050
|
+
return /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(MCPRemoteServerMenu, {
|
|
1051
|
+
server: viewState.server,
|
|
1052
|
+
serverToolsCount: serverTools.length,
|
|
1053
|
+
onViewTools: () => setViewState({ type: "server-tools", server: viewState.server }),
|
|
1054
|
+
onCancel: () => setViewState({ type: "list", defaultTab }),
|
|
1055
|
+
onComplete
|
|
1056
|
+
}, undefined, false, undefined, this);
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
case "server-tools":
|
|
1060
|
+
return /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(MCPToolListView, {
|
|
1061
|
+
server: viewState.server,
|
|
1062
|
+
onSelectTool: (_, index) => setViewState({
|
|
1063
|
+
type: "server-tool-detail",
|
|
1064
|
+
server: viewState.server,
|
|
1065
|
+
toolIndex: index
|
|
1066
|
+
}),
|
|
1067
|
+
onBack: () => setViewState({ type: "server-menu", server: viewState.server })
|
|
1068
|
+
}, undefined, false, undefined, this);
|
|
1069
|
+
case "server-tool-detail": {
|
|
1070
|
+
const serverTools = filterToolsByServer(mcp.tools, viewState.server.name);
|
|
1071
|
+
const tool = serverTools[viewState.toolIndex];
|
|
1072
|
+
if (!tool) {
|
|
1073
|
+
setViewState({ type: "server-tools", server: viewState.server });
|
|
1074
|
+
return null;
|
|
1075
|
+
}
|
|
1076
|
+
return /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(MCPToolDetailView, {
|
|
1077
|
+
tool,
|
|
1078
|
+
server: viewState.server,
|
|
1079
|
+
onBack: () => setViewState({ type: "server-tools", server: viewState.server })
|
|
1080
|
+
}, undefined, false, undefined, this);
|
|
1081
|
+
}
|
|
1082
|
+
case "agent-server-menu":
|
|
1083
|
+
return /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(MCPAgentServerMenu, {
|
|
1084
|
+
agentServer: viewState.agentServer,
|
|
1085
|
+
onCancel: () => setViewState({ type: "list", defaultTab: "Agents" }),
|
|
1086
|
+
onComplete
|
|
1087
|
+
}, undefined, false, undefined, this);
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
var import_react4, jsx_dev_runtime4;
|
|
1091
|
+
var init_MCPSettings = __esm(() => {
|
|
1092
|
+
init_auth();
|
|
1093
|
+
init_utils();
|
|
1094
|
+
init_AppState();
|
|
1095
|
+
init_sessionIngressAuth();
|
|
1096
|
+
init_MCPAgentServerMenu();
|
|
1097
|
+
init_MCPListPanel();
|
|
1098
|
+
init_MCPRemoteServerMenu();
|
|
1099
|
+
init_MCPStdioServerMenu();
|
|
1100
|
+
init_MCPToolDetailView();
|
|
1101
|
+
init_MCPToolListView();
|
|
1102
|
+
import_react4 = __toESM(require_react(), 1);
|
|
1103
|
+
jsx_dev_runtime4 = __toESM(require_jsx_dev_runtime(), 1);
|
|
1104
|
+
});
|
|
1105
|
+
|
|
1106
|
+
// src/components/mcp/index.ts
|
|
1107
|
+
var init_mcp = __esm(() => {
|
|
1108
|
+
init_MCPAgentServerMenu();
|
|
1109
|
+
init_MCPListPanel();
|
|
1110
|
+
init_MCPReconnect();
|
|
1111
|
+
init_MCPRemoteServerMenu();
|
|
1112
|
+
init_MCPSettings();
|
|
1113
|
+
init_MCPStdioServerMenu();
|
|
1114
|
+
init_MCPToolDetailView();
|
|
1115
|
+
init_MCPToolListView();
|
|
1116
|
+
});
|
|
1117
|
+
|
|
1118
|
+
// src/commands/mcp/mcp.tsx
|
|
1119
|
+
function MCPToggle({
|
|
1120
|
+
action,
|
|
1121
|
+
target,
|
|
1122
|
+
onComplete
|
|
1123
|
+
}) {
|
|
1124
|
+
const mcpClients = useAppState((s) => s.mcp.clients);
|
|
1125
|
+
const toggleMcpServer = useMcpToggleEnabled();
|
|
1126
|
+
const didRun = import_react5.useRef(false);
|
|
1127
|
+
import_react5.useEffect(() => {
|
|
1128
|
+
if (didRun.current)
|
|
1129
|
+
return;
|
|
1130
|
+
didRun.current = true;
|
|
1131
|
+
const isEnabling = action === "enable";
|
|
1132
|
+
const clients = mcpClients.filter((c) => c.name !== "ide");
|
|
1133
|
+
const toToggle = target === "all" ? clients.filter((c) => isEnabling ? c.type === "disabled" : c.type !== "disabled") : clients.filter((c) => c.name === target);
|
|
1134
|
+
if (toToggle.length === 0) {
|
|
1135
|
+
onComplete(target === "all" ? `All MCP servers are already ${isEnabling ? "enabled" : "disabled"}` : `MCP server "${target}" not found`);
|
|
1136
|
+
return;
|
|
1137
|
+
}
|
|
1138
|
+
for (const s of toToggle) {
|
|
1139
|
+
toggleMcpServer(s.name);
|
|
1140
|
+
}
|
|
1141
|
+
onComplete(target === "all" ? `${isEnabling ? "Enabled" : "Disabled"} ${toToggle.length} MCP server(s)` : `MCP server "${target}" ${isEnabling ? "enabled" : "disabled"}`);
|
|
1142
|
+
}, [action, target, mcpClients, toggleMcpServer, onComplete]);
|
|
1143
|
+
return null;
|
|
1144
|
+
}
|
|
1145
|
+
async function call(onDone, _context, args) {
|
|
1146
|
+
if (args) {
|
|
1147
|
+
const parts = args.trim().split(/\s+/);
|
|
1148
|
+
if (parts[0] === "no-redirect") {
|
|
1149
|
+
return /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(MCPSettings, {
|
|
1150
|
+
onComplete: onDone
|
|
1151
|
+
}, undefined, false, undefined, this);
|
|
1152
|
+
}
|
|
1153
|
+
if (parts[0] === "reconnect" && parts[1]) {
|
|
1154
|
+
return /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(MCPReconnect, {
|
|
1155
|
+
serverName: parts.slice(1).join(" "),
|
|
1156
|
+
onComplete: onDone
|
|
1157
|
+
}, undefined, false, undefined, this);
|
|
1158
|
+
}
|
|
1159
|
+
if (parts[0] === "enable" || parts[0] === "disable") {
|
|
1160
|
+
return /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(MCPToggle, {
|
|
1161
|
+
action: parts[0],
|
|
1162
|
+
target: parts.length > 1 ? parts.slice(1).join(" ") : "all",
|
|
1163
|
+
onComplete: onDone
|
|
1164
|
+
}, undefined, false, undefined, this);
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
if (process.env.USER_TYPE === "ant") {
|
|
1168
|
+
return /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(PluginSettings, {
|
|
1169
|
+
onComplete: onDone,
|
|
1170
|
+
args: "manage",
|
|
1171
|
+
showMcpRedirectMessage: true
|
|
1172
|
+
}, undefined, false, undefined, this);
|
|
1173
|
+
}
|
|
1174
|
+
return /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(MCPSettings, {
|
|
1175
|
+
onComplete: onDone
|
|
1176
|
+
}, undefined, false, undefined, this);
|
|
1177
|
+
}
|
|
1178
|
+
var import_react5, jsx_dev_runtime5;
|
|
1179
|
+
var init_mcp2 = __esm(() => {
|
|
1180
|
+
init_mcp();
|
|
1181
|
+
init_MCPReconnect();
|
|
1182
|
+
init_MCPConnectionManager();
|
|
1183
|
+
init_AppState();
|
|
1184
|
+
init_PluginSettings();
|
|
1185
|
+
import_react5 = __toESM(require_react(), 1);
|
|
1186
|
+
jsx_dev_runtime5 = __toESM(require_jsx_dev_runtime(), 1);
|
|
1187
|
+
});
|
|
1188
|
+
init_mcp2();
|
|
1189
|
+
|
|
1190
|
+
export {
|
|
1191
|
+
call
|
|
1192
|
+
};
|