@mcp-use/inspector 12.0.3 → 12.0.4-canary.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 +0 -1
- package/dist/cdn/inspector.js +3 -3
- package/dist/cli.js +2 -2
- package/dist/server/chunk-57KIBVKX.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-D19GPo3L.js} +1 -1
- package/dist/web/assets/{abnf-CvbqsVpS.js → abnf-BR1TaWs-.js} +1 -1
- package/dist/web/assets/{accesslog--Gq5QfzL.js → accesslog-CZxiyYuK.js} +1 -1
- package/dist/web/assets/{actionscript-dtxJe90A.js → actionscript-BS1fMZ9M.js} +1 -1
- package/dist/web/assets/{ada-CDzwG6u4.js → ada-Dhy1EabM.js} +1 -1
- package/dist/web/assets/{angelscript-a1JdOJs-.js → angelscript-Gjldi7xi.js} +1 -1
- package/dist/web/assets/{apache-CxoZmWgc.js → apache-Cx8TUABI.js} +1 -1
- package/dist/web/assets/{applescript-C1BOLA_Y.js → applescript-JfBNOabq.js} +1 -1
- package/dist/web/assets/{arcade-CAOTODqr.js → arcade-E6zGzFSx.js} +1 -1
- package/dist/web/assets/{arduino-5aUGzGTa.js → arduino-D7Y37T_-.js} +1 -1
- package/dist/web/assets/{armasm-B7e8jGE8.js → armasm-vpTNgAzt.js} +1 -1
- package/dist/web/assets/{asciidoc-D3trOz1f.js → asciidoc-DaVECsQY.js} +1 -1
- package/dist/web/assets/{aspectj-CNwXz6SS.js → aspectj-CdRAuqVM.js} +1 -1
- package/dist/web/assets/{autohotkey-DTc5f8Wb.js → autohotkey-DvZQekH9.js} +1 -1
- package/dist/web/assets/{autoit-TD16tYlE.js → autoit-oLytjhLA.js} +1 -1
- package/dist/web/assets/{avrasm-SvoAXf2a.js → avrasm-5Cf9yIw9.js} +1 -1
- package/dist/web/assets/{awk-Dv74I_ZI.js → awk-Bf_S2P0n.js} +1 -1
- package/dist/web/assets/{axapta-C4zOwP52.js → axapta-DrOS6bUw.js} +1 -1
- package/dist/web/assets/{bash-DnxIdujh.js → bash-DCVWALRV.js} +1 -1
- package/dist/web/assets/{basic-Cn_zGYMW.js → basic-D0GZ3REU.js} +1 -1
- package/dist/web/assets/{bnf-DmSVgdwC.js → bnf-D74FvP-b.js} +1 -1
- package/dist/web/assets/{brainfuck-CZr8u34u.js → brainfuck-DwUXsIlY.js} +1 -1
- package/dist/web/assets/{c-Cfahlw93.js → c-CPGbDsng.js} +1 -1
- package/dist/web/assets/{c-like-BB63VljS.js → c-like-DLj4FsHF.js} +1 -1
- package/dist/web/assets/{cal-CFrZ6b7e.js → cal-Czm5e2Qe.js} +1 -1
- package/dist/web/assets/{capnproto-h72lzIV-.js → capnproto-CVJ2fID7.js} +1 -1
- package/dist/web/assets/{ceylon-Fl5kMDfR.js → ceylon-DR5D2yFU.js} +1 -1
- package/dist/web/assets/{clean-CZyv_oP2.js → clean-CkIuagdM.js} +1 -1
- package/dist/web/assets/{clojure-C2sDT7KH.js → clojure-VwyIEQaz.js} +1 -1
- package/dist/web/assets/{clojure-repl-DRSevClz.js → clojure-repl-jCSr2ntH.js} +1 -1
- package/dist/web/assets/{cmake-CjUx7e54.js → cmake-D2Zl_q65.js} +1 -1
- package/dist/web/assets/{coffeescript-C9DXlkT4.js → coffeescript-C7Hfrw9O.js} +1 -1
- package/dist/web/assets/{coq-Dw2P4LXA.js → coq-DAxtVI93.js} +1 -1
- package/dist/web/assets/{core-RF6LzkSx.js → core-ICctFm9I.js} +1 -1
- package/dist/web/assets/{cos-B6IaXoZK.js → cos-0GHB8yn1.js} +1 -1
- package/dist/web/assets/{cpp-C63ksU6e.js → cpp-DdlDGc99.js} +1 -1
- package/dist/web/assets/{crmsh-DzTbas_c.js → crmsh-C0vbH3xd.js} +1 -1
- package/dist/web/assets/{crystal-CZOVpi1D.js → crystal-BloCCkus.js} +1 -1
- package/dist/web/assets/{csharp-BxDtnYAd.js → csharp-YhN72Cls.js} +1 -1
- package/dist/web/assets/{csp-BQWBanFo.js → csp-OAeIWScz.js} +1 -1
- package/dist/web/assets/{css-Dh-rQrS9.js → css-D1ih01yA.js} +1 -1
- package/dist/web/assets/{d-DoOnPE7d.js → d-yGrz2xEC.js} +1 -1
- package/dist/web/assets/{dart-3S-9indY.js → dart-C3qG0xpq.js} +1 -1
- package/dist/web/assets/{delphi-DLIAKchu.js → delphi-CvoiTamH.js} +1 -1
- package/dist/web/assets/{diff-Dyjpfi7O.js → diff-zDaBDf86.js} +1 -1
- package/dist/web/assets/{django-J7kL996c.js → django-DBYOwnaY.js} +1 -1
- package/dist/web/assets/{dns-AVjTY93Y.js → dns-BWy_Oa_w.js} +1 -1
- package/dist/web/assets/{dockerfile-DGp7BgFU.js → dockerfile-Cj5YqQiP.js} +1 -1
- package/dist/web/assets/{dos-DgqPyxbS.js → dos-AaJBzvG4.js} +1 -1
- package/dist/web/assets/{dsconfig-BttZr6Et.js → dsconfig-BgEbyf_A.js} +1 -1
- package/dist/web/assets/{dts-Bszvfwwy.js → dts-z64kku76.js} +1 -1
- package/dist/web/assets/{dust-DbwA_iof.js → dust-C-6seNMG.js} +1 -1
- package/dist/web/assets/{ebnf-BGOqL0G1.js → ebnf-DC6yB_8o.js} +1 -1
- package/dist/web/assets/{elixir-CnezBh9R.js → elixir-DVZgqY4T.js} +1 -1
- package/dist/web/assets/{elm-BNc6cVGx.js → elm-Css3uC5x.js} +1 -1
- package/dist/web/assets/{erb-8LjQgJHo.js → erb-C538Iixw.js} +1 -1
- package/dist/web/assets/{erlang-B3hPmP_4.js → erlang-DyDPiXgX.js} +1 -1
- package/dist/web/assets/{erlang-repl-DBuoaFhZ.js → erlang-repl-CVIWmQKC.js} +1 -1
- package/dist/web/assets/{excel-lLXploVf.js → excel-BLHu7SPw.js} +1 -1
- package/dist/web/assets/{fix-bJxGLUfh.js → fix-JPCm4C-u.js} +1 -1
- package/dist/web/assets/{flix-C6s6mDpK.js → flix-DejUTEwL.js} +1 -1
- package/dist/web/assets/{fortran-BB9d_fNc.js → fortran-CK7Rlzc4.js} +1 -1
- package/dist/web/assets/{fsharp-D0k6Eil6.js → fsharp-ZgHvh-ZT.js} +1 -1
- package/dist/web/assets/{gams-B9SPUzH5.js → gams-BIBfDr3x.js} +1 -1
- package/dist/web/assets/{gauss-S60ek9wB.js → gauss-DttPF6Qr.js} +1 -1
- package/dist/web/assets/{gcode-DAn2gQKK.js → gcode-BXL931mb.js} +1 -1
- package/dist/web/assets/{gherkin-DiTzyzhp.js → gherkin-B7qFZ0rb.js} +1 -1
- package/dist/web/assets/{glsl-Csiexk7r.js → glsl-BSKhKy8T.js} +1 -1
- package/dist/web/assets/{gml-CBSBqlhz.js → gml-BcbsDsfr.js} +1 -1
- package/dist/web/assets/{go-C8Va8wL4.js → go-BksciLaM.js} +1 -1
- package/dist/web/assets/{golo-mFtimduA.js → golo-D2QFLiUq.js} +1 -1
- package/dist/web/assets/{gradle-BcGJFOly.js → gradle-BH3VzvYn.js} +1 -1
- package/dist/web/assets/{groovy-Crwwx-bE.js → groovy-Bv9ooqes.js} +1 -1
- package/dist/web/assets/{haml-DCZyuZcE.js → haml-CacWyVgj.js} +1 -1
- package/dist/web/assets/{handlebars-S79YtHqn.js → handlebars-Cpp3MUlG.js} +1 -1
- package/dist/web/assets/{haskell-Dzg1NwP1.js → haskell-BQM3-EaA.js} +1 -1
- package/dist/web/assets/{haxe-DQADrLml.js → haxe-Df4nG9sq.js} +1 -1
- package/dist/web/assets/{hsp-Chev-s03.js → hsp-sHEckFHE.js} +1 -1
- package/dist/web/assets/{htmlbars-3QX2b0Co.js → htmlbars-shnKLbrr.js} +1 -1
- package/dist/web/assets/{http-xuwpvHq0.js → http-CNJ01fsj.js} +1 -1
- package/dist/web/assets/{hy-Camf34hv.js → hy-B3oY6sFO.js} +1 -1
- package/dist/web/assets/{index-hUdT-Xwc.js → index-DB2yAAMO.js} +4 -4
- package/dist/web/assets/{inform7-DSSotFJE.js → inform7-CNEOVpOE.js} +1 -1
- package/dist/web/assets/{ini-DaCd7JyT.js → ini-q6ZmK_Ll.js} +1 -1
- package/dist/web/assets/{irpf90-EbfKmZEv.js → irpf90-CHcNzzFG.js} +1 -1
- package/dist/web/assets/{isbl-cWdmtW-e.js → isbl-ClZ-43Pe.js} +1 -1
- package/dist/web/assets/{java-Bk45cfVZ.js → java-C63Whuw3.js} +1 -1
- package/dist/web/assets/{javascript-CDKRrAvx.js → javascript-BAgDYvOy.js} +1 -1
- package/dist/web/assets/{jboss-cli-BEZx8g2u.js → jboss-cli-qjpm-ZOy.js} +1 -1
- package/dist/web/assets/{json-CWLqbWCz.js → json-DT8at3fD.js} +1 -1
- package/dist/web/assets/{julia-CfPMC14f.js → julia-B3hjMqCS.js} +1 -1
- package/dist/web/assets/{julia-repl-qSJnIioY.js → julia-repl-BWC_EUt4.js} +1 -1
- package/dist/web/assets/{kotlin-ClLd1Cdz.js → kotlin-DnDhVR1g.js} +1 -1
- package/dist/web/assets/{lasso-B0I67dw2.js → lasso-7_9jkuWm.js} +1 -1
- package/dist/web/assets/{latex-DvPph1u7.js → latex-7NcBU-sp.js} +1 -1
- package/dist/web/assets/{ldif-BWfQtjZJ.js → ldif-BKsNETfE.js} +1 -1
- package/dist/web/assets/{leaf-DmgNpBMJ.js → leaf-Dr24XSMP.js} +1 -1
- package/dist/web/assets/{less-CxGJcWdI.js → less-Da52wdLB.js} +1 -1
- package/dist/web/assets/{lisp-BZNHbc0E.js → lisp-CxEhJv_S.js} +1 -1
- package/dist/web/assets/{livecodeserver-Dpp84JfD.js → livecodeserver-DyLLEQa3.js} +1 -1
- package/dist/web/assets/{livescript-BSC1lg3t.js → livescript-DuMxIrKU.js} +1 -1
- package/dist/web/assets/{llvm-B35qq8lz.js → llvm-M9yuLNva.js} +1 -1
- package/dist/web/assets/{lsl-BkjjsTSP.js → lsl-BP2wVZAx.js} +1 -1
- package/dist/web/assets/{lua-DSjnYpp0.js → lua-B0U8rByV.js} +1 -1
- package/dist/web/assets/{makefile-DW6vgYPi.js → makefile-DL3DBvu0.js} +1 -1
- package/dist/web/assets/{markdown-Bl6sbJBs.js → markdown-jLDab-Ns.js} +1 -1
- package/dist/web/assets/{mathematica-dpZ_SDeq.js → mathematica-2lChxOtk.js} +1 -1
- package/dist/web/assets/{matlab-CtVSOG7n.js → matlab-BbPZe1tR.js} +1 -1
- package/dist/web/assets/{maxima-DH80P9D3.js → maxima-BdT1lNyu.js} +1 -1
- package/dist/web/assets/{mel-DU5TDVW8.js → mel-CxSMh57a.js} +1 -1
- package/dist/web/assets/{mercury-DUzHVNG5.js → mercury-e3yoICSq.js} +1 -1
- package/dist/web/assets/{mipsasm-BxfSTkrq.js → mipsasm--tpOiQ5I.js} +1 -1
- package/dist/web/assets/{mizar-BGnMNeUe.js → mizar-DN4-ri-A.js} +1 -1
- package/dist/web/assets/{mojolicious-DoZI_DtT.js → mojolicious-lKYGBrCw.js} +1 -1
- package/dist/web/assets/{monkey-DkZ9gdE3.js → monkey-CvEgDQbs.js} +1 -1
- package/dist/web/assets/{moonscript-BY2CxXjy.js → moonscript-BgjEcnsm.js} +1 -1
- package/dist/web/assets/{n1ql-B5rttbDP.js → n1ql-CtsXVmUQ.js} +1 -1
- package/dist/web/assets/{nginx-CogLOW1E.js → nginx-C6tprI2e.js} +1 -1
- package/dist/web/assets/{nim-qxtPbY-G.js → nim-B3y0lYop.js} +1 -1
- package/dist/web/assets/{nix-CjfFLu3k.js → nix-BczA7CjW.js} +1 -1
- package/dist/web/assets/{node-repl-DNGrUqi3.js → node-repl-DGgD94SZ.js} +1 -1
- package/dist/web/assets/{nsis-BENTXzWS.js → nsis-C_SmguFH.js} +1 -1
- package/dist/web/assets/{objectivec-CV82GVhm.js → objectivec-2mUTCw1f.js} +1 -1
- package/dist/web/assets/{ocaml-DkoqGK1N.js → ocaml-Cn7F37_9.js} +1 -1
- package/dist/web/assets/{openscad-ATnNCXEQ.js → openscad-CkenTSp3.js} +1 -1
- package/dist/web/assets/{oxygene-F0106W6C.js → oxygene-D7pQi21T.js} +1 -1
- package/dist/web/assets/{parser3-Vp_MoNKc.js → parser3--pt_dbbu.js} +1 -1
- package/dist/web/assets/{perl-4cJd_bow.js → perl-C0job7Qz.js} +1 -1
- package/dist/web/assets/{pf-BhMFycxG.js → pf-CfWQAyKz.js} +1 -1
- package/dist/web/assets/{pgsql-V64bhVbB.js → pgsql-CKshFhGu.js} +1 -1
- package/dist/web/assets/{php-DWJ6A3DK.js → php-CNUWaUh2.js} +1 -1
- package/dist/web/assets/{php-template-BVOmGk2e.js → php-template-BCrABFi4.js} +1 -1
- package/dist/web/assets/plaintext-ChYroSk0.js +1 -0
- package/dist/web/assets/{pony-BbULiKiE.js → pony-Bh4zwDWt.js} +1 -1
- package/dist/web/assets/{powershell-BO5stI2u.js → powershell-BuAlXUWx.js} +1 -1
- package/dist/web/assets/{processing-p4qRI2ON.js → processing-Bb5btTkH.js} +1 -1
- package/dist/web/assets/{profile-Cqftjjcy.js → profile-BOk16iWu.js} +1 -1
- package/dist/web/assets/{prolog-C6y5OgSl.js → prolog-MHE4b3nq.js} +1 -1
- package/dist/web/assets/{properties-SKQZ5Dp8.js → properties-CZfxER-Q.js} +1 -1
- package/dist/web/assets/{protobuf-Bbx9qj7k.js → protobuf-C_54DU4K.js} +1 -1
- package/dist/web/assets/{puppet-Cb9i3O5D.js → puppet-Z-t3L629.js} +1 -1
- package/dist/web/assets/{purebasic-CXZg-3_P.js → purebasic-CZKfEDHv.js} +1 -1
- package/dist/web/assets/{python-Dnm4CgaL.js → python-BvGG_JZE.js} +1 -1
- package/dist/web/assets/{python-repl-DB2G8meg.js → python-repl-DaUVEuDx.js} +1 -1
- package/dist/web/assets/{q-CFiWsp3S.js → q-CvWis_nQ.js} +1 -1
- package/dist/web/assets/{qml-CVr-cubu.js → qml-2XPxalcH.js} +1 -1
- package/dist/web/assets/{r-6pd8e5mF.js → r-DTTPbRAt.js} +1 -1
- package/dist/web/assets/{reasonml-CBzNew66.js → reasonml-CyJw_qBZ.js} +1 -1
- package/dist/web/assets/{rib-E-aP9pIZ.js → rib-GYMKCC1Y.js} +1 -1
- package/dist/web/assets/{roboconf-u7FD_k2a.js → roboconf-CV_6N_o7.js} +1 -1
- package/dist/web/assets/{routeros-N8znHVsL.js → routeros-C11OKG9F.js} +1 -1
- package/dist/web/assets/rpc-logger-TPNV75J4-CvwEntuM.js +1 -0
- package/dist/web/assets/{rsl-CJncyDtx.js → rsl-rez9LEUy.js} +1 -1
- package/dist/web/assets/{ruby-BSucYaNv.js → ruby-_B4GQ_7D.js} +1 -1
- package/dist/web/assets/{ruleslanguage-B7M9_k_Q.js → ruleslanguage-jRg89I6w.js} +1 -1
- package/dist/web/assets/{rust-D2qfbj2c.js → rust-qdkaNniS.js} +1 -1
- package/dist/web/assets/{sas-beaKYpLY.js → sas-BNjYSnSg.js} +1 -1
- package/dist/web/assets/{scala-DOVq_fKU.js → scala-CVLdU51z.js} +1 -1
- package/dist/web/assets/{scheme-CLJz0S61.js → scheme-Cneig3hI.js} +1 -1
- package/dist/web/assets/{scilab-D9apvp93.js → scilab-DxKCNrof.js} +1 -1
- package/dist/web/assets/{scss-B_Zcwi63.js → scss-DQ23aG9u.js} +1 -1
- package/dist/web/assets/{shell-BggyyMBD.js → shell-BgVIEdPP.js} +1 -1
- package/dist/web/assets/{smali-2rms4lQl.js → smali-KZ0XB6tA.js} +1 -1
- package/dist/web/assets/{smalltalk-C4GG9uT7.js → smalltalk-CYsrtMqX.js} +1 -1
- package/dist/web/assets/{sml-1w_0ctt0.js → sml-CwPjhShZ.js} +1 -1
- package/dist/web/assets/{sqf-CaS4ruMf.js → sqf-Dyh-UyfR.js} +1 -1
- package/dist/web/assets/{sql-C7zh9RdM.js → sql-BqwecpD_.js} +1 -1
- package/dist/web/assets/{sql_more-D6zZQkle.js → sql_more-CUF5pbmY.js} +1 -1
- package/dist/web/assets/{stan-CjKqvOwl.js → stan-Ddf5JFRA.js} +1 -1
- package/dist/web/assets/{stata-cr_xVBQP.js → stata-XlPupwqv.js} +1 -1
- package/dist/web/assets/{step21-DRY2Xbz_.js → step21-CucMyzRd.js} +1 -1
- package/dist/web/assets/{stylus-DY8mphAg.js → stylus-nj6mAxkC.js} +1 -1
- package/dist/web/assets/{subunit-2GQIFNvg.js → subunit-CiXRLQcz.js} +1 -1
- package/dist/web/assets/{swift-B-_h5diy.js → swift-CIdqZMKK.js} +1 -1
- package/dist/web/assets/{taggerscript-ClJ4uzlC.js → taggerscript-m6_DnfoH.js} +1 -1
- package/dist/web/assets/{tap-ejkButga.js → tap-DbEec7Q2.js} +1 -1
- package/dist/web/assets/{tcl-CTBxJ1qz.js → tcl-n8aGQ2H6.js} +1 -1
- package/dist/web/assets/{thrift-DKXWKeM1.js → thrift-J1PtwUUl.js} +1 -1
- package/dist/web/assets/{tp-CObaeuax.js → tp-CnbYKLYQ.js} +1 -1
- package/dist/web/assets/{twig-qYz7JFbM.js → twig-BEBOjZvM.js} +1 -1
- package/dist/web/assets/{typescript-Bdq0SHyX.js → typescript-BwvhN9Dw.js} +1 -1
- package/dist/web/assets/{vala-BCJueeDJ.js → vala-BSRZa9oU.js} +1 -1
- package/dist/web/assets/{vbnet-2-jIOY_E.js → vbnet-BhOhpmOF.js} +1 -1
- package/dist/web/assets/{vbscript-CRm5WK-Q.js → vbscript-BpRpQGFw.js} +1 -1
- package/dist/web/assets/{vbscript-html-CTExBULV.js → vbscript-html-z-0GWV6e.js} +1 -1
- package/dist/web/assets/{verilog-BwKgCjRJ.js → verilog-CE-mWkfc.js} +1 -1
- package/dist/web/assets/{vhdl-BK1067xk.js → vhdl-hkUj0_K7.js} +1 -1
- package/dist/web/assets/{vim-COlOCSo-.js → vim-XK7W3JN3.js} +1 -1
- package/dist/web/assets/{x86asm-C17gpHUe.js → x86asm-D0cmZUWd.js} +1 -1
- package/dist/web/assets/{xl-B1emAXno.js → xl-dRKa8VcI.js} +1 -1
- package/dist/web/assets/{xml-CTMmdpjI.js → xml-BGrFHpDb.js} +1 -1
- package/dist/web/assets/{xquery-C2Kg_HkA.js → xquery-B7qeO1Sf.js} +1 -1
- package/dist/web/assets/{yaml-CmCZduek.js → yaml-DErfnXTM.js} +1 -1
- package/dist/web/assets/{zephir-gGr1zHBT.js → zephir-O2ApOQbM.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/README.md
CHANGED
|
@@ -413,7 +413,6 @@ See our [contributing guide](https://github.com/mcp-use/mcp-use/blob/main/CONTRI
|
|
|
413
413
|
## 📚 Learn More
|
|
414
414
|
|
|
415
415
|
- [Inspector Documentation](https://mcp-use.com/docs/inspector) - Complete usage guide and tutorials
|
|
416
|
-
- [Self-Hosting Guide](https://mcp-use.com/docs/inspector/self-hosting) - Deploy your own instance
|
|
417
416
|
- [mcp-use Documentation](https://mcp-use.com/docs) - Full framework documentation
|
|
418
417
|
- [Model Context Protocol](https://modelcontextprotocol.io) - Official MCP specification
|
|
419
418
|
- [GitHub Repository](https://github.com/mcp-use/mcp-use) - Source code and examples
|
package/dist/cdn/inspector.js
CHANGED
|
@@ -26907,7 +26907,7 @@ function of() {
|
|
|
26907
26907
|
let e = window.__INSPECTOR_VERSION__;
|
|
26908
26908
|
if (e !== void 0) return e;
|
|
26909
26909
|
}
|
|
26910
|
-
return "12.0.
|
|
26910
|
+
return "12.0.4-canary.0";
|
|
26911
26911
|
} catch {
|
|
26912
26912
|
return "0.0.0";
|
|
26913
26913
|
}
|
|
@@ -48450,9 +48450,9 @@ var TM, EM, DM, OM, kM, AM, jM, MM, NM, PM, FM, IM, LM, RM, zM, BM, VM, HM, UM,
|
|
|
48450
48450
|
}(), uce);
|
|
48451
48451
|
}));
|
|
48452
48452
|
//#endregion
|
|
48453
|
-
//#region ../mcp-use/dist/chunk-
|
|
48453
|
+
//#region ../mcp-use/dist/chunk-4F3PXPHS.js
|
|
48454
48454
|
Xp();
|
|
48455
|
-
var hce = "1.34.
|
|
48455
|
+
var hce = "1.34.4-canary.0";
|
|
48456
48456
|
function _R() {
|
|
48457
48457
|
return hce;
|
|
48458
48458
|
}
|
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.0",
|
|
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"
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import {
|
|
2
|
+
registerInspectorRoutes
|
|
3
|
+
} from "./chunk-A4VH7AIP.js";
|
|
4
|
+
import {
|
|
5
|
+
registerStaticRoutes
|
|
6
|
+
} from "./chunk-UTW44YSH.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-UTW44YSH.js";
|
|
17
17
|
import {
|
|
18
18
|
getInspectorVersion
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-R4ISUE7T.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-57KIBVKX.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-UTW44YSH.js";
|
|
16
|
+
import "./chunk-R4ISUE7T.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-57KIBVKX.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-UTW44YSH.js";
|
|
10
|
+
import "./chunk-R4ISUE7T.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-UTW44YSH.js";
|
|
17
|
+
import "./chunk-R4ISUE7T.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-UTW44YSH.js";
|
|
5
|
+
import "./chunk-R4ISUE7T.js";
|
|
6
6
|
import "./chunk-IDMHJUEM.js";
|
|
7
7
|
import "./chunk-PKBMQBKP.js";
|
|
8
8
|
export {
|