MCPcopy Index your code
hub / github.com/241x/cdpnetool

github.com/241x/cdpnetool @v1.2.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.2.2 ↗ · + Follow
875 symbols 2,473 edges 92 files 363 documented · 41%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

cdpnetool

English | 简体中文

cdpnetool Logo

Network Request Interception and Modification Tool Based on Chrome DevTools Protocol

cdpnetool Preview

License Release

Introduction

cdpnetool is a powerful network request interception tool that enables precise control and flexible modification of browser HTTP/HTTPS requests through the Chrome DevTools Protocol. No certificate installation, no code writing required - complete complex network debugging tasks through a visual interface.

Core Features: - ✅ Real-time interception of browser network requests and responses - ✅ Visual rule configuration with rich matching conditions and modification behaviors - ✅ Configuration management: multi-configuration saving, import/export, quick switching - ✅ Event monitoring: DevTools-style detail panel - ✅ Request preview: full traffic viewing with capture on/off support - ✅ System settings: language switching (Chinese/English), theme mode, browser configuration - ✅ No certificate required: direct browser control based on CDP protocol

Community

cdpnetool-configs - Find configurations you need or Share configurations you created

Quick Start

Installation

Windows Users:

Download the latest installer from Releases and run it.

Other Platforms:

macOS and Linux platforms require building from source, see Documentation.

Basic Usage

  1. Launch cdpnetool
  2. Click "Launch Browser" button
  3. Click "Connect" to connect to the browser
  4. Attach the page to intercept in the Targets panel
  5. Create rules and enable configuration in the Rules panel
  6. View matched requests in the Events panel
  7. (Optional) Enable full traffic monitoring in the Network panel

Documentation

Use Cases

  • 🔧 Frontend Development: Mock API data, test error states, debug CORS issues
  • 🧪 Software Testing: Boundary testing, error simulation, security testing
  • 🔍 API Debugging: Intercept and analyze encrypted requests, modify parameters to probe behavior
  • 🎨 Personalization: Ad blocking, network acceleration, feature enhancement

Tech Stack

  • Frontend: React + TypeScript + Vite + TailwindCSS
  • Backend: Go + Wails v2
  • Protocol: Chrome DevTools Protocol (CDP)
  • Database: SQLite
  • Internationalization: react-i18next (Chinese/English support)

Development

# Clone project
git clone https://github.com/241x/cdpnetool.git
cd cdpnetool

# Install Wails CLI
go install github.com/wailsapp/wails/v2/cmd/wails@latest

# Run in development mode
wails dev

# Build production version
wails build

For detailed development instructions, see Quick Start - Building from Source.

Contributing

Issues and Pull Requests are welcome!

Discussion Group

Join QQ group 734393923 to discuss usage and share configurations:

QQ Group

License

GPL-3.0 License

This project is open-sourced under the GNU General Public License v3.0.

Related Links

Extension points exported contracts — how you extend this code

Service (Interface)
Service 服务接口 [1 implementers]
pkg/api/service.go
Logger (Interface)
Logger 定义结构化日志接口 [1 implementers]
internal/logger/logger.go
TxConfigurer (Interface)
TxConfigurer 事务配置接口 [1 implementers]
internal/storage/repo/base.go
Position (Interface)
(no doc)
frontend/wailsjs/runtime/runtime.d.ts
Request (Interface)
(no doc)
frontend/src/types/events.ts
Filter (Interface)
Filter 筛选器接口
internal/storage/repo/base.go
Size (Interface)
(no doc)
frontend/wailsjs/runtime/runtime.d.ts
Response (Interface)
(no doc)
frontend/src/types/events.ts

Core symbols most depended-on inside this repo

NewNop
called by 57
internal/logger/logger.go
toast
called by 51
frontend/src/hooks/use-toast.ts
Debug
called by 47
internal/logger/logger.go
NewConfig
called by 43
pkg/rulespec/types.go
Error
called by 43
internal/logger/logger.go
Err
called by 43
internal/logger/logger.go
OK
called by 42
pkg/api/response.go
translateError
called by 42
internal/gui/errors.go

Shape

Function 384
Method 283
Struct 71
Interface 61
Class 60
TypeAlias 11
FuncType 5

Languages

Go52%
TypeScript48%

Modules by API surface

frontend/wailsjs/go/models.ts141 symbols
frontend/wailsjs/runtime/runtime.js53 symbols
internal/gui/app.go48 symbols
frontend/wailsjs/go/gui/App.js41 symbols
internal/storage/repo/base.go37 symbols
internal/engine/engine_test.go23 symbols
frontend/src/components/rules/ActionEditor.tsx22 symbols
pkg/rulespec/types.go21 symbols
pkg/domain/types.go20 symbols
internal/service/service.go20 symbols
internal/storage/repo/settings.go19 symbols
internal/logger/logger.go18 symbols

For agents

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

⬇ download graph artifact