pagerunner 0.1.1

Browser automation MCP server for AI agents — drives real Chrome with your profiles
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
# MCP Publication & Testing Plan

**Goal**: Publish Pagerunner MCP on official registries and test with Dispatch/Cowork
**Status**: Ready for Phase 1 (Publication Checklist)
**Target**: v0.1.1+

---

## Phase 1: Publication Requirements Checklist

### A. Metadata & Manifest

**Current Status**: ✅ Mostly Complete

- [x] README.md with setup instructions
- [x] GitHub repository (public)
- [x] MIT License
- [x] v0.1.1 release with binaries
- [ ] **TODO**: Create `mcp.json` registry entry (formal MCP metadata)
- [ ] **TODO**: Create `mcp-manifest.json` for official registry
- [ ] **TODO**: Add OpenAPI/JSON Schema for all tools

### B. Documentation

**Current Status**: ✅ Excellent

- [x] Setup instructions (quick start)
- [x] CLI subcommands reference
- [x] Feature documentation (anonymization, stealth, snapshots)
- [x] Testing guidelines
- [x] Known issues
- [x] Hallucination prevention guide (NEW in v0.1.1)
- [x] Monitoring guide (NEW in v0.1.1)
- [ ] **TODO**: MCP-specific documentation for registry
- [ ] **TODO**: Example use cases for different LLM platforms

### C. Security & Compliance

**Current Status**: ✅ Good

- [x] Security policy (allowed domains, navigation budget)
- [x] PII anonymization options
- [x] Audit logging
- [x] Prompt injection blocking
- [x] Content sanitization
- [ ] **TODO**: Security disclosure policy
- [ ] **TODO**: Signed releases (GPG keys)
- [ ] **TODO**: Supply chain security checklist

### D. Distribution

**Current Status**: ✅ Complete for v0.1.1

- [x] Pre-built binaries (macOS arm64, x86_64, Linux x86_64)
- [x] Source distribution (GitHub releases)
- [x] Cargo package support
- [ ] **TODO**: Homebrew tap (macOS)
- [ ] **TODO**: APT/DNF packages (Linux)
- [ ] **TODO**: Windows binary (if applicable)

### E. Testing & Validation

**Current Status**: ⚠️ Partial

- [x] 232 unit tests passing
- [x] Real-world validation (agent-browser, Playwright comparison)
- [x] CLI integration tests
- [ ] **TODO**: MCP protocol compliance testing
- [ ] **TODO**: Multi-client testing (Claude Desktop, other MCP clients)
- [ ] **TODO**: Dispatch/Cowork integration testing

---

## Phase 2: Official Registry Options

### Option A: Anthropic Official Registry (Recommended)

**Status**: Not yet available publicly
**Expected**: Q2 2026 (estimated)

**What's needed**:
- [ ] `mcp-manifest.json` with:
  - MCP spec version
  - Tool definitions (JSON Schema)
  - Security metadata
  - Version compatibility
  - Author/maintainer info

**Process**:
1. Prepare manifest
2. Submit to Anthropic (PR or submission form)
3. Review and approval
4. Listed in Claude.com MCP directory

### Option B: GitHub Registry (Community Approach)

**Status**: Can implement now
**Process**:
1. Create `mcp-registry.json` in repo root
2. Submit PR to community registry
3. Discover via GitHub topics (`mcp`, `pagerunner`)
4. Searchable on community aggregators

**Example Structure**:
```json
{
  "name": "pagerunner",
  "version": "0.1.1",
  "description": "Chrome browser automation MCP server",
  "author": "Enreign",
  "repository": "https://github.com/Enreign/pagerunner",
  "license": "MIT",
  "tools": 27,
  "categories": ["browser-automation", "web-scraping"],
  "mcpVersion": "1.0",
  "installation": {
    "linux": "curl -L https://github.com/Enreign/pagerunner/releases/download/v0.1.1/pagerunner-linux-x86_64 -o pagerunner && chmod +x pagerunner",
    "macos": "curl -L https://github.com/Enreign/pagerunner/releases/download/v0.1.1/pagerunner-macos-arm64 -o pagerunner && chmod +x pagerunner"
  }
}
```

### Option C: Direct Distribution (Now Available)

**Status**: ✅ Already Working

- Users can install via `cargo install --git https://github.com/Enreign/pagerunner`
- Users can download binaries from GitHub releases
- Users can follow README setup instructions
- Discoverable on GitHub

---

## Phase 3: Testing with Dispatch & Cowork

### What is Dispatch?

Dispatch is likely:
- MCP orchestration/testing framework
- Allows testing MCP compatibility
- Validates tool definitions
- Tests error handling

### What is Cowork?

Cowork appears to be:
- Collaborative MCP development platform
- Multi-client testing environment
- Shared session management
- Real-time tool validation

### Testing Strategy

#### 3A. MCP Protocol Compliance

**Test Points**:
- [ ] Verify stdio transport works
- [ ] Test all 27 tools with Dispatch
- [ ] Validate tool argument schemas
- [ ] Test error responses
- [ ] Verify timeout handling
- [ ] Test concurrent sessions

**Dispatch Test Command** (hypothetical):
```bash
dispatch validate /path/to/pagerunner mcp
dispatch test /path/to/pagerunner mcp --tools all
dispatch benchmark /path/to/pagerunner mcp
```

#### 3B. Cowork Integration Testing

**Test Points**:
- [ ] Multiple clients connecting simultaneously
- [ ] Session isolation
- [ ] Shared KV store
- [ ] Snapshot persistence
- [ ] Concurrent browser operations

**Setup in Cowork**:
```json
{
  "mcp_server": "pagerunner",
  "command": "/path/to/pagerunner mcp",
  "clients": ["claude", "claude-2", "claude-3"],
  "tests": [
    "concurrent_navigation",
    "shared_session",
    "kv_store_isolation",
    "snapshot_persistence"
  ]
}
```

#### 3C. Real-World Scenario Testing

**Scenarios to Test**:
1. **Single-user workflow**: Claude Desktop + Pagerunner
2. **Multi-client workflow**: Multiple Claude Code windows
3. **Integration**: With other MCP tools
4. **Error recovery**: Network interruption, Chrome crash
5. **Security**: Blocked domains, injection attempts

---

## Phase 4: Publication Workflow

### Step 1: Prepare Registry Metadata (This Week)

```bash
# Create registry entry
cat > mcp-registry.json << 'EOF'
{
  "name": "pagerunner",
  "version": "0.1.1",
  "description": "Chrome browser automation MCP server for AI agents",
  "author": {"name": "Enreign", "email": "contact@enreign.io"},
  "repository": "https://github.com/Enreign/pagerunner",
  "license": "MIT",
  "homepage": "https://github.com/Enreign/pagerunner",
  "bugs": "https://github.com/Enreign/pagerunner/issues",
  "keywords": ["mcp", "browser-automation", "chrome", "cdp", "web-scraping", "ai-agents"],
  "mcp": {
    "version": "1.0",
    "transport": "stdio",
    "tools": 27,
    "features": ["anonymization", "snapshots", "stealth-mode", "audit-logging"]
  },
  "installation": {
    "methods": [
      {
        "method": "binary",
        "description": "Download pre-built binary"
      },
      {
        "method": "cargo",
        "command": "cargo install --git https://github.com/Enreign/pagerunner"
      },
      {
        "method": "source",
        "command": "git clone ... && cargo build --release"
      }
    ]
  },
  "setup": "pagerunner init && claude mcp add pagerunner \"$(which pagerunner)\" mcp"
}
EOF
```

### Step 2: Create Tool Definitions (Next Week)

```bash
# Generate JSON Schema for all 27 tools
cat > tools-schema.json << 'EOF'
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Pagerunner Tools",
  "description": "27 browser automation tools",
  "tools": [
    {
      "name": "navigate",
      "description": "Navigate to URL",
      "inputSchema": {
        "type": "object",
        "properties": {
          "session_id": {"type": "string"},
          "target_id": {"type": "string"},
          "url": {"type": "string"}
        },
        "required": ["session_id", "target_id", "url"]
      }
    },
    // ... 26 more tools
  ]
}
EOF
```

### Step 3: Submit to Registries (Next 2 Weeks)

1. **Community GitHub Registry**
   - Find active MCP registry repo
   - Create PR with mcp-registry.json
   - Include verification of tool count & quality

2. **Anthropic Official Registry** (when available)
   - Register account
   - Submit mcp-manifest.json
   - Undergo review process

3. **Package Managers** (Optional)
   - Homebrew: Create tap formula
   - Linux: APT/DNF packages

### Step 4: Dispatch/Cowork Testing (Parallel)

1. **Get Dispatch Access**
   - Sign up for Dispatch platform
   - Download Dispatch CLI

2. **Run Validation**
   ```bash
   dispatch validate pagerunner
   dispatch test pagerunner --exhaustive
   dispatch benchmark pagerunner
   ```

3. **Get Cowork Access**
   - Join Cowork platform
   - Create shared workspace
   - Invite collaborators

4. **Run Multi-Client Tests**
   - Deploy Pagerunner to Cowork
   - Connect multiple clients
   - Run concurrent scenarios
   - Validate isolation & persistence

---

## Deliverables Checklist

### Immediate (v0.1.1, Now)
- [x] v0.1.1 released with binaries
- [x] Hallucination prevention feature documented
- [x] README complete
- [x] CLAUDE.md tracked (project instructions)

### Before First Registry Submission (Target: 2026-04-01)
- [ ] Create `mcp-registry.json`
- [ ] Create `tools-schema.json` (all 27 tools)
- [ ] Add security disclosure policy
- [ ] Update README with registry info
- [ ] Create CONTRIBUTING.md for developers

### Before Official Registry (Target: 2026-04-15)
- [ ] Create `mcp-manifest.json` (official format)
- [ ] Security audit (code review)
- [ ] GPG-signed releases
- [ ] Comprehensive tool documentation
- [ ] Example notebooks/use cases

### Before Dispatch Testing (Target: 2026-04-01)
- [ ] Compile protocol compliance checklist
- [ ] Create test fixtures
- [ ] Document expected behaviors
- [ ] Prepare benchmark suite

### Before Cowork Testing (Target: 2026-04-15)
- [ ] Multi-client testing guide
- [ ] Session isolation tests
- [ ] Error recovery procedures
- [ ] Performance benchmarks

---

## Files to Create

### 1. mcp-registry.json
Registry metadata for community discovery

### 2. tools-schema.json
Complete JSON Schema for all 27 tools
- Input/output schemas
- Error conditions
- Security notes

### 3. SECURITY.md
Security policy and responsible disclosure

### 4. mcp-manifest.json (Future)
Official Anthropic MCP format
- When official registry launches

### 5. CONTRIBUTING.md
Developer contribution guidelines
- Code style
- Testing requirements
- PR process

### 6. EXAMPLES.md or examples/
Real-world use cases
- Web scraping
- Form automation
- Security testing
- Research/data collection

---

## Success Metrics

### Registration Success
- [ ] Listed in at least 1 community registry
- [ ] 100+ GitHub stars (ecosystem interest)
- [ ] Searchable on community aggregators

### Testing Success
- [ ] 100% tool compatibility on Dispatch
- [ ] Multi-client scenarios passing on Cowork
- [ ] Zero security issues found
- [ ] <100ms latency on tool calls

### Adoption Metrics
- [ ] 50+ users in first month
- [ ] Positive community feedback
- [ ] Contributions/forks from developers
- [ ] Real-world use cases documented

---

## Timeline

```
Week 1 (Now):       ✅ v0.1.1 released
Week 2-3:           [ ] Create registry metadata
Week 4:             [ ] Submit to community registries
Week 5-6:           [ ] Dispatch testing (in parallel)
Week 7-8:           [ ] Cowork testing (in parallel)
Week 9-10:          [ ] Official registry submission
Week 11-12:         [ ] Monitor adoption & iterate
```

---

## Open Questions

1. **Dispatch Platform**: Where/how to sign up? What are the exact validation rules?
2. **Cowork Platform**: Is this an open platform or invite-only? What's the testing workflow?
3. **Official Registry**: When will Anthropic launch the official MCP registry?
4. **Windows Support**: Is Pagerunner needed on Windows? (CDP availability?)
5. **Package Managers**: Should we create Homebrew tap and Linux packages in parallel?

---

## Next Action Items

1. **Immediate** (Today):
   - Get access to Dispatch platform
   - Get access to Cowork platform
   - Create basic registry metadata

2. **This Week**:
   - Create mcp-registry.json
   - Create tools-schema.json
   - Write SECURITY.md

3. **Next Week**:
   - Run Dispatch validation
   - Start Cowork integration
   - Submit to first community registry

---

**Owner**: @Enreign
**Last Updated**: 2026-03-22
**Next Review**: After Phase 1 completion