Docs: show how to attach ComputerUse to a hosted Chrome CDP WebSocket

オープン 初心者向け
#6,971 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
85/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
documentation

調査の方向性

ComputerUse パッケージのガイドと、外部ブラウザーの設定に関するセクションを見つけてください。既存のローカル ws:// の例を読み、issue に示されているホスト型 wss:// の設定を追加してください。CDP トランスポート、コンテキストの再利用、およびエンドポイントの認証情報に関する説明も含めます。ガイドで、すでに実行中のホスト型 Chrome ブラウザーへの接続方法を説明し、例でエンドポイントを環境変数に保持したら完了です。

索引モデルが issue の本文から書いたものです。

説明

Problem

The External Browser Attach guide shows the override for a local ws:// CDP endpoint. Readers with a hosted Chrome wss:// URL can easily follow the default WebSocket path and send a CDP URL to the Playwright server transport.

Documentation suggestion

Add a hosted CDP example under the external browser configuration in the ComputerUse package guide. Explain that callers start the browser separately, pass the complete endpoint from a private environment variable and specify the CDP transport.

const endpoint = process.env.BROWSER_CDP_URL;
if (!endpoint) throw new Error('Set BROWSER_CDP_URL to a browser CDP endpoint');

const config = new BrowserConfig();
config.Connect = endpoint;
config.ConnectType = 'cdp';
config.ReuseExistingContext = false;

The isolated context is appropriate for independent checks. Enable context reuse only when the caller intends to share the attached browser's existing session. A browser-level URL with a token is a credential.

Verification and affiliation

I prepared this on behalf of Cloudbrowser. Its virtual browser setup guide shows where to obtain an endpoint for an already running Chrome desktop. I tested the configuration with @memberjunction/computer-use 6.2.3 and disposable Chrome behind a local TLS WebSocket bridge. Both runs navigated successfully. The isolated context did not receive the browser's saved cookie. Explicit reuse did, and closing the adapter left the original tab and cookie in place. The endpoint and credential in the test were local fixtures.

主要言語
TSQL
スター
32
フォーク
7
平均マージ
1日 16時間
マージ済み PR(30日)
504

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MemberJunction/MJ のほかの issue

MemberJunction/MJ の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。