Skip to content

feat: v1.0 production polish — in-process MCP, demo, watch#28

Merged
pyyush merged 2 commits intomainfrom
feat/v1.0-polish
Mar 21, 2026
Merged

feat: v1.0 production polish — in-process MCP, demo, watch#28
pyyush merged 2 commits intomainfrom
feat/v1.0-polish

Conversation

@pyyush
Copy link
Copy Markdown
Contributor

@pyyush pyyush commented Mar 21, 2026

Summary

  • Single-process MCP (--in-process)DirectTransport bypasses WebSocket, routes JSON-RPC directly through BAPPlaywrightServer.createInProcessClient(). Optional peer dep on server-playwright, dynamic import
  • bap demo — Guided walkthrough: navigate → observe → click → screenshot with step-by-step explanations for first-time users
  • bap watch — Live event streaming to terminal. Color-coded page/console/network/dialog/download events. Supports --filter=console,network and --format=json

Test plan

  • pnpm build passes
  • pnpm typecheck passes
  • pnpm test — all 514 tests pass
  • Manual: bap demo navigates example.com and prints walkthrough
  • Manual: bap watch streams events while browsing in another terminal
  • Manual: bap-mcp --in-process starts MCP server without WebSocket child process

🤖 Generated with Claude Code

pyyush and others added 2 commits March 21, 2026 01:57
…mmand

Single-process MCP (--in-process):
- DirectTransport bypasses WebSocket for zero-overhead MCP integration
- BAPPlaywrightServer.createInProcessClient() creates transport-agnostic handle
- Dynamic import of server-playwright (optional peer dependency)
- Proper cleanup on reconnect and close

bap demo — guided walkthrough:
- Navigate → observe → click → screenshot with explanations
- Educational output for first-time users

bap watch — live event streaming:
- Streams page/console/network/dialog/download events to terminal
- Color-coded formatting with --filter and --format=json support
- Clean shutdown with double-close guard

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Remove .staff-engineer-state.json from tracked files
- Fix MCP CLI version string (v0.6.0 → v0.8.0)
- Update createInProcessClient JSDoc to document notification limitation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pyyush pyyush marked this pull request as ready for review March 21, 2026 07:00
@pyyush pyyush merged commit 2a89ac0 into main Mar 21, 2026
3 of 8 checks passed
@pyyush pyyush deleted the feat/v1.0-polish branch March 22, 2026 18:07
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