@mcp-use/inspector 12.0.3 → 12.0.4-canary.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/README.md +0 -1
- package/dist/cdn/inspector.js +4581 -4581
- package/dist/cli.js +2 -2
- package/dist/server/{chunk-63EJEHRP.js → chunk-57KIBVKX.js} +1 -1
- package/dist/server/{chunk-ZPHNDECP.js → chunk-JWSNP6DN.js} +2 -2
- package/dist/server/{chunk-KIJYOTYZ.js → chunk-LJ4XSPDK.js} +1 -1
- package/dist/server/chunk-OBMEB36B.js +71 -0
- package/dist/server/chunk-R4ISUE7T.js +164 -0
- package/dist/server/chunk-UTW44YSH.js +322 -0
- 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-BTqbT5Lw.js → 1c-Ck39aYGA.js} +1 -1
- package/dist/web/assets/{abnf-CvbqsVpS.js → abnf-BuzL1jyp.js} +1 -1
- package/dist/web/assets/{accesslog--Gq5QfzL.js → accesslog-C4d8zjYK.js} +1 -1
- package/dist/web/assets/{actionscript-dtxJe90A.js → actionscript-yhwXJGpA.js} +1 -1
- package/dist/web/assets/{ada-CDzwG6u4.js → ada-DS7GMjM1.js} +1 -1
- package/dist/web/assets/{angelscript-a1JdOJs-.js → angelscript-BNqWtPa-.js} +1 -1
- package/dist/web/assets/{apache-CxoZmWgc.js → apache-CDWq3Rq5.js} +1 -1
- package/dist/web/assets/{applescript-C1BOLA_Y.js → applescript-8S6EVXRM.js} +1 -1
- package/dist/web/assets/{arcade-CAOTODqr.js → arcade-DC7EGdDp.js} +1 -1
- package/dist/web/assets/{arduino-5aUGzGTa.js → arduino-8rhiPNbi.js} +1 -1
- package/dist/web/assets/{armasm-B7e8jGE8.js → armasm-CXSk1xrZ.js} +1 -1
- package/dist/web/assets/{asciidoc-D3trOz1f.js → asciidoc-Cky4dUsA.js} +1 -1
- package/dist/web/assets/{aspectj-CNwXz6SS.js → aspectj-Dq_7W5m_.js} +1 -1
- package/dist/web/assets/{autohotkey-DTc5f8Wb.js → autohotkey-BNhcw-Zd.js} +1 -1
- package/dist/web/assets/{autoit-TD16tYlE.js → autoit-B6QVlGNy.js} +1 -1
- package/dist/web/assets/{avrasm-SvoAXf2a.js → avrasm-CHV0d4It.js} +1 -1
- package/dist/web/assets/{awk-Dv74I_ZI.js → awk-DCB3Eg4O.js} +1 -1
- package/dist/web/assets/{axapta-C4zOwP52.js → axapta-Dxohu7yY.js} +1 -1
- package/dist/web/assets/{bash-DnxIdujh.js → bash-Bvq6q0eu.js} +1 -1
- package/dist/web/assets/{basic-Cn_zGYMW.js → basic-B6HvpaoU.js} +1 -1
- package/dist/web/assets/{bnf-DmSVgdwC.js → bnf-CuNWJiZD.js} +1 -1
- package/dist/web/assets/{brainfuck-CZr8u34u.js → brainfuck-CwbwmNek.js} +1 -1
- package/dist/web/assets/{c-Cfahlw93.js → c-J3NpqNLd.js} +1 -1
- package/dist/web/assets/{c-like-BB63VljS.js → c-like-CEyttHu3.js} +1 -1
- package/dist/web/assets/{cal-CFrZ6b7e.js → cal-De1Inhwg.js} +1 -1
- package/dist/web/assets/{capnproto-h72lzIV-.js → capnproto-Dfm52ju9.js} +1 -1
- package/dist/web/assets/{ceylon-Fl5kMDfR.js → ceylon-C7k7iR7b.js} +1 -1
- package/dist/web/assets/{clean-CZyv_oP2.js → clean-BApy5Jiy.js} +1 -1
- package/dist/web/assets/{clojure-C2sDT7KH.js → clojure-D99J3Nqd.js} +1 -1
- package/dist/web/assets/{clojure-repl-DRSevClz.js → clojure-repl-C-7y8JbJ.js} +1 -1
- package/dist/web/assets/{cmake-CjUx7e54.js → cmake-Cyp9hqgM.js} +1 -1
- package/dist/web/assets/{coffeescript-C9DXlkT4.js → coffeescript-Di8oatND.js} +1 -1
- package/dist/web/assets/{coq-Dw2P4LXA.js → coq-CTcQXuml.js} +1 -1
- package/dist/web/assets/{core-RF6LzkSx.js → core-Dn-Gjdkn.js} +1 -1
- package/dist/web/assets/{cos-B6IaXoZK.js → cos-B5PyisGk.js} +1 -1
- package/dist/web/assets/{cpp-C63ksU6e.js → cpp-CpoL8Vn2.js} +1 -1
- package/dist/web/assets/{crmsh-DzTbas_c.js → crmsh-BzEJ2UMf.js} +1 -1
- package/dist/web/assets/{crystal-CZOVpi1D.js → crystal-DwthdjeS.js} +1 -1
- package/dist/web/assets/{csharp-BxDtnYAd.js → csharp-DX0uiYC_.js} +1 -1
- package/dist/web/assets/{csp-BQWBanFo.js → csp-Dz_hLI0l.js} +1 -1
- package/dist/web/assets/{css-Dh-rQrS9.js → css-CBX-iPig.js} +1 -1
- package/dist/web/assets/{d-DoOnPE7d.js → d-BFcEc2Wd.js} +1 -1
- package/dist/web/assets/{dart-3S-9indY.js → dart-XM_3t8vN.js} +1 -1
- package/dist/web/assets/{delphi-DLIAKchu.js → delphi-DoGEkNsl.js} +1 -1
- package/dist/web/assets/{diff-Dyjpfi7O.js → diff-DmFtonrj.js} +1 -1
- package/dist/web/assets/{django-J7kL996c.js → django-BdZ5M382.js} +1 -1
- package/dist/web/assets/{dns-AVjTY93Y.js → dns-D08imUXg.js} +1 -1
- package/dist/web/assets/{dockerfile-DGp7BgFU.js → dockerfile-B5VmPrWY.js} +1 -1
- package/dist/web/assets/{dos-DgqPyxbS.js → dos-CGSFxCkI.js} +1 -1
- package/dist/web/assets/{dsconfig-BttZr6Et.js → dsconfig-ca2r_GVK.js} +1 -1
- package/dist/web/assets/{dts-Bszvfwwy.js → dts-JQegxFM5.js} +1 -1
- package/dist/web/assets/{dust-DbwA_iof.js → dust-Djaschl2.js} +1 -1
- package/dist/web/assets/{ebnf-BGOqL0G1.js → ebnf-CZryUL-X.js} +1 -1
- package/dist/web/assets/{elixir-CnezBh9R.js → elixir-D0_cpeEe.js} +1 -1
- package/dist/web/assets/{elm-BNc6cVGx.js → elm-CeVRiPaW.js} +1 -1
- package/dist/web/assets/{erb-8LjQgJHo.js → erb-xkDOjk65.js} +1 -1
- package/dist/web/assets/{erlang-B3hPmP_4.js → erlang-Bjd1hpKB.js} +1 -1
- package/dist/web/assets/{erlang-repl-DBuoaFhZ.js → erlang-repl-CAHsxSfj.js} +1 -1
- package/dist/web/assets/{excel-lLXploVf.js → excel-kF3e3kEL.js} +1 -1
- package/dist/web/assets/{fix-bJxGLUfh.js → fix-DcDIoRCK.js} +1 -1
- package/dist/web/assets/{flix-C6s6mDpK.js → flix-Ho4BNqBJ.js} +1 -1
- package/dist/web/assets/{fortran-BB9d_fNc.js → fortran-14t4qTUY.js} +1 -1
- package/dist/web/assets/{fsharp-D0k6Eil6.js → fsharp-L5i6f6LO.js} +1 -1
- package/dist/web/assets/{gams-B9SPUzH5.js → gams-B1FvFmVr.js} +1 -1
- package/dist/web/assets/{gauss-S60ek9wB.js → gauss-DhPFrKEG.js} +1 -1
- package/dist/web/assets/{gcode-DAn2gQKK.js → gcode-fU_PdGTz.js} +1 -1
- package/dist/web/assets/{gherkin-DiTzyzhp.js → gherkin-D35RpAlM.js} +1 -1
- package/dist/web/assets/{glsl-Csiexk7r.js → glsl-Ce3B2spn.js} +1 -1
- package/dist/web/assets/{gml-CBSBqlhz.js → gml-q_8zkRjy.js} +1 -1
- package/dist/web/assets/{go-C8Va8wL4.js → go-tjnmgxFo.js} +1 -1
- package/dist/web/assets/{golo-mFtimduA.js → golo-D0DdehTP.js} +1 -1
- package/dist/web/assets/{gradle-BcGJFOly.js → gradle-BuEALrHh.js} +1 -1
- package/dist/web/assets/{groovy-Crwwx-bE.js → groovy-BwBwLxy1.js} +1 -1
- package/dist/web/assets/{haml-DCZyuZcE.js → haml-BBZG2pIn.js} +1 -1
- package/dist/web/assets/{handlebars-S79YtHqn.js → handlebars-CBCTIWBg.js} +1 -1
- package/dist/web/assets/{haskell-Dzg1NwP1.js → haskell-Ddd09HDp.js} +1 -1
- package/dist/web/assets/{haxe-DQADrLml.js → haxe-B2rZ5fx2.js} +1 -1
- package/dist/web/assets/{hsp-Chev-s03.js → hsp-I8h4zcwW.js} +1 -1
- package/dist/web/assets/{htmlbars-3QX2b0Co.js → htmlbars-BU4KGKFH.js} +1 -1
- package/dist/web/assets/{http-xuwpvHq0.js → http-DN5nyOjy.js} +1 -1
- package/dist/web/assets/{hy-Camf34hv.js → hy-CpeSsEuG.js} +1 -1
- package/dist/web/assets/{index-hUdT-Xwc.js → index-C8FrI8_O.js} +120 -120
- package/dist/web/assets/{inform7-DSSotFJE.js → inform7-BE7aHqNb.js} +1 -1
- package/dist/web/assets/{ini-DaCd7JyT.js → ini-Z84ip27g.js} +1 -1
- package/dist/web/assets/{irpf90-EbfKmZEv.js → irpf90-CVwarimj.js} +1 -1
- package/dist/web/assets/{isbl-cWdmtW-e.js → isbl-ghISknvV.js} +1 -1
- package/dist/web/assets/{java-Bk45cfVZ.js → java-CEw02vbP.js} +1 -1
- package/dist/web/assets/{javascript-CDKRrAvx.js → javascript-gThRHhsu.js} +1 -1
- package/dist/web/assets/{jboss-cli-BEZx8g2u.js → jboss-cli-C9bhouu8.js} +1 -1
- package/dist/web/assets/{json-CWLqbWCz.js → json-CajKCx8k.js} +1 -1
- package/dist/web/assets/{julia-CfPMC14f.js → julia-DoYLhEhE.js} +1 -1
- package/dist/web/assets/{julia-repl-qSJnIioY.js → julia-repl-BZUBP0N8.js} +1 -1
- package/dist/web/assets/{kotlin-ClLd1Cdz.js → kotlin-DwLRtiOv.js} +1 -1
- package/dist/web/assets/{lasso-B0I67dw2.js → lasso-DzjodXDX.js} +1 -1
- package/dist/web/assets/{latex-DvPph1u7.js → latex-TLlwzbIz.js} +1 -1
- package/dist/web/assets/{ldif-BWfQtjZJ.js → ldif-CCayDc2m.js} +1 -1
- package/dist/web/assets/{leaf-DmgNpBMJ.js → leaf-Bz7MjUha.js} +1 -1
- package/dist/web/assets/{less-CxGJcWdI.js → less-5c3Sx665.js} +1 -1
- package/dist/web/assets/{lisp-BZNHbc0E.js → lisp-nrbFh6lg.js} +1 -1
- package/dist/web/assets/{livecodeserver-Dpp84JfD.js → livecodeserver-B6AET3RQ.js} +1 -1
- package/dist/web/assets/{livescript-BSC1lg3t.js → livescript-DluKBsMk.js} +1 -1
- package/dist/web/assets/{llvm-B35qq8lz.js → llvm-7haFOmp0.js} +1 -1
- package/dist/web/assets/{lsl-BkjjsTSP.js → lsl-vQhUcPVp.js} +1 -1
- package/dist/web/assets/{lua-DSjnYpp0.js → lua-D6YEEohY.js} +1 -1
- package/dist/web/assets/{makefile-DW6vgYPi.js → makefile-ps86vsQu.js} +1 -1
- package/dist/web/assets/{markdown-Bl6sbJBs.js → markdown-D4av7eDS.js} +1 -1
- package/dist/web/assets/{mathematica-dpZ_SDeq.js → mathematica-KZAZ3f_4.js} +1 -1
- package/dist/web/assets/{matlab-CtVSOG7n.js → matlab-DvaEq_2L.js} +1 -1
- package/dist/web/assets/{maxima-DH80P9D3.js → maxima-DmpshiQZ.js} +1 -1
- package/dist/web/assets/{mel-DU5TDVW8.js → mel-B-mMlzQm.js} +1 -1
- package/dist/web/assets/{mercury-DUzHVNG5.js → mercury-C7wy29Qr.js} +1 -1
- package/dist/web/assets/{mipsasm-BxfSTkrq.js → mipsasm-BWGxDN2L.js} +1 -1
- package/dist/web/assets/{mizar-BGnMNeUe.js → mizar-BO0ByJsv.js} +1 -1
- package/dist/web/assets/{mojolicious-DoZI_DtT.js → mojolicious-DQzQPzHI.js} +1 -1
- package/dist/web/assets/{monkey-DkZ9gdE3.js → monkey-zmRhai32.js} +1 -1
- package/dist/web/assets/{moonscript-BY2CxXjy.js → moonscript-I4NDcPGQ.js} +1 -1
- package/dist/web/assets/{n1ql-B5rttbDP.js → n1ql-DWiekVW7.js} +1 -1
- package/dist/web/assets/{nginx-CogLOW1E.js → nginx-DzGKMR5i.js} +1 -1
- package/dist/web/assets/{nim-qxtPbY-G.js → nim-CkSCDiz8.js} +1 -1
- package/dist/web/assets/{nix-CjfFLu3k.js → nix-ZeFazZ2H.js} +1 -1
- package/dist/web/assets/{node-repl-DNGrUqi3.js → node-repl-CPsBepeY.js} +1 -1
- package/dist/web/assets/{nsis-BENTXzWS.js → nsis-CPX7KHgX.js} +1 -1
- package/dist/web/assets/{objectivec-CV82GVhm.js → objectivec-C9QgxLTf.js} +1 -1
- package/dist/web/assets/{ocaml-DkoqGK1N.js → ocaml-C3nG7mvn.js} +1 -1
- package/dist/web/assets/{openscad-ATnNCXEQ.js → openscad-DeCdwUSM.js} +1 -1
- package/dist/web/assets/{oxygene-F0106W6C.js → oxygene-DYdFEz9Q.js} +1 -1
- package/dist/web/assets/{parser3-Vp_MoNKc.js → parser3-ZcIhJT1P.js} +1 -1
- package/dist/web/assets/{perl-4cJd_bow.js → perl-C6XfEYw8.js} +1 -1
- package/dist/web/assets/{pf-BhMFycxG.js → pf-8XkdEzY8.js} +1 -1
- package/dist/web/assets/{pgsql-V64bhVbB.js → pgsql-DAhhqJ5S.js} +1 -1
- package/dist/web/assets/{php-DWJ6A3DK.js → php-CSilrJt2.js} +1 -1
- package/dist/web/assets/{php-template-BVOmGk2e.js → php-template-BNZ8XzCJ.js} +1 -1
- package/dist/web/assets/plaintext-Bh7iCuMT.js +1 -0
- package/dist/web/assets/{pony-BbULiKiE.js → pony-CSAjk_Rh.js} +1 -1
- package/dist/web/assets/{powershell-BO5stI2u.js → powershell-5tevpPDi.js} +1 -1
- package/dist/web/assets/{processing-p4qRI2ON.js → processing-B5UBw4db.js} +1 -1
- package/dist/web/assets/{profile-Cqftjjcy.js → profile-BYWKRUf-.js} +1 -1
- package/dist/web/assets/{prolog-C6y5OgSl.js → prolog-Z-kheNQb.js} +1 -1
- package/dist/web/assets/{properties-SKQZ5Dp8.js → properties-CP2GAgCT.js} +1 -1
- package/dist/web/assets/{protobuf-Bbx9qj7k.js → protobuf-DwaP-ZBz.js} +1 -1
- package/dist/web/assets/{puppet-Cb9i3O5D.js → puppet-DCo1p-e1.js} +1 -1
- package/dist/web/assets/{purebasic-CXZg-3_P.js → purebasic-B4oTIbaC.js} +1 -1
- package/dist/web/assets/{python-Dnm4CgaL.js → python-Cxw0FOMN.js} +1 -1
- package/dist/web/assets/{python-repl-DB2G8meg.js → python-repl-BggDorti.js} +1 -1
- package/dist/web/assets/{q-CFiWsp3S.js → q-D0x0YPyq.js} +1 -1
- package/dist/web/assets/{qml-CVr-cubu.js → qml-Dphl0SMd.js} +1 -1
- package/dist/web/assets/{r-6pd8e5mF.js → r-D_JMfTn3.js} +1 -1
- package/dist/web/assets/{reasonml-CBzNew66.js → reasonml-CXdNSKcE.js} +1 -1
- package/dist/web/assets/{rib-E-aP9pIZ.js → rib-D3-TlPeW.js} +1 -1
- package/dist/web/assets/{roboconf-u7FD_k2a.js → roboconf-DEm7cd22.js} +1 -1
- package/dist/web/assets/{routeros-N8znHVsL.js → routeros-DdjuRfl6.js} +1 -1
- package/dist/web/assets/rpc-logger-TPNV75J4-C40n6UNr.js +1 -0
- package/dist/web/assets/{rsl-CJncyDtx.js → rsl-BrnG8AH0.js} +1 -1
- package/dist/web/assets/{ruby-BSucYaNv.js → ruby-aB1innqz.js} +1 -1
- package/dist/web/assets/{ruleslanguage-B7M9_k_Q.js → ruleslanguage-BPmfiapH.js} +1 -1
- package/dist/web/assets/{rust-D2qfbj2c.js → rust-DqQz2VhN.js} +1 -1
- package/dist/web/assets/{sas-beaKYpLY.js → sas-D4-lEVkU.js} +1 -1
- package/dist/web/assets/{scala-DOVq_fKU.js → scala-77Na58um.js} +1 -1
- package/dist/web/assets/{scheme-CLJz0S61.js → scheme-2Qe3EDmu.js} +1 -1
- package/dist/web/assets/{scilab-D9apvp93.js → scilab-DZps5Q31.js} +1 -1
- package/dist/web/assets/{scss-B_Zcwi63.js → scss-B3Vtu9UP.js} +1 -1
- package/dist/web/assets/{shell-BggyyMBD.js → shell-CrQcV8OK.js} +1 -1
- package/dist/web/assets/{smali-2rms4lQl.js → smali-BTfpnEqn.js} +1 -1
- package/dist/web/assets/{smalltalk-C4GG9uT7.js → smalltalk-CpIWoTp_.js} +1 -1
- package/dist/web/assets/{sml-1w_0ctt0.js → sml-DoJUdr8i.js} +1 -1
- package/dist/web/assets/{sqf-CaS4ruMf.js → sqf-Bs26a1hR.js} +1 -1
- package/dist/web/assets/{sql-C7zh9RdM.js → sql-BXs9CZyk.js} +1 -1
- package/dist/web/assets/{sql_more-D6zZQkle.js → sql_more-CQVJyFAZ.js} +1 -1
- package/dist/web/assets/{stan-CjKqvOwl.js → stan-B6HH5NgR.js} +1 -1
- package/dist/web/assets/{stata-cr_xVBQP.js → stata-VKr1FNBF.js} +1 -1
- package/dist/web/assets/{step21-DRY2Xbz_.js → step21-Ba6oj9Wj.js} +1 -1
- package/dist/web/assets/{stylus-DY8mphAg.js → stylus-DhJmSeI6.js} +1 -1
- package/dist/web/assets/{subunit-2GQIFNvg.js → subunit-B0bGuVIS.js} +1 -1
- package/dist/web/assets/{swift-B-_h5diy.js → swift-C5NITCOW.js} +1 -1
- package/dist/web/assets/{taggerscript-ClJ4uzlC.js → taggerscript-DzMn6Q_H.js} +1 -1
- package/dist/web/assets/{tap-ejkButga.js → tap-D-CsbE0z.js} +1 -1
- package/dist/web/assets/{tcl-CTBxJ1qz.js → tcl-mxaB-b0O.js} +1 -1
- package/dist/web/assets/{thrift-DKXWKeM1.js → thrift-D15bAw3O.js} +1 -1
- package/dist/web/assets/{tp-CObaeuax.js → tp-CYW80aaN.js} +1 -1
- package/dist/web/assets/{twig-qYz7JFbM.js → twig-DUx5lHKo.js} +1 -1
- package/dist/web/assets/{typescript-Bdq0SHyX.js → typescript-FKxWpH0A.js} +1 -1
- package/dist/web/assets/{vala-BCJueeDJ.js → vala-C8SPe1Je.js} +1 -1
- package/dist/web/assets/{vbnet-2-jIOY_E.js → vbnet-DPOz3qH4.js} +1 -1
- package/dist/web/assets/{vbscript-CRm5WK-Q.js → vbscript-BFMfNF7s.js} +1 -1
- package/dist/web/assets/{vbscript-html-CTExBULV.js → vbscript-html-3FBmwJu9.js} +1 -1
- package/dist/web/assets/{verilog-BwKgCjRJ.js → verilog-CiVb5cnG.js} +1 -1
- package/dist/web/assets/{vhdl-BK1067xk.js → vhdl-BQaFQ0Ys.js} +1 -1
- package/dist/web/assets/{vim-COlOCSo-.js → vim-k5mEfOIE.js} +1 -1
- package/dist/web/assets/{x86asm-C17gpHUe.js → x86asm-B-SWMOrZ.js} +1 -1
- package/dist/web/assets/{xl-B1emAXno.js → xl-BpV7JOX6.js} +1 -1
- package/dist/web/assets/{xml-CTMmdpjI.js → xml-7_gIAAop.js} +1 -1
- package/dist/web/assets/{xquery-C2Kg_HkA.js → xquery-D3UKuxgH.js} +1 -1
- package/dist/web/assets/{yaml-CmCZduek.js → yaml-CL8bO3oj.js} +1 -1
- package/dist/web/assets/{zephir-gGr1zHBT.js → zephir-foimhbl6.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +3 -3
- package/dist/web/assets/plaintext-XjGl-sOz.js +0 -1
- package/dist/web/assets/rpc-logger-TPNV75J4-BaGa3FrD.js +0 -1
package/dist/cli.js
CHANGED
|
@@ -3333,7 +3333,7 @@ function getClientDistPath() {
|
|
|
3333
3333
|
var package_default = {
|
|
3334
3334
|
name: "@mcp-use/inspector",
|
|
3335
3335
|
type: "module",
|
|
3336
|
-
version: "12.0.
|
|
3336
|
+
version: "12.0.4-canary.1",
|
|
3337
3337
|
description: "MCP Inspector - A tool for inspecting and debugging MCP servers",
|
|
3338
3338
|
author: "",
|
|
3339
3339
|
license: "MIT",
|
|
@@ -3412,7 +3412,7 @@ var package_default = {
|
|
|
3412
3412
|
},
|
|
3413
3413
|
peerDependencies: {
|
|
3414
3414
|
express: "^4.21.2 || ^5.0.0",
|
|
3415
|
-
"mcp-use": ">=1.34.
|
|
3415
|
+
"mcp-use": ">=1.34.4-canary.0",
|
|
3416
3416
|
react: "^18.0.0 || ^19.0.0",
|
|
3417
3417
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
3418
3418
|
"react-router": "^7.12.0"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "@mcp-use/inspector",
|
|
4
4
|
type: "module",
|
|
5
|
-
version: "12.0.
|
|
5
|
+
version: "12.0.4-canary.1",
|
|
6
6
|
description: "MCP Inspector - A tool for inspecting and debugging MCP servers",
|
|
7
7
|
author: "",
|
|
8
8
|
license: "MIT",
|
|
@@ -81,7 +81,7 @@ var package_default = {
|
|
|
81
81
|
},
|
|
82
82
|
peerDependencies: {
|
|
83
83
|
express: "^4.21.2 || ^5.0.0",
|
|
84
|
-
"mcp-use": ">=1.34.
|
|
84
|
+
"mcp-use": ">=1.34.4-canary.0",
|
|
85
85
|
react: "^18.0.0 || ^19.0.0",
|
|
86
86
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
87
87
|
"react-router": "^7.12.0"
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import {
|
|
2
|
+
registerInspectorRoutes
|
|
3
|
+
} from "./chunk-A4VH7AIP.js";
|
|
4
|
+
import {
|
|
5
|
+
registerStaticRoutes
|
|
6
|
+
} from "./chunk-LJ4XSPDK.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
|
+
};
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
// package.json
|
|
2
|
+
var package_default = {
|
|
3
|
+
name: "@mcp-use/inspector",
|
|
4
|
+
type: "module",
|
|
5
|
+
version: "12.0.4-canary.0",
|
|
6
|
+
description: "MCP Inspector - A tool for inspecting and debugging MCP servers",
|
|
7
|
+
author: "",
|
|
8
|
+
license: "MIT",
|
|
9
|
+
homepage: "https://github.com/mcp-use/mcp-use#readme",
|
|
10
|
+
repository: {
|
|
11
|
+
type: "git",
|
|
12
|
+
url: "git+https://github.com/mcp-use/mcp-use.git",
|
|
13
|
+
directory: "libraries/typescript/packages/inspector"
|
|
14
|
+
},
|
|
15
|
+
bugs: {
|
|
16
|
+
url: "https://github.com/mcp-use/mcp-use/issues"
|
|
17
|
+
},
|
|
18
|
+
keywords: [
|
|
19
|
+
"mcp",
|
|
20
|
+
"inspector",
|
|
21
|
+
"debug",
|
|
22
|
+
"tools"
|
|
23
|
+
],
|
|
24
|
+
exports: {
|
|
25
|
+
".": {
|
|
26
|
+
types: "./dist/server/index.d.ts",
|
|
27
|
+
import: "./dist/server/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./client": {
|
|
30
|
+
types: "./dist/client/index.d.ts",
|
|
31
|
+
import: "./dist/client/index.js"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
main: "./dist/server/index.js",
|
|
35
|
+
types: "./dist/server/index.d.ts",
|
|
36
|
+
bin: {
|
|
37
|
+
"mcp-inspect": "./dist/cli.js"
|
|
38
|
+
},
|
|
39
|
+
files: [
|
|
40
|
+
"dist"
|
|
41
|
+
],
|
|
42
|
+
scripts: {
|
|
43
|
+
dev: 'concurrently "npm run dev:client" "npm run dev:server"',
|
|
44
|
+
"dev:client": "rimraf node_modules/.vite && vite --port 3000",
|
|
45
|
+
"dev:server": "VITE_DEV=true tsx watch src/server/server.ts",
|
|
46
|
+
"dev:standalone": "tsx watch src/server/server.ts",
|
|
47
|
+
build: "npm run build:client && npm run build:client-exports && npm run build:server && npm run build:cli && npm run build:cdn",
|
|
48
|
+
"build:cdn": "vite build --config vite.cdn.config.ts",
|
|
49
|
+
"build:client": "vite build",
|
|
50
|
+
"build:client-exports": "tsup --config tsup.client.ts && tsc -p tsconfig.client.json --emitDeclarationOnly --declaration",
|
|
51
|
+
"build:server": "tsup src/server/*.ts --format esm --out-dir dist/server && tsc -p tsconfig.server.json --emitDeclarationOnly --declaration",
|
|
52
|
+
"build:cli": "tsup src/server/cli.ts --format esm --out-dir dist/",
|
|
53
|
+
prepublishOnly: "pnpm --filter mcp-use build && pnpm build",
|
|
54
|
+
start: "node dist/server/server.js",
|
|
55
|
+
preview: "vite preview",
|
|
56
|
+
"type-check": "tsc --noEmit",
|
|
57
|
+
lint: "eslint .",
|
|
58
|
+
"lint:fix": "eslint . --fix",
|
|
59
|
+
"test:e2e": "playwright test",
|
|
60
|
+
"test:e2e:ui": "playwright test --ui",
|
|
61
|
+
"test:e2e:debug": "playwright test --debug",
|
|
62
|
+
"test:e2e:builtin": "node tests/e2e/scripts/run-test-matrix.mjs builtin",
|
|
63
|
+
"test:e2e:prod": "node tests/e2e/scripts/run-test-matrix.mjs prod",
|
|
64
|
+
"test:e2e:mix": "node tests/e2e/scripts/run-test-matrix.mjs mix",
|
|
65
|
+
"test:e2e:prod:ui": "TEST_MODE=production playwright test --ui",
|
|
66
|
+
"test:e2e:codegen": "playwright codegen http://localhost:3000/inspector",
|
|
67
|
+
"test:e2e:report": "playwright show-report",
|
|
68
|
+
"test:e2e:python": "node tests/e2e/scripts/run-python-e2e.mjs",
|
|
69
|
+
"test:unit": "vitest run",
|
|
70
|
+
"test:unit:watch": "vitest",
|
|
71
|
+
"test:e2e:tunnel": "node tests/e2e/scripts/run-tunnel-test.mjs",
|
|
72
|
+
"install:yarn": "yarn install",
|
|
73
|
+
"install:pnpm": "pnpm install",
|
|
74
|
+
"install:npm": "npm install",
|
|
75
|
+
"lint:yarn": "yarn eslint . --fix",
|
|
76
|
+
"lint:npm": "npm run lint:fix",
|
|
77
|
+
"lint:pnpm": "pnpm lint:fix"
|
|
78
|
+
},
|
|
79
|
+
engines: {
|
|
80
|
+
node: "^20.19.0 || >=22.12.0"
|
|
81
|
+
},
|
|
82
|
+
peerDependencies: {
|
|
83
|
+
express: "^4.21.2 || ^5.0.0",
|
|
84
|
+
"mcp-use": ">=1.34.4-canary.0",
|
|
85
|
+
react: "^18.0.0 || ^19.0.0",
|
|
86
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
87
|
+
"react-router": "^7.12.0"
|
|
88
|
+
},
|
|
89
|
+
peerDependenciesMeta: {
|
|
90
|
+
express: {
|
|
91
|
+
optional: true
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
dependencies: {
|
|
95
|
+
"@hono/node-server": "^1.19.13",
|
|
96
|
+
"@modelcontextprotocol/ext-apps": "^1.0.1",
|
|
97
|
+
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
98
|
+
"@paper-design/shaders-react": "^0.0.72",
|
|
99
|
+
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
100
|
+
"@radix-ui/react-avatar": "^1.1.11",
|
|
101
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
102
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
103
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
104
|
+
"@radix-ui/react-label": "^2.1.8",
|
|
105
|
+
"@radix-ui/react-popover": "^1.1.15",
|
|
106
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
107
|
+
"@radix-ui/react-switch": "^1.2.6",
|
|
108
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
109
|
+
"@scarf/scarf": "^1.4.0",
|
|
110
|
+
"@tailwindcss/vite": "^4.2.0",
|
|
111
|
+
"@types/react-syntax-highlighter": "^15.5.13",
|
|
112
|
+
"class-variance-authority": "^0.7.1",
|
|
113
|
+
clsx: "^2.1.1",
|
|
114
|
+
cmdk: "^1.1.1",
|
|
115
|
+
hono: "^4.12.12",
|
|
116
|
+
"lucide-react": "^0.562.0",
|
|
117
|
+
"markdown-to-jsx": "^9.7.4",
|
|
118
|
+
"mcp-use": "workspace:*",
|
|
119
|
+
motion: "^12.34.2",
|
|
120
|
+
"next-themes": "^0.4.6",
|
|
121
|
+
open: "^11.0.0",
|
|
122
|
+
"posthog-node": "^5.24.17",
|
|
123
|
+
"react-resizable-panels": "^4.6.4",
|
|
124
|
+
"react-syntax-highlighter": "^16.1.0",
|
|
125
|
+
sonner: "^2.0.7",
|
|
126
|
+
"tailwind-merge": "^3.5.0",
|
|
127
|
+
zod: "4.3.5"
|
|
128
|
+
},
|
|
129
|
+
publishConfig: {
|
|
130
|
+
access: "public"
|
|
131
|
+
},
|
|
132
|
+
devDependencies: {
|
|
133
|
+
"@playwright/test": "^1.58.2",
|
|
134
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
135
|
+
"@types/express": "^5.0.6",
|
|
136
|
+
"@vitejs/plugin-react": "^6.0.0",
|
|
137
|
+
concurrently: "^9.2.1",
|
|
138
|
+
emulate: "0.5.0",
|
|
139
|
+
eslint: "^9.39.2",
|
|
140
|
+
express: "^5.2.1",
|
|
141
|
+
"oauth2-mock-server": "^8.2.2",
|
|
142
|
+
react: "^19.2.3",
|
|
143
|
+
"react-dom": "^19.2.3",
|
|
144
|
+
"react-router": "^7.12.0",
|
|
145
|
+
tailwindcss: "^4.2.0",
|
|
146
|
+
tsup: "^8.5.1",
|
|
147
|
+
tsx: "^4.21.0",
|
|
148
|
+
"tw-animate-css": "^1.4.0",
|
|
149
|
+
vite: "^8.0.16",
|
|
150
|
+
vitest: "^4.1.0",
|
|
151
|
+
"wait-on": "^9.0.4"
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
// src/server/version.ts
|
|
156
|
+
var VERSION = package_default.version;
|
|
157
|
+
function getInspectorVersion() {
|
|
158
|
+
return VERSION;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export {
|
|
162
|
+
VERSION,
|
|
163
|
+
getInspectorVersion
|
|
164
|
+
};
|
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getInspectorVersion
|
|
3
|
+
} from "./chunk-R4ISUE7T.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
|
+
};
|
package/dist/server/cli.js
CHANGED
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
import "./chunk-CVECQ7BJ.js";
|
|
14
14
|
import {
|
|
15
15
|
registerStaticRoutes
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LJ4XSPDK.js";
|
|
17
17
|
import {
|
|
18
18
|
getInspectorVersion
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JWSNP6DN.js";
|
|
20
20
|
import "./chunk-IDMHJUEM.js";
|
|
21
21
|
import "./chunk-PKBMQBKP.js";
|
|
22
22
|
|
package/dist/server/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mountInspector
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OBMEB36B.js";
|
|
4
4
|
import "./chunk-A4VH7AIP.js";
|
|
5
5
|
import {
|
|
6
6
|
handleChatRequest,
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
} from "./chunk-QQ37LGLJ.js";
|
|
13
13
|
import "./chunk-KD7K27XK.js";
|
|
14
14
|
import "./chunk-CVECQ7BJ.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-LJ4XSPDK.js";
|
|
16
|
+
import "./chunk-JWSNP6DN.js";
|
|
17
17
|
import "./chunk-IDMHJUEM.js";
|
|
18
18
|
import "./chunk-PKBMQBKP.js";
|
|
19
19
|
export {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mountInspector
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OBMEB36B.js";
|
|
4
4
|
import "./chunk-A4VH7AIP.js";
|
|
5
5
|
import "./chunk-PJNKFX2R.js";
|
|
6
6
|
import "./chunk-QQ37LGLJ.js";
|
|
7
7
|
import "./chunk-KD7K27XK.js";
|
|
8
8
|
import "./chunk-CVECQ7BJ.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-LJ4XSPDK.js";
|
|
10
|
+
import "./chunk-JWSNP6DN.js";
|
|
11
11
|
import "./chunk-IDMHJUEM.js";
|
|
12
12
|
import "./chunk-PKBMQBKP.js";
|
|
13
13
|
export {
|
package/dist/server/server.js
CHANGED
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
import "./chunk-CVECQ7BJ.js";
|
|
14
14
|
import {
|
|
15
15
|
registerStaticRoutesWithDevProxy
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-LJ4XSPDK.js";
|
|
17
|
+
import "./chunk-JWSNP6DN.js";
|
|
18
18
|
import "./chunk-IDMHJUEM.js";
|
|
19
19
|
import "./chunk-PKBMQBKP.js";
|
|
20
20
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registerStaticRoutes,
|
|
3
3
|
registerStaticRoutesWithDevProxy
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-LJ4XSPDK.js";
|
|
5
|
+
import "./chunk-JWSNP6DN.js";
|
|
6
6
|
import "./chunk-IDMHJUEM.js";
|
|
7
7
|
import "./chunk-PKBMQBKP.js";
|
|
8
8
|
export {
|