开发¶
设置¶
日常指令¶
npm run typecheck
npm run lint
npm run format:check
npm run server:validate
npm run audit:prod
npm test
npm run build
npm run check
源代码布局¶
src/
cli.ts, cli/ CLI options and process lifecycle
server.ts upstream MCP proxy
bridge/ browser configuration and local introspection
cdp/ managed CDP leases, readiness and capability proxy
http/ Streamable HTTP sessions and transport
docker/ container launcher, display and health checks
runtime/ console and humanize compatibility
logging/ runtime diagnostics
protocol/ shared MCP protocol support
project/ package and server metadata
已移除的原生适配器/工具注册表实现不应重新引入。上游 Playwright MCP 负责浏览器工具的行为。
本地 Docker¶
npm run docker:build
npm run docker:smoke
docker run --rm -i -v "$PWD/artifacts:/data" cloakbrowser-mcp:dev