@mcp-use/inspector 12.0.1-canary.0 → 12.0.1
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/dist/cdn/inspector.js +3 -3
- package/dist/cli.js +1 -1
- package/dist/server/{chunk-2EBTJWD2.js → chunk-GL7HFD5L.js} +1 -1
- package/dist/server/{chunk-UHGKWUJ7.js → chunk-QTJGNJWJ.js} +1 -1
- package/dist/server/{chunk-2OKDSR23.js → chunk-RNGMJRSH.js} +1 -1
- package/dist/server/cli.js +2 -2
- package/dist/server/index.js +3 -3
- package/dist/server/middleware.js +3 -3
- package/dist/server/server.js +2 -2
- package/dist/server/shared-static.js +2 -2
- package/dist/server/version.js +1 -1
- package/dist/web/assets/{1c-Dx4ELK7R.js → 1c-B90l8GMS.js} +1 -1
- package/dist/web/assets/{abnf-Dr1xxiZU.js → abnf-CfLq81YB.js} +1 -1
- package/dist/web/assets/{accesslog-ltfLQ7zQ.js → accesslog-B_uSZChD.js} +1 -1
- package/dist/web/assets/{actionscript-DeMv81fN.js → actionscript-CSGzL-Ca.js} +1 -1
- package/dist/web/assets/{ada-CcRu_RRv.js → ada-DYzWdzfj.js} +1 -1
- package/dist/web/assets/{angelscript-DaX3TC5q.js → angelscript-DCMqqXNh.js} +1 -1
- package/dist/web/assets/{apache-DOtDo4tK.js → apache-CExjVap4.js} +1 -1
- package/dist/web/assets/{applescript-BqlV-eaW.js → applescript-GNPG9jJc.js} +1 -1
- package/dist/web/assets/{arcade-CwuHLoAb.js → arcade-D934X_BZ.js} +1 -1
- package/dist/web/assets/{arduino-CiAwYYVT.js → arduino-CXdtpDbU.js} +1 -1
- package/dist/web/assets/{armasm-33tGqv4x.js → armasm-zGr2LLck.js} +1 -1
- package/dist/web/assets/{asciidoc-aKqB4Zfn.js → asciidoc-C0cP6cSq.js} +1 -1
- package/dist/web/assets/{aspectj-BtdcUG_A.js → aspectj-TkayAbUH.js} +1 -1
- package/dist/web/assets/{autohotkey-BYMjiGfY.js → autohotkey-CvFzINk-.js} +1 -1
- package/dist/web/assets/{autoit-Ps-O_see.js → autoit-BqQUxTCW.js} +1 -1
- package/dist/web/assets/{avrasm-DRa6Obn5.js → avrasm-BMwgBqaz.js} +1 -1
- package/dist/web/assets/{awk-BL0qDpqU.js → awk-CaLZ8vJH.js} +1 -1
- package/dist/web/assets/{axapta-CZUeJhXW.js → axapta-m7n9kA81.js} +1 -1
- package/dist/web/assets/{bash-BX0WZBhM.js → bash-BdqvJSoB.js} +1 -1
- package/dist/web/assets/{basic-TeBjHwpi.js → basic-BjdzARVy.js} +1 -1
- package/dist/web/assets/{bnf-BlU6kEo7.js → bnf-CrM-w0mj.js} +1 -1
- package/dist/web/assets/{brainfuck-DWrBFGTW.js → brainfuck-TqJF_yAz.js} +1 -1
- package/dist/web/assets/{c-ChD2LLV9.js → c-Bl-dCLGg.js} +1 -1
- package/dist/web/assets/{c-like-CPUC5Juh.js → c-like-CcfGc3Vh.js} +1 -1
- package/dist/web/assets/{cal-1LN_qM9H.js → cal-BTL9G47k.js} +1 -1
- package/dist/web/assets/{capnproto-m-I0RhcR.js → capnproto-arncU1X7.js} +1 -1
- package/dist/web/assets/{ceylon-DVW6kWGU.js → ceylon-BkZpmvEs.js} +1 -1
- package/dist/web/assets/{clean-CHvaT-WM.js → clean-Bf1o3tE_.js} +1 -1
- package/dist/web/assets/{clojure-GcGf5Xkl.js → clojure-ByME8VnH.js} +1 -1
- package/dist/web/assets/{clojure-repl-C5KhIyo7.js → clojure-repl-C2KWp_5D.js} +1 -1
- package/dist/web/assets/{cmake-ujuzjD4x.js → cmake-DAJHSRIJ.js} +1 -1
- package/dist/web/assets/{coffeescript-CMsjgSiM.js → coffeescript-CZuN8Jty.js} +1 -1
- package/dist/web/assets/{coq-EM4fYupj.js → coq-5-3YuwaR.js} +1 -1
- package/dist/web/assets/{core-DEUSn2QX.js → core-Db8jSqpE.js} +1 -1
- package/dist/web/assets/{cos-TUdHgLUJ.js → cos-Dynb3mcK.js} +1 -1
- package/dist/web/assets/{cpp-BA3x95-Y.js → cpp-CuslaAZ2.js} +1 -1
- package/dist/web/assets/{crmsh-BS2FyEjM.js → crmsh-DURJmJyV.js} +1 -1
- package/dist/web/assets/{crystal-BIkCvaM1.js → crystal-Br-s5JJE.js} +1 -1
- package/dist/web/assets/{csharp-Dt_awXL9.js → csharp-CNI-Dcgi.js} +1 -1
- package/dist/web/assets/{csp-BL9sB6cu.js → csp-_jHyV8OD.js} +1 -1
- package/dist/web/assets/{css-KR9QMGUx.js → css-C68lVBxa.js} +1 -1
- package/dist/web/assets/{d-BWrCD9YR.js → d-DT5hGqot.js} +1 -1
- package/dist/web/assets/{dart-_RTUlkJ9.js → dart-EkCTrA78.js} +1 -1
- package/dist/web/assets/{delphi-BUUPt4Ja.js → delphi-Dncxw4FO.js} +1 -1
- package/dist/web/assets/{diff-wBXdYxQy.js → diff-C2VfAX3M.js} +1 -1
- package/dist/web/assets/{django-DqZFFVwK.js → django-BW0k_xe6.js} +1 -1
- package/dist/web/assets/{dns-CnpCbSjt.js → dns-uqAHp_f4.js} +1 -1
- package/dist/web/assets/{dockerfile-BOURBpOm.js → dockerfile-eAXnresN.js} +1 -1
- package/dist/web/assets/{dos-DAZGvad5.js → dos-D6K3fK5w.js} +1 -1
- package/dist/web/assets/{dsconfig-BVB5O3cM.js → dsconfig-DaWw4jy9.js} +1 -1
- package/dist/web/assets/{dts-OifsAXNV.js → dts-DsCjet0N.js} +1 -1
- package/dist/web/assets/{dust-D5Dcq6jo.js → dust-Bloh9edJ.js} +1 -1
- package/dist/web/assets/{ebnf-BBfPDS_C.js → ebnf-BTl_iHmW.js} +1 -1
- package/dist/web/assets/{elixir-INXqnam8.js → elixir-ciJD7phN.js} +1 -1
- package/dist/web/assets/{elm-D_3Ft2cH.js → elm-XoYwwX1p.js} +1 -1
- package/dist/web/assets/{erb-CQzHSdcS.js → erb-897Z5bA7.js} +1 -1
- package/dist/web/assets/{erlang-D1YJZkyK.js → erlang-DCn-2L9g.js} +1 -1
- package/dist/web/assets/{erlang-repl-gcBSuefW.js → erlang-repl-RuPO2JZx.js} +1 -1
- package/dist/web/assets/{excel-BxYAFP3X.js → excel-XosCJ92t.js} +1 -1
- package/dist/web/assets/{fix-Di2lrlgN.js → fix-D5eJRFNn.js} +1 -1
- package/dist/web/assets/{flix-CnH-AcqU.js → flix-CQPysfQv.js} +1 -1
- package/dist/web/assets/{fortran-bnz7eVnG.js → fortran-BclJBvZ4.js} +1 -1
- package/dist/web/assets/{fsharp-DbZS8H-q.js → fsharp-Byq5CaOm.js} +1 -1
- package/dist/web/assets/{gams-Dv8pmL8p.js → gams-DARM_5Vn.js} +1 -1
- package/dist/web/assets/{gauss-BCyqEwJM.js → gauss-BMkyJkAS.js} +1 -1
- package/dist/web/assets/{gcode-D4PDpgSJ.js → gcode-wLnPrNPv.js} +1 -1
- package/dist/web/assets/{gherkin-CPNSMSqj.js → gherkin-DArzFMi2.js} +1 -1
- package/dist/web/assets/{glsl-Do0DxX9K.js → glsl-autH24hv.js} +1 -1
- package/dist/web/assets/{gml-DVLiiZfc.js → gml-qb-FWjeb.js} +1 -1
- package/dist/web/assets/{go-7eZVStkG.js → go-CO7GhOWC.js} +1 -1
- package/dist/web/assets/{golo-CBmUnnhD.js → golo-CAg0I7Rm.js} +1 -1
- package/dist/web/assets/{gradle-D1-6dGA_.js → gradle-Dim4jaqh.js} +1 -1
- package/dist/web/assets/{groovy-C0Fq2uMS.js → groovy-BKytOu8f.js} +1 -1
- package/dist/web/assets/{haml-Cti7gqyg.js → haml-Dq7wSvzR.js} +1 -1
- package/dist/web/assets/{handlebars-BirxE8Xl.js → handlebars-ClNB9U5U.js} +1 -1
- package/dist/web/assets/{haskell-EbK6E25-.js → haskell-C34z-3-k.js} +1 -1
- package/dist/web/assets/{haxe-BZYh_oFl.js → haxe-BvCRMOwh.js} +1 -1
- package/dist/web/assets/{hsp-DeoDSuiv.js → hsp-C8IhN6jG.js} +1 -1
- package/dist/web/assets/{htmlbars-DI7O6F29.js → htmlbars-tHdG8ugR.js} +1 -1
- package/dist/web/assets/{http-C0sY1iWc.js → http-B9D-rWIH.js} +1 -1
- package/dist/web/assets/{hy-CIk5sEem.js → hy-BNm4icHi.js} +1 -1
- package/dist/web/assets/{index-DFBDRXli.js → index-CTZiJU6Z.js} +4 -4
- package/dist/web/assets/{inform7-DZBKh5UK.js → inform7-VM5TAich.js} +1 -1
- package/dist/web/assets/{ini-DQoXZGOi.js → ini-CMC6R7Y-.js} +1 -1
- package/dist/web/assets/{irpf90-Cbjt0ZNd.js → irpf90-CGIrqq4S.js} +1 -1
- package/dist/web/assets/{isbl-ZtrQkPO2.js → isbl-UXGbjkda.js} +1 -1
- package/dist/web/assets/{java-DpN-PxRJ.js → java-DC6M_rIK.js} +1 -1
- package/dist/web/assets/{javascript-gcBRQquQ.js → javascript-B-O6WjuJ.js} +1 -1
- package/dist/web/assets/{jboss-cli-C53DfE5f.js → jboss-cli-BARcJqpn.js} +1 -1
- package/dist/web/assets/{json-BeEhMDGg.js → json-BbS26rfR.js} +1 -1
- package/dist/web/assets/{julia-DkCYe91H.js → julia-D9F2nnmZ.js} +1 -1
- package/dist/web/assets/{julia-repl-CBvzyYCC.js → julia-repl-C4TgdHRB.js} +1 -1
- package/dist/web/assets/{kotlin-tewRCLHl.js → kotlin-C6ftuKhX.js} +1 -1
- package/dist/web/assets/{lasso-BuXaH1Cz.js → lasso-D2BCm4x1.js} +1 -1
- package/dist/web/assets/{latex-DeX09lqF.js → latex-0a5WUWA1.js} +1 -1
- package/dist/web/assets/{ldif-3lLN9yx8.js → ldif-DXIrXdMd.js} +1 -1
- package/dist/web/assets/{leaf-P_RVjDuK.js → leaf-bnsgxxVM.js} +1 -1
- package/dist/web/assets/{less-CVPh26b8.js → less-Dqo0wchs.js} +1 -1
- package/dist/web/assets/{lisp-fdA8tQ93.js → lisp-DPcVUsd_.js} +1 -1
- package/dist/web/assets/{livecodeserver-D13MVnB6.js → livecodeserver-CgO1rhmY.js} +1 -1
- package/dist/web/assets/{livescript-DIBIQwnL.js → livescript-DeQbDg5l.js} +1 -1
- package/dist/web/assets/{llvm-BpI0ArIa.js → llvm-DZn1s-EO.js} +1 -1
- package/dist/web/assets/{lsl-rAKP9d3Y.js → lsl-Dgha63XC.js} +1 -1
- package/dist/web/assets/{lua-CiC7oTL4.js → lua-BuSWbF_x.js} +1 -1
- package/dist/web/assets/{makefile-CpHExib9.js → makefile-BHx7IrGs.js} +1 -1
- package/dist/web/assets/{markdown-BnOmMMQM.js → markdown-6oxJ36qK.js} +1 -1
- package/dist/web/assets/{mathematica-Bk_jcVP0.js → mathematica-5kR0YBGu.js} +1 -1
- package/dist/web/assets/{matlab-qzTsGRbb.js → matlab-C3Tn1mom.js} +1 -1
- package/dist/web/assets/{maxima-DCl4inY8.js → maxima-CFVM6gzp.js} +1 -1
- package/dist/web/assets/{mel-CZJ7Kq_2.js → mel-2uHUMP6W.js} +1 -1
- package/dist/web/assets/{mercury-C6wrj8aa.js → mercury-DLb2uqZk.js} +1 -1
- package/dist/web/assets/{mipsasm-Bmf971XM.js → mipsasm-CCWH5I90.js} +1 -1
- package/dist/web/assets/{mizar-CPVP6RUl.js → mizar-973H9JDM.js} +1 -1
- package/dist/web/assets/{mojolicious-BYnCoBN-.js → mojolicious-DV21xhDJ.js} +1 -1
- package/dist/web/assets/{monkey-BRjmOnCu.js → monkey-cV5Xk9fa.js} +1 -1
- package/dist/web/assets/{moonscript-DVz-51fP.js → moonscript-BmBg6T_b.js} +1 -1
- package/dist/web/assets/{n1ql-CoQ61mdz.js → n1ql-Ckyb_1_w.js} +1 -1
- package/dist/web/assets/{nginx-BatiPDD8.js → nginx-DoFHLib6.js} +1 -1
- package/dist/web/assets/{nim-BfpeWLRy.js → nim-xxQpNMU1.js} +1 -1
- package/dist/web/assets/{nix-DiEgpruG.js → nix-Rpc7XizF.js} +1 -1
- package/dist/web/assets/{node-repl-Bx8JUgAM.js → node-repl-Berx0Oar.js} +1 -1
- package/dist/web/assets/{nsis-BymSCm1j.js → nsis-amgxb3hX.js} +1 -1
- package/dist/web/assets/{objectivec-BGkBVReM.js → objectivec-BzP3z2TX.js} +1 -1
- package/dist/web/assets/{ocaml-w12Jk3fn.js → ocaml-DJPvS4rg.js} +1 -1
- package/dist/web/assets/{openscad-DSEdidgS.js → openscad-D3xNO0sC.js} +1 -1
- package/dist/web/assets/{oxygene-BRA0isao.js → oxygene-BzOEUXlT.js} +1 -1
- package/dist/web/assets/{parser3-hjMiYg-q.js → parser3-BmMIKT6m.js} +1 -1
- package/dist/web/assets/{perl-DUdHp6Qp.js → perl-Bh-M14lL.js} +1 -1
- package/dist/web/assets/{pf-9PFJga4U.js → pf-b2tbsfUy.js} +1 -1
- package/dist/web/assets/{pgsql-sBV1j5j8.js → pgsql-CiExya-K.js} +1 -1
- package/dist/web/assets/{php-C-avw1mv.js → php-Or3GOugN.js} +1 -1
- package/dist/web/assets/{php-template-DNmkTOaf.js → php-template-BqF3zm8q.js} +1 -1
- package/dist/web/assets/plaintext-DIMga5Zf.js +1 -0
- package/dist/web/assets/{pony-DMsSI3l-.js → pony-DZ_VTBcL.js} +1 -1
- package/dist/web/assets/{powershell-BC5F8j3h.js → powershell-mxemlIfe.js} +1 -1
- package/dist/web/assets/{processing-C6cuspIW.js → processing-zuGD7UGe.js} +1 -1
- package/dist/web/assets/{profile-KNAYC0IA.js → profile-D14vOQ-C.js} +1 -1
- package/dist/web/assets/{prolog-qjulfDGc.js → prolog-BjcUKW5Q.js} +1 -1
- package/dist/web/assets/{properties-W9YAyEqB.js → properties-D9BPVDeE.js} +1 -1
- package/dist/web/assets/{protobuf-CxVpsR7E.js → protobuf-cAa05SWg.js} +1 -1
- package/dist/web/assets/{puppet-xAVDzfMS.js → puppet-CQKxOvJ9.js} +1 -1
- package/dist/web/assets/{purebasic-Bn2u8dln.js → purebasic-B3N46eKS.js} +1 -1
- package/dist/web/assets/{python-BwUYawwq.js → python-CXY-3_oJ.js} +1 -1
- package/dist/web/assets/{python-repl-C5arQlsI.js → python-repl-5ME8f0Fo.js} +1 -1
- package/dist/web/assets/{q-D2RK5BO8.js → q-BLtqKcpF.js} +1 -1
- package/dist/web/assets/{qml-CiNE0t4L.js → qml-CezPczjW.js} +1 -1
- package/dist/web/assets/{r-BxQZREg0.js → r-CMTrHM7q.js} +1 -1
- package/dist/web/assets/{reasonml-DYzavTKu.js → reasonml-Bkx2kzx2.js} +1 -1
- package/dist/web/assets/{rib-CHw8kS-E.js → rib-JYqTQaVY.js} +1 -1
- package/dist/web/assets/{roboconf-DGB8ho1k.js → roboconf-DaABAYAn.js} +1 -1
- package/dist/web/assets/{routeros-yeUGHEHi.js → routeros-ga5z1ozq.js} +1 -1
- package/dist/web/assets/rpc-logger-TPNV75J4-F1c4yREX.js +1 -0
- package/dist/web/assets/{rsl-t94pfRxW.js → rsl-wxK17_v9.js} +1 -1
- package/dist/web/assets/{ruby-IW81jD-M.js → ruby-BTBErAuk.js} +1 -1
- package/dist/web/assets/{ruleslanguage-DPon6wnL.js → ruleslanguage-BdnT3Vdg.js} +1 -1
- package/dist/web/assets/{rust-CHVG70QY.js → rust-D3NVsYOO.js} +1 -1
- package/dist/web/assets/{sas-HW6aEos_.js → sas-DWTJmSwY.js} +1 -1
- package/dist/web/assets/{scala-CuwMKe4Q.js → scala-ChIVU_Kg.js} +1 -1
- package/dist/web/assets/{scheme-Bv-sz2hT.js → scheme-Dwgk4VxI.js} +1 -1
- package/dist/web/assets/{scilab-BTdkW7MU.js → scilab-awdc4fDw.js} +1 -1
- package/dist/web/assets/{scss-DfQ97Zog.js → scss-Jq5DwcV7.js} +1 -1
- package/dist/web/assets/{shell-CQVcEQcJ.js → shell-ChPxhaRQ.js} +1 -1
- package/dist/web/assets/{smali-BaALnMWn.js → smali-BVdbrfs0.js} +1 -1
- package/dist/web/assets/{smalltalk-gCsmcx60.js → smalltalk-CXJVpFBV.js} +1 -1
- package/dist/web/assets/{sml-1jX7UZNp.js → sml-4Lgdge9S.js} +1 -1
- package/dist/web/assets/{sqf-DYcq2vJp.js → sqf-Cun8qWoQ.js} +1 -1
- package/dist/web/assets/{sql-DjBYGR_n.js → sql-C9XzopqE.js} +1 -1
- package/dist/web/assets/{sql_more-DNfvJjDJ.js → sql_more-D7_0a0jR.js} +1 -1
- package/dist/web/assets/{stan-Xk9k0HXm.js → stan-C_rKb-hS.js} +1 -1
- package/dist/web/assets/{stata-BQQmdU-7.js → stata-DVllcqO0.js} +1 -1
- package/dist/web/assets/{step21-C_TQyuAo.js → step21-BC-gqw8t.js} +1 -1
- package/dist/web/assets/{stylus-DC8DWqu2.js → stylus-BJZg66vy.js} +1 -1
- package/dist/web/assets/{subunit-CiAE7LHH.js → subunit-CAqGmHZg.js} +1 -1
- package/dist/web/assets/{swift-BMh1mq5J.js → swift-CC47VuMb.js} +1 -1
- package/dist/web/assets/{taggerscript-ChXhpPk7.js → taggerscript-DP_HcXCL.js} +1 -1
- package/dist/web/assets/{tap-CJ5zbeDC.js → tap-cLNgCo7Q.js} +1 -1
- package/dist/web/assets/{tcl-BDJFeipW.js → tcl-CnwSv5wm.js} +1 -1
- package/dist/web/assets/{thrift-CZmZM3HT.js → thrift-CAg5C826.js} +1 -1
- package/dist/web/assets/{tp-DthA3jxu.js → tp-N3WJtJVg.js} +1 -1
- package/dist/web/assets/{twig-BEWVqyaT.js → twig-2outt6Fv.js} +1 -1
- package/dist/web/assets/{typescript-Dhsy2r2b.js → typescript-Bu6bZaXP.js} +1 -1
- package/dist/web/assets/{vala-C7MXswjC.js → vala-CAuyoNr_.js} +1 -1
- package/dist/web/assets/{vbnet-rENqySZ5.js → vbnet-BBaye1u4.js} +1 -1
- package/dist/web/assets/{vbscript-CP6OUMca.js → vbscript-Dh3X-oBa.js} +1 -1
- package/dist/web/assets/{vbscript-html-B8lKLOdp.js → vbscript-html-DN3Wliib.js} +1 -1
- package/dist/web/assets/{verilog-BPJJyQKF.js → verilog-DqTepx5i.js} +1 -1
- package/dist/web/assets/{vhdl-DwU5IEbv.js → vhdl-clYjaBSy.js} +1 -1
- package/dist/web/assets/{vim-DuLmJ3W0.js → vim-BdXk35Od.js} +1 -1
- package/dist/web/assets/{x86asm-BZ6mQBhw.js → x86asm-CvBLQW6P.js} +1 -1
- package/dist/web/assets/{xl-B6oe5FLF.js → xl-fsTMcfdm.js} +1 -1
- package/dist/web/assets/{xml-BHUu2S2j.js → xml-DcRu9HgU.js} +1 -1
- package/dist/web/assets/{xquery-DltBHu-6.js → xquery-BnunYilF.js} +1 -1
- package/dist/web/assets/{yaml-DaXd8Q0X.js → yaml-CcL0UmW-.js} +1 -1
- package/dist/web/assets/{zephir-8mtfppXj.js → zephir-Z2k9p67F.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +2 -2
- package/dist/server/chunk-7MJKC3JI.js +0 -164
- package/dist/server/chunk-FK3HQLBD.js +0 -322
- package/dist/server/chunk-S2PS2K3E.js +0 -71
- package/dist/web/assets/plaintext-BaP0k3PW.js +0 -1
- package/dist/web/assets/rpc-logger-TPNV75J4-Bm8Prgf2.js +0 -1
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getInspectorVersion
|
|
3
|
-
} from "./chunk-UHGKWUJ7.js";
|
|
4
|
-
import {
|
|
5
|
-
checkClientFiles,
|
|
6
|
-
getClientDistPath,
|
|
7
|
-
getContentType
|
|
8
|
-
} from "./chunk-IDMHJUEM.js";
|
|
9
|
-
|
|
10
|
-
// src/server/shared-static.ts
|
|
11
|
-
import { existsSync, readFileSync } from "fs";
|
|
12
|
-
import { join } from "path";
|
|
13
|
-
var USE_CDN = process.env.INSPECTOR_USE_CDN === "true";
|
|
14
|
-
var INSPECTOR_VERSION = getInspectorVersion();
|
|
15
|
-
var CDN_BASE = process.env.INSPECTOR_CDN_BASE ?? "https://inspector-cdn.mcp-use.com";
|
|
16
|
-
var CDN_JS_URL = `${CDN_BASE}/inspector@${INSPECTOR_VERSION}.js`;
|
|
17
|
-
var CDN_CSS_URL = `${CDN_BASE}/inspector@${INSPECTOR_VERSION}.css`;
|
|
18
|
-
function injectRuntimeConfig(html, config) {
|
|
19
|
-
if (!config) return html;
|
|
20
|
-
const scripts = [];
|
|
21
|
-
if (config.devMode) {
|
|
22
|
-
scripts.push(`<script>window.__MCP_DEV_MODE__ = true;</script>`);
|
|
23
|
-
}
|
|
24
|
-
if (config.sandboxOrigin) {
|
|
25
|
-
scripts.push(
|
|
26
|
-
`<script>window.__MCP_SANDBOX_ORIGIN__ = ${JSON.stringify(config.sandboxOrigin)};</script>`
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
if (config.proxyUrl !== void 0) {
|
|
30
|
-
scripts.push(
|
|
31
|
-
`<script>window.__MCP_PROXY_URL__ = ${JSON.stringify(config.proxyUrl)};</script>`
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
if (config.inspectorMode) {
|
|
35
|
-
scripts.push(
|
|
36
|
-
`<script>window.__MCP_INSPECTOR_MODE__ = ${JSON.stringify(config.inspectorMode)};</script>`
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
if (config.manufactChatUrl) {
|
|
40
|
-
scripts.push(
|
|
41
|
-
`<script>window.__MANUFACT_CHAT_URL__ = ${JSON.stringify(config.manufactChatUrl)};</script>`
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
if (config.disableTelemetry) {
|
|
45
|
-
scripts.push(
|
|
46
|
-
`<script>window.__MCP_USE_ANONYMIZED_TELEMETRY__ = false;</script>`
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
if (scripts.length === 0) return html;
|
|
50
|
-
const injection = scripts.join("\n ");
|
|
51
|
-
return html.replace("</head>", ` ${injection}
|
|
52
|
-
</head>`);
|
|
53
|
-
}
|
|
54
|
-
function generateCdnShellHtml(config) {
|
|
55
|
-
const runtimeScripts = (() => {
|
|
56
|
-
if (!config) return "";
|
|
57
|
-
const scripts = [];
|
|
58
|
-
if (config.devMode) {
|
|
59
|
-
scripts.push(`<script>window.__MCP_DEV_MODE__ = true;</script>`);
|
|
60
|
-
}
|
|
61
|
-
if (config.sandboxOrigin) {
|
|
62
|
-
scripts.push(
|
|
63
|
-
`<script>window.__MCP_SANDBOX_ORIGIN__ = ${JSON.stringify(config.sandboxOrigin)};</script>`
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
if (config.proxyUrl !== void 0) {
|
|
67
|
-
scripts.push(
|
|
68
|
-
`<script>window.__MCP_PROXY_URL__ = ${JSON.stringify(config.proxyUrl)};</script>`
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
if (config.inspectorMode) {
|
|
72
|
-
scripts.push(
|
|
73
|
-
`<script>window.__MCP_INSPECTOR_MODE__ = ${JSON.stringify(config.inspectorMode)};</script>`
|
|
74
|
-
);
|
|
75
|
-
}
|
|
76
|
-
if (config.manufactChatUrl) {
|
|
77
|
-
scripts.push(
|
|
78
|
-
`<script>window.__MANUFACT_CHAT_URL__ = ${JSON.stringify(config.manufactChatUrl)};</script>`
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
if (config.disableTelemetry) {
|
|
82
|
-
scripts.push(
|
|
83
|
-
`<script>window.__MCP_USE_ANONYMIZED_TELEMETRY__ = false;try{localStorage.setItem("MCP_USE_ANONYMIZED_TELEMETRY","false");}catch(e){}</script>`
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
return scripts.join("\n ");
|
|
87
|
-
})();
|
|
88
|
-
return `<!doctype html>
|
|
89
|
-
<html lang="en">
|
|
90
|
-
<head>
|
|
91
|
-
<meta charset="UTF-8" />
|
|
92
|
-
<link
|
|
93
|
-
rel="icon"
|
|
94
|
-
type="image/svg+xml"
|
|
95
|
-
href="${CDN_BASE}/favicon-black.svg"
|
|
96
|
-
/>
|
|
97
|
-
<link
|
|
98
|
-
rel="icon"
|
|
99
|
-
type="image/svg+xml"
|
|
100
|
-
href="${CDN_BASE}/favicon-white.svg"
|
|
101
|
-
media="(prefers-color-scheme: dark)"
|
|
102
|
-
/>
|
|
103
|
-
<link
|
|
104
|
-
rel="icon"
|
|
105
|
-
type="image/svg+xml"
|
|
106
|
-
href="${CDN_BASE}/favicon-black.svg"
|
|
107
|
-
media="(prefers-color-scheme: light)"
|
|
108
|
-
/>
|
|
109
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
110
|
-
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
111
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
112
|
-
<link
|
|
113
|
-
href="https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap"
|
|
114
|
-
rel="stylesheet"
|
|
115
|
-
/>
|
|
116
|
-
<link rel="stylesheet" href="${CDN_CSS_URL}" />
|
|
117
|
-
<title>Inspector | mcp-use</title>
|
|
118
|
-
<meta
|
|
119
|
-
name="description"
|
|
120
|
-
content="Free, open-source MCP Inspector by mcp-use. Connect to any MCP server, test tools, prompts, and resources, inspect RPC logs, and debug MCP apps \u2014 all in your browser."
|
|
121
|
-
/>
|
|
122
|
-
<meta property="og:type" content="website" />
|
|
123
|
-
<meta property="og:site_name" content="mcp-use" />
|
|
124
|
-
<meta property="og:url" content="https://inspector.mcp-use.com" />
|
|
125
|
-
<meta property="og:title" content="MCP Inspector \u2014 Test & Debug MCP Servers | mcp-use" />
|
|
126
|
-
<meta
|
|
127
|
-
property="og:description"
|
|
128
|
-
content="Free, open-source MCP Inspector by mcp-use. Connect to any MCP server, test tools, prompts, and resources, inspect RPC logs, and debug MCP apps \u2014 all in your browser."
|
|
129
|
-
/>
|
|
130
|
-
<meta
|
|
131
|
-
property="og:image"
|
|
132
|
-
content="https://inspector-cdn.mcp-use.com/inspector-cover.png"
|
|
133
|
-
/>
|
|
134
|
-
<meta property="og:image:alt" content="mcp-use MCP Inspector \u2014 test and debug MCP servers" />
|
|
135
|
-
<meta name="twitter:card" content="summary_large_image" />
|
|
136
|
-
<meta name="twitter:site" content="@mcpuse" />
|
|
137
|
-
<meta name="twitter:creator" content="@mcpuse" />
|
|
138
|
-
<meta name="twitter:title" content="MCP Inspector \u2014 Test & Debug MCP Servers | mcp-use" />
|
|
139
|
-
<meta
|
|
140
|
-
name="twitter:description"
|
|
141
|
-
content="Free, open-source MCP Inspector by mcp-use. Connect to any MCP server, test tools, prompts, and resources, inspect RPC logs, and debug MCP apps \u2014 all in your browser."
|
|
142
|
-
/>
|
|
143
|
-
<meta
|
|
144
|
-
name="twitter:image"
|
|
145
|
-
content="https://inspector-cdn.mcp-use.com/inspector-cover.png"
|
|
146
|
-
/>
|
|
147
|
-
<meta name="twitter:image:alt" content="mcp-use MCP Inspector \u2014 test and debug MCP servers" />
|
|
148
|
-
<script>window.__INSPECTOR_VERSION__ = ${JSON.stringify(INSPECTOR_VERSION)};</script>
|
|
149
|
-
${runtimeScripts}
|
|
150
|
-
</head>
|
|
151
|
-
<body>
|
|
152
|
-
<script>
|
|
153
|
-
if (typeof window !== "undefined" && typeof window.process === "undefined") {
|
|
154
|
-
window.process = {
|
|
155
|
-
env: {},
|
|
156
|
-
platform: "browser",
|
|
157
|
-
browser: true,
|
|
158
|
-
version: "v18.0.0",
|
|
159
|
-
versions: { node: "18.0.0" },
|
|
160
|
-
cwd: () => "/",
|
|
161
|
-
nextTick: (fn, ...args) => queueMicrotask(() => fn(...args)),
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
</script>
|
|
165
|
-
<div id="root"></div>
|
|
166
|
-
<script type="module" src="${CDN_JS_URL}"></script>
|
|
167
|
-
</body>
|
|
168
|
-
</html>`;
|
|
169
|
-
}
|
|
170
|
-
function registerStaticRoutes(app, clientDistPath, runtimeConfig) {
|
|
171
|
-
const effectiveConfig = {
|
|
172
|
-
...runtimeConfig,
|
|
173
|
-
proxyUrl: runtimeConfig?.proxyUrl !== void 0 ? runtimeConfig.proxyUrl : "/inspector/api/proxy",
|
|
174
|
-
disableTelemetry: runtimeConfig?.disableTelemetry ?? process.env.MCP_USE_ANONYMIZED_TELEMETRY === "false"
|
|
175
|
-
};
|
|
176
|
-
if (USE_CDN) {
|
|
177
|
-
const serveShell = (c) => c.html(generateCdnShellHtml(effectiveConfig));
|
|
178
|
-
app.get("/", (c) => {
|
|
179
|
-
const url = new URL(c.req.url);
|
|
180
|
-
return c.redirect(`/inspector${url.search}`);
|
|
181
|
-
});
|
|
182
|
-
app.get("/inspector", serveShell);
|
|
183
|
-
app.get("/inspector/*", serveShell);
|
|
184
|
-
app.post("/inspector/*", serveShell);
|
|
185
|
-
app.get("*", serveShell);
|
|
186
|
-
return;
|
|
187
|
-
}
|
|
188
|
-
const distPath = clientDistPath || getClientDistPath();
|
|
189
|
-
if (!checkClientFiles(distPath)) {
|
|
190
|
-
console.warn(`\u26A0\uFE0F MCP Inspector client files not found at ${distPath}`);
|
|
191
|
-
console.warn(
|
|
192
|
-
` Run 'yarn build' in the inspector package to build the UI`
|
|
193
|
-
);
|
|
194
|
-
app.get("*", (c) => {
|
|
195
|
-
return c.html(`
|
|
196
|
-
<!DOCTYPE html>
|
|
197
|
-
<html>
|
|
198
|
-
<head>
|
|
199
|
-
<title>MCP Inspector</title>
|
|
200
|
-
</head>
|
|
201
|
-
<body>
|
|
202
|
-
<h1>MCP Inspector</h1>
|
|
203
|
-
<p>Client files not found. Please run 'yarn build' to build the UI.</p>
|
|
204
|
-
</body>
|
|
205
|
-
</html>
|
|
206
|
-
`);
|
|
207
|
-
});
|
|
208
|
-
return;
|
|
209
|
-
}
|
|
210
|
-
app.get("/inspector/assets/*", (c) => {
|
|
211
|
-
const path = c.req.path.replace("/inspector/assets/", "assets/");
|
|
212
|
-
const fullPath = join(distPath, path);
|
|
213
|
-
if (existsSync(fullPath)) {
|
|
214
|
-
const content = readFileSync(fullPath);
|
|
215
|
-
const contentType = getContentType(fullPath);
|
|
216
|
-
c.header("Content-Type", contentType);
|
|
217
|
-
return c.body(content);
|
|
218
|
-
}
|
|
219
|
-
return c.notFound();
|
|
220
|
-
});
|
|
221
|
-
app.get("/", (c) => {
|
|
222
|
-
const url = new URL(c.req.url);
|
|
223
|
-
const queryString = url.search;
|
|
224
|
-
return c.redirect(`/inspector${queryString}`);
|
|
225
|
-
});
|
|
226
|
-
const serveIndex = (c) => {
|
|
227
|
-
const indexPath = join(distPath, "index.html");
|
|
228
|
-
if (existsSync(indexPath)) {
|
|
229
|
-
const content = injectRuntimeConfig(
|
|
230
|
-
readFileSync(indexPath, "utf-8"),
|
|
231
|
-
effectiveConfig
|
|
232
|
-
);
|
|
233
|
-
return c.html(content);
|
|
234
|
-
}
|
|
235
|
-
return c.html(`
|
|
236
|
-
<!DOCTYPE html>
|
|
237
|
-
<html>
|
|
238
|
-
<head>
|
|
239
|
-
<title>MCP Inspector</title>
|
|
240
|
-
</head>
|
|
241
|
-
<body>
|
|
242
|
-
<h1>MCP Inspector</h1>
|
|
243
|
-
<p>Client files not found. Please run 'yarn build' to build the UI.</p>
|
|
244
|
-
</body>
|
|
245
|
-
</html>
|
|
246
|
-
`);
|
|
247
|
-
};
|
|
248
|
-
app.get("/inspector", serveIndex);
|
|
249
|
-
app.get("/inspector/*", serveIndex);
|
|
250
|
-
app.post("/inspector/*", serveIndex);
|
|
251
|
-
app.get("*", (c) => {
|
|
252
|
-
const indexPath = join(distPath, "index.html");
|
|
253
|
-
if (existsSync(indexPath)) {
|
|
254
|
-
const content = injectRuntimeConfig(
|
|
255
|
-
readFileSync(indexPath, "utf-8"),
|
|
256
|
-
effectiveConfig
|
|
257
|
-
);
|
|
258
|
-
return c.html(content);
|
|
259
|
-
}
|
|
260
|
-
return c.html(`
|
|
261
|
-
<!DOCTYPE html>
|
|
262
|
-
<html>
|
|
263
|
-
<head>
|
|
264
|
-
<title>MCP Inspector</title>
|
|
265
|
-
</head>
|
|
266
|
-
<body>
|
|
267
|
-
<h1>MCP Inspector</h1>
|
|
268
|
-
<p>Client files not found. Please run 'yarn build' to build the UI.</p>
|
|
269
|
-
</body>
|
|
270
|
-
</html>
|
|
271
|
-
`);
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
function registerStaticRoutesWithDevProxy(app, clientDistPath, runtimeConfig) {
|
|
275
|
-
const distPath = clientDistPath || getClientDistPath();
|
|
276
|
-
const isDev = process.env.NODE_ENV === "development" || process.env.VITE_DEV === "true";
|
|
277
|
-
if (isDev) {
|
|
278
|
-
console.warn(
|
|
279
|
-
"\u{1F527} Development mode: Proxying client requests to Vite dev server"
|
|
280
|
-
);
|
|
281
|
-
app.get("*", async (c) => {
|
|
282
|
-
const path = c.req.path;
|
|
283
|
-
if (path.startsWith("/api/") || path.startsWith("/inspector/api/") || path === "/inspector/config.json") {
|
|
284
|
-
return c.notFound();
|
|
285
|
-
}
|
|
286
|
-
try {
|
|
287
|
-
const viteUrl = `http://localhost:3000${path}`;
|
|
288
|
-
const response = await fetch(viteUrl, {
|
|
289
|
-
signal: AbortSignal.timeout(1e3)
|
|
290
|
-
});
|
|
291
|
-
if (response.ok) {
|
|
292
|
-
const content = await response.text();
|
|
293
|
-
const contentType = response.headers.get("content-type") || "text/html";
|
|
294
|
-
c.header("Content-Type", contentType);
|
|
295
|
-
return c.html(content);
|
|
296
|
-
}
|
|
297
|
-
} catch (error) {
|
|
298
|
-
console.warn(`Failed to proxy to Vite dev server: ${error}`);
|
|
299
|
-
}
|
|
300
|
-
return c.html(`
|
|
301
|
-
<!DOCTYPE html>
|
|
302
|
-
<html>
|
|
303
|
-
<head>
|
|
304
|
-
<title>MCP Inspector - Development</title>
|
|
305
|
-
</head>
|
|
306
|
-
<body>
|
|
307
|
-
<h1>MCP Inspector - Development Mode</h1>
|
|
308
|
-
<p>Vite dev server is not running. Please start it with:</p>
|
|
309
|
-
<pre>yarn dev:client</pre>
|
|
310
|
-
</body>
|
|
311
|
-
</html>
|
|
312
|
-
`);
|
|
313
|
-
});
|
|
314
|
-
} else {
|
|
315
|
-
registerStaticRoutes(app, distPath, runtimeConfig);
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
export {
|
|
320
|
-
registerStaticRoutes,
|
|
321
|
-
registerStaticRoutesWithDevProxy
|
|
322
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
registerInspectorRoutes
|
|
3
|
-
} from "./chunk-A4VH7AIP.js";
|
|
4
|
-
import {
|
|
5
|
-
registerStaticRoutes
|
|
6
|
-
} from "./chunk-2OKDSR23.js";
|
|
7
|
-
import {
|
|
8
|
-
checkClientFiles,
|
|
9
|
-
getClientDistPath
|
|
10
|
-
} from "./chunk-IDMHJUEM.js";
|
|
11
|
-
|
|
12
|
-
// src/server/middleware.ts
|
|
13
|
-
import { Hono } from "hono";
|
|
14
|
-
function mountInspector(app, config) {
|
|
15
|
-
const clientDistPath = getClientDistPath();
|
|
16
|
-
if (!checkClientFiles(clientDistPath)) {
|
|
17
|
-
console.warn(
|
|
18
|
-
`\u26A0\uFE0F MCP Inspector client files not found at ${clientDistPath}`
|
|
19
|
-
);
|
|
20
|
-
console.warn(
|
|
21
|
-
` Run 'yarn build' in the inspector package to build the UI`
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
const runtimeConfig = {
|
|
25
|
-
devMode: config?.devMode,
|
|
26
|
-
sandboxOrigin: config?.sandboxOrigin,
|
|
27
|
-
inspectorMode: "embedded"
|
|
28
|
-
};
|
|
29
|
-
if (isHonoApp(app)) {
|
|
30
|
-
registerInspectorRoutes(app, config);
|
|
31
|
-
registerStaticRoutes(app, clientDistPath, runtimeConfig);
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
const honoApp = new Hono();
|
|
35
|
-
registerInspectorRoutes(honoApp, config);
|
|
36
|
-
registerStaticRoutes(honoApp, clientDistPath, runtimeConfig);
|
|
37
|
-
app.use((req, res, next) => {
|
|
38
|
-
const url = new URL(req.url || "", `http://${req.headers.host}`);
|
|
39
|
-
const request = new Request(url, {
|
|
40
|
-
method: req.method,
|
|
41
|
-
headers: req.headers,
|
|
42
|
-
body: req.method !== "GET" && req.method !== "HEAD" ? JSON.stringify(req.body) : void 0
|
|
43
|
-
});
|
|
44
|
-
Promise.resolve(honoApp.fetch(request)).then(async (fetchResponse) => {
|
|
45
|
-
res.status(fetchResponse.status);
|
|
46
|
-
fetchResponse.headers.forEach((value, key) => {
|
|
47
|
-
res.setHeader(key, value);
|
|
48
|
-
});
|
|
49
|
-
if (fetchResponse.body) {
|
|
50
|
-
const reader = fetchResponse.body.getReader();
|
|
51
|
-
while (true) {
|
|
52
|
-
const { done, value } = await reader.read();
|
|
53
|
-
if (done) {
|
|
54
|
-
break;
|
|
55
|
-
}
|
|
56
|
-
res.write(value);
|
|
57
|
-
}
|
|
58
|
-
res.end();
|
|
59
|
-
} else {
|
|
60
|
-
res.end();
|
|
61
|
-
}
|
|
62
|
-
}).catch(next);
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
function isHonoApp(app) {
|
|
66
|
-
return typeof app.fetch === "function";
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export {
|
|
70
|
-
mountInspector
|
|
71
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./index-DFBDRXli.js";var t=e(((e,t)=>{function n(e){return{name:`Plain text`,aliases:[`text`,`txt`],disableAutodetect:!0}}t.exports=n}));export default t();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./index-DFBDRXli.js";export{e as wrapTransportForLogging};
|