Skip to content

feat: add GUI workflow scripts alongside MCP Server (CLI)#28

Open
xin-yi33 wants to merge 1 commit into
zhizhuodemao:mainfrom
xin-yi33:main
Open

feat: add GUI workflow scripts alongside MCP Server (CLI)#28
xin-yi33 wants to merge 1 commit into
zhizhuodemao:mainfrom
xin-yi33:main

Conversation

@xin-yi33

Copy link
Copy Markdown

概述

在 MCP Server(CLI 模式)基础上,新增 GUI 工作流脚本层。GUI 和 CLI 共享同一套 CDP 连接层,可同时使用同一浏览器实例,互不干扰。

新增内容

scripts/gui/cdp-client.mjs

CDP 连接公共模块。MCP Server 内部和 GUI 脚本均可引用。

scripts/gui/discover-apis.mjs

API 发现工具。自动捕获所有符合筛选条件的 API 端点。

scripts/gui/intercept-response.mjs

网络响应拦截工具。拦截 API 响应实时修改,可用于绕过地域检测。

scripts/gui/bulk-collect.mjs

批量分页采集工具。自动遍历分页 API,合并输出为 JSON 文件。

使用方式

CLI 模式(原有):npx js-reverse-mcp
GUI 模式(新增):node scripts/gui/discover-apis.mjs --url URL --port 9222

GUI 和 CLI 可同时使用,共享浏览器实例。

- Add cdp-client.mjs: shared CDP connection layer (GUI and CLI)
- Add discover-apis.mjs: discover API endpoints via browser
- Add intercept-response.mjs: intercept and modify API responses
- Add bulk-collect.mjs: paginated data collection with resume support
- Update README with GUI scripts usage examples

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant