MCPcopy
hub / github.com/wuchangming/spy-debugger

github.com/wuchangming/spy-debugger @1.0.1 sqlite

repository ↗ · DeepWiki ↗ · release 1.0.1 ↗
13 symbols 28 edges 16 files 0 documented · 0%
README

关于spy-debugger

1、一站式页面调试工具,远程调试任何手机浏览器页面,任何手机移动端webview(如:微信,HybirdApp等)。
2、spy-debugger内部集成了weinre
3、暂时未支持 HTTPS页面的调试。

安装

Windows 下

    npm install spy-debugger -g

Mac 下

    sudo npm install spy-debugger -g

Demo

轻轻松松修改微信小游戏页面^.^

三分钟上手

第一步:手机和PC保持在同一网络下(比如同时连到一个Wi-Fi下)

第二步:命令行输入spy-debugger,按提示用浏览器打开相应地址。

第三步:设置手机的HTTP代理,代理IP地址设置为PC的IP地址,端口为spy-debugger的启动端口(默认端口:9888)。

第四步:用手机浏览器访问你要调试的页面即可。

自定义端口

(默认端口:9888)

spy-debugger port 8888

更多

spy-debugger原理是集成了weinre,简化了weinre需要给每个调试的页面添加js代码。spy-debugger原理是拦截所有html页面请求注入weinre所需要的js代码。让页面调试更加方便。

暂时未支持 HTTPS

Core symbols most depended-on inside this repo

responseHandler
called by 4
src/proxy/SpyProxy.js
createProxyServer
called by 3
src/proxy/SpyProxy.js
defineProperties
called by 2
lib/proxy/SpyProxy.js
requestHandler
called by 2
src/proxy/SpyProxy.js
ignoreResponse
called by 2
src/proxy/SpyProxy.js
interceptResponse
called by 2
src/proxy/SpyProxy.js
_classCallCheck
called by 1
lib/proxy/SpyProxy.js
startWeinreServer
called by 1
lib/weinre/weinreDelegate.js

Shape

Method 6
Function 5
Class 2

Languages

TypeScript100%

Modules by API surface

src/proxy/SpyProxy.js8 symbols
lib/proxy/SpyProxy.js3 symbols
src/weinre/weinreDelegate.js1 symbols
lib/weinre/weinreDelegate.js1 symbols

Dependencies from manifests, versioned

babel-cli6.6.5 · 1×
commander2.9.0 · 1×
debug2.2.0 · 1×
ip1.1.2 · 1×
through22.0.1 · 1×
weinre2.0.0-pre-I0Z7U9OV · 1×

For agents

$ claude mcp add spy-debugger \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact