cdpm-mcp 0.1.8 → 0.1.9
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/CHANGELOG.md +5 -0
- package/README.ko.md +54 -7
- package/README.md +54 -7
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
버전 번호는 `package.json`에서 관리해요. 확인: `cdpm --version` (직접 받았으면 `node dist/cli.js --version`).
|
|
4
4
|
업데이트 방법은 README의 "업데이트" 항목을 보세요.
|
|
5
5
|
|
|
6
|
+
## 0.1.9 (2026-10-17)
|
|
7
|
+
|
|
8
|
+
- README 첫 화면을 새로 썼어요 (영어·한국어): 소개, 실제 실행 시연 GIF, 무엇이 다른가, 빠른 시작, 다른 브라우저 MCP와 비교표, 보안 안내. 대표 이미지와 시연 GIF는 `docs/media/`에 있고, npm 페이지에서도 보이도록 전체 주소로 걸었어요.
|
|
9
|
+
- 공식 MCP Registry 등록을 위해 `package.json`에 `mcpName`(`io.github.IGELHARINE/cdpm`)을, 저장소에 `server.json`을 넣었어요. 코드는 바뀌지 않았어요.
|
|
10
|
+
|
|
6
11
|
## 0.1.8 (2026-10-17)
|
|
7
12
|
|
|
8
13
|
- 슬롯 Chrome이 실행 중에 업데이트되면 새 탭이 빈 채로 멈추던 문제를 해결했어요. Windows는 Chrome 업데이트가 `chrome.exe`를 새 버전으로 바꿔치기하는데, 옛 버전으로 도는 Chrome이 새 탭용 화면 프로세스(렌더러)를 띄울 때 바뀐 실행 파일을 써서 버전이 맞지 않아 바로 죽어요(실측: 154로 돌던 슬롯은 새 탭이 응답 없음, 155로 뜬 슬롯은 정상). 이미 열려 있던 탭은 멀쩡하지만, 다른 사이트로 넘어가거나 새로 고치면 죽을 수 있어요.
|
package/README.ko.md
CHANGED
|
@@ -1,14 +1,55 @@
|
|
|
1
|
-
# CDPM
|
|
1
|
+
# CDPM
|
|
2
2
|
|
|
3
3
|
[English README](README.md)
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
CDPM은 Chrome을 최대 30개("슬롯") 정해진 디버깅 포트에 띄워 두고, 여러 Claude Code 세션과 서브에이전트가 번호만으로 조종하게 해 주는 MCP 서버예요. *"3번 켜줘"*, *"1번에서 로그인하고 2번에서 양식 채워줘"* 식으로 써요. 슬롯마다 프로필이 따로 있는 평범한 Chrome이라, 로그인이 다음에도 유지되고 사람이 쓰는 브라우저와 똑같아요.
|
|
8
|
+
|
|
9
|
+
여러 Claude 에이전트를 로그인된 업무용 웹사이트에 동시에 붙여 쓰다가 만들게 됐어요. 정작 어려운 건 버튼 누르기가 아니라, 여러 세션이 브라우저를 나눠 쓰고, 브라우저가 꺼지지 않게 하고, Chrome 자체가 일을 막을 때 알아채는 쪽이었어요.
|
|
10
|
+
|
|
11
|
+
## 시연
|
|
12
|
+
|
|
13
|
+
헤드리스 슬롯 11~19번에 서브에이전트 9개. 11~18번은 각자 GitHub 저장소 페이지를 읽어 `slot_send`로 19번에 숫자를 보내고, 19번은 `slot_inbox`로 기다렸다가 비교표를 만들어 열어요. 실제 실행을 CDP로 녹화했고, 걸린 시간은 약 45초예요.
|
|
14
|
+
|
|
15
|
+

|
|
16
|
+
|
|
17
|
+
## 무엇이 다른가
|
|
18
|
+
|
|
19
|
+
- **번호로 부르는 공유 브라우저.** 슬롯 *N*은 포트 `14049 + N`을 쓰고 프로필 폴더가 따로 있어요. 세션이 브라우저를 소유하지 않고 슬롯 번호로 불러 써요. 두 세션이 한 슬롯의 다른 탭에서 동시에 일할 수 있고, 명령은 탭마다 줄을 세워서 두 에이전트가 같은 탭에 입력해도 섞이지 않아요. 통합 테스트로 확인하고, 세션 3개가 한 슬롯을 600바퀴 함께 써도 메모리·탭·잠금 파일이 늘지 않는 오래 쓰기 시험도 있어요.
|
|
20
|
+
- **CDP로 직접 다루는 평범한 Chrome.** Playwright·Puppeteer를 쓰지 않아요. 클릭과 키 입력은 `Input.dispatch*Event`로 보내서 페이지에는 진짜 이벤트로 보여요. Chrome을 `--enable-automation` 없이 띄워서 `navigator.webdriver`가 `false`이고, `Runtime.enable`을 쓰지 않으며, 페이지를 읽는 스크립트는 모두 페이지가 볼 수 없는 분리된 공간(isolated world)에서 돌아요. 스냅샷은 Shadow DOM 안쪽까지 읽어요. 흔한 자동화 흔적이 없다는 뜻이지, 접속 빈도나 IP로 막는 것까지 피한다는 뜻은 아니에요. 슬롯 9개가 동시에 구글 검색을 하면 로봇 확인이 떠요.
|
|
21
|
+
- **흔한 고장에 버텨요.** 슬롯은 따로 떨어진 프로세스로 띄워서 VS Code나 Claude Code를 닫아도(줄기째 강제 종료돼도) 살아 있어요. 재부팅 뒤에는 슬롯 포트에 응답하는 Chrome에 다시 붙고, 작업표시줄 아이콘을 붙이기 전에 프로세스 번호를 다시 확인해요. 슬롯이 켜진 동안 Chrome이 업데이트되면(Windows는 `chrome.exe`를 바꿔치기해서 옛 Chrome이 화면 프로세스를 못 띄우고 새 탭이 빈 채로 멈춰요) 그 슬롯을 새 버전으로 다시 켜고 탭을 다시 열어요.
|
|
22
|
+
- **에이전트끼리 협업.** `slot_send` / `slot_inbox`로 슬롯 번호와 에이전트 이름을 주소 삼아 메시지를 주고받아요. 디스크에 저장돼서 Chrome을 다시 켜도 남고, 기다리던 에이전트는 메시지가 오는 즉시 깨어나요.
|
|
23
|
+
- **페이지 밖 브라우저 화면도 처리.** JavaScript 알림창은 알려 주고 `browser_dialog`로 처리해요. Windows에서는 권한 말풍선("이 기기의 다른 앱 및 서비스에 액세스", 알림, 위치 등)을 UI Automation으로 찾아 `browser_permission`으로 답해요. 에이전트 조작으로 뜨는 파일 선택·인쇄 창은 OS 창을 띄우지 않고 가로채요.
|
|
24
|
+
|
|
25
|
+
## 빠른 시작
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
npm install -g cdpm-mcp
|
|
29
|
+
cdpm install
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Claude Code를 다시 시작하고, 예를 들어 *"1번 슬롯 창으로 켜서 github.com 열어줘"*라고 해 보세요.
|
|
33
|
+
|
|
34
|
+
## 다른 브라우저 MCP와 비교
|
|
35
|
+
|
|
36
|
+
| | CDPM | Playwright MCP | Chrome DevTools MCP |
|
|
37
|
+
| --- | --- | --- | --- |
|
|
38
|
+
| 브라우저 | 번호 슬롯 최대 30개, 모든 세션이 공유 | 서버 프로세스마다 하나 | 서버 프로세스마다 하나 |
|
|
39
|
+
| 여러 세션이 한 브라우저를 함께 | 됨: 탭별 줄 세우기, 남의 탭 경고 | 목표가 아님 | 목표가 아님 |
|
|
40
|
+
| 로그인 유지 | 됨, 슬롯마다 프로필 | 됨, 프로필 하나 (`--isolated`면 매번 새로) | 됨, 프로필 하나 (`--isolated`면 매번 새로) |
|
|
41
|
+
| 조작 방식 | CDP 직접 | Playwright | Puppeteer |
|
|
42
|
+
| 에이전트끼리 메시지 | 기본 제공 | 없음 | 없음 |
|
|
43
|
+
| 슬롯별 작업표시줄 아이콘 | Windows 작업표시줄, macOS Dock | 없음 | 없음 |
|
|
44
|
+
| 다른 브라우저 | Chrome만 | Chromium, Firefox, WebKit | Chrome만 |
|
|
45
|
+
|
|
46
|
+
두 도구 모두 좋은 도구예요. Firefox·WebKit이 필요하면 Playwright MCP, 성능 기록이나 DevTools 패널이 필요하면 Chrome DevTools MCP가 더 맞아요. 두 도구 칸은 2026년 10월 기준 각 문서를 바탕으로 정리했어요.
|
|
47
|
+
|
|
48
|
+
## 보안
|
|
10
49
|
|
|
11
|
-
|
|
50
|
+
슬롯 포트는 `127.0.0.1`에서만 열리지만, 이 PC의 다른 프로그램은 누구나 접속해서 그 슬롯의 로그인된 세션으로 조작할 수 있어요. 켜진 슬롯은 잠기지 않은 브라우저처럼 다뤄 주세요. 믿을 수 없는 프로그램을 돌리는 동안에는 중요한 계정을 슬롯에 로그인해 두지 마세요. 꺼진 슬롯도 프로필은 디스크에 남아요(`cdpm purge N`으로 지워요).
|
|
51
|
+
|
|
52
|
+
## 자세히
|
|
12
53
|
|
|
13
54
|
- **순수 CDP**: Playwright, Puppeteer, 우회 패치를 쓰지 않아요. 디버깅 포트만 연 일반 Chrome에 진짜 입력 이벤트를 보내요.
|
|
14
55
|
- **번호 슬롯**: 슬롯 N은 CDP 포트 `14049 + N`을 써요 (1번 = 14050 … 30번 = 14079). 흔히 쓰이는 9222와 부딪히지 않도록 고른 구간이고, 이 구간을 다른 프로그램이 쓰면 환경변수 `CDPM_PORT_BASE`로 시작 번호를 옮길 수 있어요. 슬롯마다 프로필 폴더가 따로 있어서 로그인이 슬롯별로 유지돼요. 범위 밖 포트는 다루지 않아요.
|
|
@@ -31,6 +72,12 @@
|
|
|
31
72
|
|
|
32
73
|
## 설치
|
|
33
74
|
|
|
75
|
+
> **설치를 부탁받았다면 (Claude·AI 에이전트용)** 아래 순서대로 하세요.
|
|
76
|
+
> 1. Node.js 22 이상과 Google Chrome이 있는지 확인해요. 없으면 사용자에게 알리고 멈춰요.
|
|
77
|
+
> 2. `npm install -g cdpm-mcp@latest` 를 실행해요 (이미 설치돼 있어도 그대로 실행 → 최신으로 업데이트).
|
|
78
|
+
> 3. `cdpm install` 을 실행해요 (`cdpm`을 못 찾으면 `node "$(npm root -g)/cdpm-mcp/dist/cli.js" install`). Claude Code 등록과 상태줄·규칙·서브에이전트·권한 설정을 한 번에 해요. 예전에 git으로 받아 등록해 둔 것도 새 위치로 바꿔요.
|
|
79
|
+
> 4. Chrome 슬롯을 켜지 말고, 질문하거나 내부 설명을 덧붙이지 마세요. 성공하면 "CDPM <버전> 설치 완료. Claude Code를 다시 시작하면 쓸 수 있어요." 한 줄만 답해요 (버전은 `cdpm --version`). 실패하면 어느 단계에서 왜 실패했는지만 말해요.
|
|
80
|
+
|
|
34
81
|
```sh
|
|
35
82
|
npm install -g cdpm-mcp
|
|
36
83
|
cdpm install
|
package/README.md
CHANGED
|
@@ -1,14 +1,55 @@
|
|
|
1
|
-
# CDPM
|
|
1
|
+
# CDPM
|
|
2
2
|
|
|
3
3
|
[한국어 README](README.ko.md)
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
CDPM is an MCP server that keeps up to 30 Chrome instances ("slots") on fixed debugging ports and lets any number of Claude Code sessions and subagents drive them by number: *"open slot 3"*, *"log in on slot 1, then fill the form in slot 2"*. Each slot is an ordinary Chrome with its own profile, so logins stick between runs and the browser is the same one you would use by hand.
|
|
8
|
+
|
|
9
|
+
It grew out of running several Claude agents against logged-in web apps at once, where the hard parts were not clicking buttons but sharing browsers between sessions, keeping them alive, and noticing when Chrome itself got in the way.
|
|
10
|
+
|
|
11
|
+
## Demo
|
|
12
|
+
|
|
13
|
+
Nine subagents on slots 11-19 (headless). Slots 11-18 each read a GitHub repository page and send the numbers to slot 19 with `slot_send`; slot 19 waits on `slot_inbox`, writes a comparison table and opens it. Recorded over CDP from a real run: about 45 seconds of wall time, one frame per pass over the nine slots.
|
|
14
|
+
|
|
15
|
+

|
|
16
|
+
|
|
17
|
+
## What is different
|
|
18
|
+
|
|
19
|
+
- **Shared, numbered browsers.** Slot *N* listens on port `14049 + N` and keeps its profile in its own folder. Sessions don't own a browser; they address a slot. Two sessions can work in the same slot on different tabs: commands are queued per tab, so two agents typing into one tab don't interleave. This is covered by an integration test and by a long test where three sessions share one slot for 600 rounds without memory, tab or lock-file growth.
|
|
20
|
+
- **Plain Chrome over CDP.** No Playwright or Puppeteer. Clicks and keys are sent with `Input.dispatch*Event`, so pages receive trusted events. Chrome is started without `--enable-automation`, so `navigator.webdriver` stays `false`. CDPM never calls `Runtime.enable`, and every script it runs to read the page lives in an isolated world the page cannot see; snapshots pierce shadow roots. That removes the usual automation fingerprints. It does not get you past rate limits or IP reputation: nine slots searching Google at the same moment will still get a CAPTCHA.
|
|
21
|
+
- **Survives the boring failures.** Slots are started detached, so closing VS Code or Claude Code (even with a process-tree kill) leaves them running. After a reboot, CDPM re-attaches to whatever Chrome answers on the slot ports and re-checks its process ID before touching taskbar icons. If Chrome updates itself while a slot is running (on Windows the update swaps `chrome.exe`, the old browser can no longer start renderers, and new tabs hang blank), CDPM restarts that slot on the new version and reopens its tabs.
|
|
22
|
+
- **Agents can coordinate.** `slot_send` / `slot_inbox` deliver messages addressed by slot and agent name. They are stored on disk, so they survive a Chrome restart, and a waiting agent wakes as soon as one arrives.
|
|
23
|
+
- **Browser UI the page can't see.** JavaScript dialogs are reported and answered with `browser_dialog`. On Windows, permission bubbles ("access other apps and services on this device", notifications, location) are detected through UI Automation and answered with `browser_permission`. File pickers and print dialogs triggered by an agent's action are intercepted instead of opening OS windows.
|
|
24
|
+
|
|
25
|
+
## Quick start
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
npm install -g cdpm-mcp
|
|
29
|
+
cdpm install
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Restart Claude Code and ask for a slot, for example: *"Open slot 1 with a window and go to github.com."*
|
|
33
|
+
|
|
34
|
+
## Compared with other browser MCP servers
|
|
35
|
+
|
|
36
|
+
| | CDPM | Playwright MCP | Chrome DevTools MCP |
|
|
37
|
+
| --- | --- | --- | --- |
|
|
38
|
+
| Browsers | up to 30 numbered slots shared by every session | one per server process | one per server process |
|
|
39
|
+
| Several sessions on one browser | yes: per-tab queues, ownership warnings | not a design goal | not a design goal |
|
|
40
|
+
| Logins kept between runs | yes, one profile per slot | yes, one persistent profile (`--isolated` for a fresh one) | yes, one persistent profile (`--isolated` for a fresh one) |
|
|
41
|
+
| Driven by | raw CDP | Playwright | Puppeteer |
|
|
42
|
+
| Messages between agents | built in | no | no |
|
|
43
|
+
| Per-slot taskbar icons | Windows taskbar, macOS Dock | no | no |
|
|
44
|
+
| Other browsers | Chrome only | Chromium, Firefox, WebKit | Chrome only |
|
|
45
|
+
|
|
46
|
+
The other two are good tools and the better choice if you need Firefox or WebKit (Playwright) or performance traces and DevTools panels (Chrome DevTools MCP). Their columns reflect their documentation as of October 2026.
|
|
47
|
+
|
|
48
|
+
## Security
|
|
10
49
|
|
|
11
|
-
|
|
50
|
+
Slot ports listen on `127.0.0.1` only, but any process on this machine can connect to them and act with that slot's logged-in sessions. Treat a running slot like an unlocked browser: don't leave sensitive accounts logged in on slots while running software you don't trust. Closed slots keep their profiles on disk (`cdpm purge N` deletes one).
|
|
51
|
+
|
|
52
|
+
## Details
|
|
12
53
|
|
|
13
54
|
- **Pure CDP.** No Playwright, no Puppeteer, no stealth patches. A normal Chrome with a debugging port, driven with real input events.
|
|
14
55
|
- **Numbered slots.** Slot *N* uses CDP port `14049 + N` (slot 1 = 14050 … slot 30 = 14079) and its own profile folder. The range avoids the common default 9222; set `CDPM_PORT_BASE` to move it if something else uses those ports. Ports outside that range are not managed.
|
|
@@ -31,6 +72,12 @@ An MCP server that runs **Chrome slots 1–30** over the Chrome DevTools Protoco
|
|
|
31
72
|
|
|
32
73
|
## Install
|
|
33
74
|
|
|
75
|
+
> **Asked to install this? (for Claude / AI agents)** Do these steps in order.
|
|
76
|
+
> 1. Check that Node.js 22+ and Google Chrome are installed. If not, tell the user and stop.
|
|
77
|
+
> 2. Run `npm install -g cdpm-mcp@latest` (also when already installed: this updates it).
|
|
78
|
+
> 3. Run `cdpm install` (if `cdpm` isn't found: `node "$(npm root -g)/cdpm-mcp/dist/cli.js" install`). It registers CDPM with Claude Code and sets up the status line, rules, subagent and permissions; an older git-clone registration is switched to the new location.
|
|
79
|
+
> 4. Do not launch any Chrome slot, ask questions, or explain internals. On success reply with exactly one line in the user's language, e.g. "CDPM <version> installed. Restart Claude Code to use it." (version: `cdpm --version`). If a step failed, say only which step and why.
|
|
80
|
+
|
|
34
81
|
```sh
|
|
35
82
|
npm install -g cdpm-mcp
|
|
36
83
|
cdpm install
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cdpm-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
|
+
"mcpName": "io.github.IGELHARINE/cdpm",
|
|
4
5
|
"description": "CDP Manager - an MCP server that runs Chrome slots 1-30 over CDP so multiple Claude agents can share and drive them by number",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"bin": {
|