feat: add GUI workflow scripts alongside MCP Server (CLI)#28
Open
xin-yi33 wants to merge 1 commit into
Open
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
在 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 可同时使用,共享浏览器实例。