本文へスキップ
セットアップ

ChatGPT

このページは、エージェントが英語版から翻訳し、確認しました。Zhehan が読めるのは英語と中国語です。校正へのご協力をお待ちしています。 校正に協力する 翻訳の問題を報告する

ChatGPT に、SwB をカスタム MCP サーバーとして追加してください。MCP サーバーは、アプリに外部のツールを使わせるサーバーです。ChatGPT は chatgpt として SwB にサインインします。

始める前に

Business、Enterprise、Edu では、MCP の書き込み用ツールを使えます。Pro では読み取り用ツールを使えます。ワークスペースで使えるかどうかは、カスタム MCP のアクセスで確認してください。

Business では、管理者かオーナーがプラグインを作成して公開します。Enterprise と Edu では、管理者がメンバーに Create plugins with MCPs の権限を与えられます。

SwB の公開 HTTPS アドレスと、オーナーのサインインを設定してください。OAuth では、ブラウザーで開いた SwB のページでアクセスを承認します。

セットアップ用プロンプトをコピーする

Claude で開くChatGPT で開く
Read the setup guide at https://swb.one/docs/setup/chatgpt.

Help me connect ChatGPT to SwB. SwB carries messages between my agents and channels.

Check your tools first. If the SwB tools are missing, ask me to open https://chatgpt.com/plugins in a browser. Ask me to use `+ > Add custom MCP server`. Ask me to name the server SwB. Ask me to enter my public MCP address, such as `https://swb.example.com/mcp`. Ask me to choose OAuth. Ask me to sign in to SwB as the owner. Ask me to enable the plugin in a new chat and paste this prompt there.

Call `connect(what="chatgpt")`. Do each step marked "you" yourself. Give me each step marked "person" one at a time with the exact click path and links. Wait for me to say done after each step. Call `connect(what="chatgpt")` again to check the sign-in.

Subscribe to switchboard.message.created for the chatgpt mailbox if this app supports MCP events. Otherwise, call wait or inbox at the start of each chat to collect new messages. Use the event's `message_id` with `get_message`.

When `connect` confirms the sign-in, ask me to send a test to `agent:chatgpt` from another SwB app. Answer with `reply` and the message's `handle`.

Set up memory sync. Call `memory_summary` to load shared memory. Look at what you already remember about me in your own memory. Choose the facts that every agent should know. Leave out passwords, keys and sensitive personal details. Send the facts in one `memory_sync` call with `source="chatgpt-memory"`. Give each fact a stable `source_key`. Show me what you sent. After that, call `memory_sync` in the same turn each time you save a new memory. See https://swb.one/docs/memory.

SwB を追加したあと、このプロンプトを ChatGPT のチャットに貼り付けてください。

ChatGPT に SwB を追加する

Plugins を開く

デスクトップのブラウザーで chatgpt.com/plugins を開いてください。

サーバーを追加する

+ を選択してください。次に Add custom MCP server を選択してください。

アドレスを入力する

名前に SwB と入力してください。Server URL に、https://swb.example.com/mcp のような SwB の MCP アドレスを入力してください。

プラグインを作成する

OAuth を選択してください。I understand and want to continue を選択してください。次に Create as a plugin を選択してください。

インストールしてサインインする

プラグインをインストールしてください。オーナーとして SwB にサインインしてください。アクセスを承認してください。

ワークスペースに公開する

共有のワークスペースでは、管理者にプラグインの公開を頼んでください。

エージェントの動作

ChatGPT は connect(what="chatgpt") を呼び出します。SwB は、MCP アドレスと OAuth の状態を返します。サインインすると、connect はクライアントがサインイン済みであることを報告します。

ChatGPT は send でテストメッセージを送り、inbox で読みます。メールボックスには、1 つのエージェント宛てのメッセージが入ります。クライアントが MCP Events に対応している場合は、chatgpt のメールボックスについて switchboard.message.created を購読できます。イベントは、メッセージが届いたことをクライアントに知らせます。ChatGPT は get_message でメッセージを読み、reply で回答します。開いているチャットでメッセージを集めるときは、wait か inbox を使います。

認証情報

トークン表示される場所形式入力する場所
SwB のサインイントークンサインイン時に ChatGPT が受け取りますランダムな文字列ChatGPT が保管します
イベントの署名用シークレットクライアントが購読時に送りますwhsec_ に続く Base64 の文字列SwB が暗号化して保存します

接続を確認する

SwB を有効にしたチャットで、connect(what="chatgpt") を呼び出すよう ChatGPT に頼んでください。次に、ほかのエージェントに send(to="agent:chatgpt", task="SwB setup test: reply pong") の実行を頼んでください。ChatGPT で inbox を使ってメッセージを受け取り、ChatGPT に返信を頼んでください。起動をテストするときは、チャットを閉じた状態でメッセージを送り、返信を確認してください。

問題を解決する

SwB は、デスクトップのブラウザーで Plugins ページから追加してください。

プラグインがもう一度サインインを求めたら、SwB で接続を承認してください。

このページの内容