> For the complete documentation index, see [llms.txt](https://docs.maiagent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maiagent.ai/maiagent-user-guide/ja/work/maigpt/connectors/connectors-admin.md). Agents can also search and read this documentation through its [MCP server](https://docs.maiagent.ai/~gitbook/mcp).

# コネクタの管理（管理者向け）

組織管理者向けに、MaiGPT コネクタの有効化、Service Account 認証と contextData の許可リストの設定、メンバーの認証の確認と取り消し、有効化申請への対応、組織専用 MCP サーバーの追加方法を説明します。

メンバーが MaiGPT で Notion や Google Drive などのコネクタを使うには、まず組織でコネクタを**有効化**し、その後、メンバーが各自で認証します（メンバー側の手順は [コネクタ](https://docs.maiagent.ai/maiagent-user-guide/ja/work/maigpt/connectors.md) をご覧ください）。組織管理者は、<mark style="color:blue;">MaiGPT コネクタ</mark> ページで、組織に公開するコネクタの選択、メンバーからの申請への対応、自社の MCP サーバーの接続を行えます。

## 利用できる人 <a href="#who-can-use" id="who-can-use"></a>

* ロールに <mark style="color:blue;">MaiGPT コネクタ管理権限</mark> がある場合、Admin セクションのサイドバーに <mark style="color:blue;">MaiGPT コネクタ</mark> が表示されます（クラシック版では左側のメニューに表示されます）。組織オーナーには、この権限がデフォルトで付与されています。
* メンバーがコネクタを**使用**するために必要なのは <mark style="color:blue;">MaiGPT 権限</mark> のみです。管理権限は不要です。
* メンバーの認証を取り消せるのは**組織オーナー**のみです。

権限の設定方法は [ロール権限の管理](https://docs.maiagent.ai/maiagent-user-guide/ja/org/roles/role-permission.md) をご覧ください。

## ページを開く <a href="#how-to-access" id="how-to-access"></a>

左上から <mark style="color:blue;">Admin</mark> に切り替え、サイドバーの <mark style="color:blue;">MaiGPT コネクタ</mark> をクリックします（クラシック版では、左側のメニューから <mark style="color:blue;">MaiGPT コネクタ</mark> を選択します）。一覧には、プラットフォームが提供するコネクタと組織が追加したコネクタがすべて表示されます。

| 項目                                        | 説明                                                                                                                  |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| <mark style="color:blue;">コネクタ名</mark>    | メンバーからの申請があると、名前の横に「N 人のメンバーが申請」と表示されます。ラベルにカーソルを合わせると、申請者のメールアドレスを確認できます。                                          |
| <mark style="color:blue;">提供元</mark>      | <mark style="color:blue;">システム標準</mark>（プラットフォームが提供）または <mark style="color:blue;">組織カスタム</mark>（組織が追加した専用 MCP サーバー） |
| <mark style="color:blue;">認証タイプ</mark>    | OAuth 2.0（メンバーが各自で認証）、Service Account（組織全体で 1 組の認証情報を共有）、No Auth（認証なし）のいずれかです。                                      |
| <mark style="color:blue;">ツールカテゴリ</mark>  | 会話内のツールカードに表示されるカテゴリです。コネクタを有効化すると設定でき、選択するとすぐに保存されます。                                                              |
| <mark style="color:blue;">有効</mark>       | 組織でコネクタを利用できるかどうかを示します。                                                                                             |
| <mark style="color:blue;">認証済みメンバー</mark> | 認証済みのメンバー数です。横にある編集アイコンから一覧を確認できます。                                                                                 |
| <mark style="color:blue;">操作</mark>       | Service Account コネクタの認証設定や、組織カスタムコネクタの編集・削除を行います。                                                                   |

### 「ツール」ページから開く <a href="#access-from-tools-page" id="access-from-tools-page"></a>

組織カスタムコネクタは、<mark style="color:blue;">Build</mark> → <mark style="color:blue;">Agent Builder</mark> → <mark style="color:blue;">ツール</mark>（クラシック版では <mark style="color:blue;">AI 機能</mark> → <mark style="color:blue;">ツール</mark>）からも管理できます。ページの 2 列目で <mark style="color:blue;">コネクタの管理</mark> に切り替えます。ページ上部には「組織カスタムの MCP コネクタを管理します。コネクタは MaiGPT コネクタに同期され、同期先で有効にするかどうかを選択できます」と表示されます。一覧に表示されるのは組織カスタムコネクタのみです。列は <mark style="color:blue;">コネクタ</mark>、<mark style="color:blue;">MCP サーバー URL</mark>、<mark style="color:blue;">認証方法</mark>、<mark style="color:blue;">ツールカテゴリ</mark>、<mark style="color:blue;">作成日時</mark>、<mark style="color:blue;">操作</mark>（編集・削除）で、右上には <mark style="color:blue;">コネクタを追加</mark> と <mark style="color:blue;">更新</mark> があります。どちらのページからも同じコネクタ情報を編集できます。有効化・無効化とメンバーの認証管理は、MaiGPT コネクタページで行います。

## 組織でコネクタを有効にする <a href="#enable-connector" id="enable-connector"></a>

対象の行の <mark style="color:blue;">有効</mark> スイッチをオンにします。<mark style="color:blue;">コネクタを有効にしました</mark> と表示されれば完了です。有効化後のメンバー側の操作や表示は、認証タイプによって異なります。

| 認証タイプ           | 有効化時の動作                                                                                              | メンバー側の操作や表示                                                                                          |
| --------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| OAuth 2.0       | すぐに有効になります。                                                                                          | メンバーが各自で <mark style="color:blue;">認証</mark> をクリックし、そのサービスに自分のアカウントでログインします。                         |
| Service Account | <mark style="color:blue;">Service Account 認証</mark> ダイアログが開きます。認証ヘッダーを入力して作成します。キャンセルするとスイッチは元に戻ります。 | 管理者が入力した認証情報を全員で共有するため、個別の認証は不要です。認証ヘッダーが空の場合は <mark style="color:blue;">管理者による設定が必要</mark> と表示されます。 |
| No Auth（認証なし）   | すぐに有効になります。                                                                                          | 認証せずに利用できます。                                                                                         |

スイッチをオフにして <mark style="color:blue;">コネクタを無効にしました</mark> と表示された後は、メンバーが会話でそのコネクタを使用できなくなります。既存の認証は保持されるため、再度有効にすればそのまま利用できます。

### ロールに利用を許可する <a href="#role-access" id="role-access"></a>

**システム標準**のコネクタを有効にした後も、各ロールの MaiGPT 利用権限が適用されます。メンバーに認証ボタンを表示するには、そのロールの <mark style="color:blue;">コネクタ</mark> カードで「すべて」または対象のコネクタを選択します。選択されていない場合、メンバーには <mark style="color:blue;">このロールでは利用できません</mark> と表示されます。**組織カスタム**のコネクタには、ロールによる制限は適用されません。設定方法は [ロール別の MaiGPT 利用権限](https://docs.maiagent.ai/maiagent-user-guide/ja/org/roles/maigpt-role-permissions.md#set-available-scope) をご覧ください。

## メンバーからの申請に対応する <a href="#enablement-requests" id="enablement-requests"></a>

メンバーは <mark style="color:blue;">自分のコネクタを管理</mark> から、利用できないコネクタの有効化を申請できます。組織オーナーと MaiGPT コネクタ管理権限を持つユーザーにメールが送信され、このページの上部に「N 件のコネクタにメンバーからの有効化申請があります」と表示されます。

| メンバーに表示される状態                                    | メンバーが押すボタン                              | 管理者の対応                                                                       |
| ----------------------------------------------- | --------------------------------------- | ---------------------------------------------------------------------------- |
| <mark style="color:blue;">組織で無効</mark>          | <mark style="color:blue;">有効化を申請</mark> | このページで対象のコネクタの <mark style="color:blue;">有効</mark> スイッチをオンにします。              |
| <mark style="color:blue;">このロールでは利用できません</mark> | <mark style="color:blue;">管理者に申請</mark> | コネクタはすでに有効です。申請者のロールの MaiGPT 利用権限で対象のコネクタを選択するか、申請者にすでに利用が許可されているロールを割り当てます。 |

対応が完了すると、申請は自動的に解消され、申請者の [通知センター](https://docs.maiagent.ai/maiagent-user-guide/ja/start/notifications.md) に <mark style="color:blue;">コネクタが有効になりました</mark> と通知されます。このページには申請を個別に却下するボタンがありません。利用を許可しない場合は、申請者に直接連絡してください。

## メンバーの認証を確認・取り消す <a href="#authorized-members" id="authorized-members"></a>

<mark style="color:blue;">認証済みメンバー</mark> 列の編集アイコンをクリックして一覧を開きます。各メンバーの <mark style="color:blue;">認証日時</mark>、<mark style="color:blue;">トークンの有効期限</mark>、状態（<mark style="color:blue;">有効</mark>、<mark style="color:blue;">期限切れ</mark>、<mark style="color:blue;">無期限</mark>）が表示されます。

メンバーが退職した場合や、アクセス権を取り消す必要がある場合、組織オーナーは <mark style="color:blue;">認証を取り消す</mark> をクリックできます。取り消されたメンバーは、再度利用する際に認証が必要です。認証の取り消しは OAuth 2.0 コネクタにのみ適用されます。一度も有効にしたことがないコネクタには一覧がなく、「このコネクタはまだ作成されていません。先に有効にしてください」と表示されます。

## Service Account 認証を設定する <a href="#service-account-auth" id="service-account-auth"></a>

Service Account コネクタを有効にすると、<mark style="color:blue;">操作</mark> 列に設定アイコン（<mark style="color:blue;">コネクタ認証設定</mark>）が表示されます。

* <mark style="color:blue;">認証ヘッダー</mark> には、`{"Authorization": "Bearer your-token"}` のような JSON オブジェクトを入力します。設定済みのヘッダーの値はマスク表示されます。空欄のままにすると既存のヘッダーが保持され、入力すると**ヘッダー全体が置き換わります**。
* ヘッダーの値には <mark style="color:blue;">使用可能なコンテキスト変数</mark> を指定できます。会話ごとに、`{{contact_id}}`（連絡先 ID）、`{{source_id}}`（ソース ID）、`{{contact_name}}`（連絡先名）、`{{conversation_id}}`（会話 ID）、`{{inbox_id}}`（受信トレイ ID）、`{{organization_id}}`（組織 ID）の値が自動的に挿入されます。

### contextData の許可リスト <a href="#context-data-allowlist" id="context-data-allowlist"></a>

Web サイトに Agent を埋め込んでいる場合は、会員番号などのサイト独自のデータを contextData で渡し、認証ヘッダーに設定できます。

1. Web サイトのチャットウィジェットの埋め込み設定で、contextData にデータを指定します（手順は技術ガイドの [ページのコンテキストを渡す](https://docs.maiagent.ai/tech/serve/web-chat-sdk/web-chat-context-data) をご覧ください）。
2. <mark style="color:blue;">許可する contextData キー</mark> に、`["patientToken"]` のような JSON 文字列配列でキー名を入力します。登録できるのは最大 20 件です。各キー名は英字、数字、アンダースコアのみで、1～64 文字にします。
3. 認証ヘッダーの値に `{{context_data.patientToken}}` を指定します。

3 か所のキー名は、大文字と小文字を含めて完全に一致させてください。許可リストに登録したキーの値だけを取得できます。会話に値がない場合、そのヘッダーは送信されません。最上位のキーのみ使用でき、`a.b` のようなネストされたキーは使用できません。

## 専用 MCP サーバーを追加する <a href="#add-private-mcp" id="add-private-mcp"></a>

自社で構築した MCP サーバーやサードパーティの MCP サーバーが一覧にない場合、組織のメンバーだけが参照できる専用コネクタとして追加できます。このページで追加するサーバーでは **OAuth 2.0** 認証を使用します。

1. 右上の <mark style="color:blue;">コネクタを追加</mark> をクリックします。
2. <mark style="color:blue;">名前</mark>（英字、数字、アンダースコア、ハイフン）と <mark style="color:blue;">サーバー URL</mark>（`https://` で始まる URL）を入力します。<mark style="color:blue;">表示名</mark>、<mark style="color:blue;">説明</mark>、<mark style="color:blue;">ツールカテゴリ</mark>、<mark style="color:blue;">ロゴ</mark>（PNG、JPG、GIF、WebP、SVG、2 MB 以下）は任意です。
3. 認可サーバーを自動検出できない場合は、<mark style="color:blue;">OAuth サーバー URL</mark>、<mark style="color:blue;">Resource Identifier</mark>、<mark style="color:blue;">OAuth Client ID</mark>、<mark style="color:blue;">OAuth Client Secret</mark> を入力します。各項目の詳細は [MCP ツールの設定](https://docs.maiagent.ai/maiagent-user-guide/ja/build/tools/mcp-setup.md#oauth-custom-connector) をご覧ください。
4. <mark style="color:blue;">確認</mark> をクリックすると、システムがサーバーへの接続をテストします。失敗するとエラーの原因または <mark style="color:blue;">接続テストに失敗しました</mark> と表示され、コネクタは作成されません。成功すると <mark style="color:blue;">サーバーを追加しました</mark> と表示され、コネクタが自動的に有効になります。提供元には <mark style="color:blue;">組織カスタム</mark> と表示されます。

同じ組織カスタムコネクタは、<mark style="color:blue;">ツール</mark> ページの <mark style="color:blue;">コネクタの管理</mark> にも表示されます。どちらのページからも同じコネクタ情報を編集できます。

### 編集と削除 <a href="#edit-delete-private" id="edit-delete-private"></a>

* **編集**：同じ MCP サーバー URL を使うすべてのツールに影響します。<mark style="color:blue;">サーバー URL</mark> を変更すると、これらのツールの URL が一致しなくなり、認証が無効になるため、変更する際はご注意ください。
* **削除**：このコネクタに対するメンバーと連絡先の認証も削除されます。コネクタを使っているツールがある場合は、確認ダイアログに対象ツールと取り消される認証の件数が表示されます。<mark style="color:blue;">まとめて削除</mark> をクリックすると、これらのツールも削除されます。

## よくある質問 <a href="#faq" id="faq"></a>

### コネクタを有効にしても、メンバーに認証ボタンが表示されないのはなぜですか？ <a href="#faq-member-cannot-authorize" id="faq-member-cannot-authorize"></a>

メンバーに <mark style="color:blue;">自分のコネクタを管理</mark> を開いて状態を確認してもらってください。<mark style="color:blue;">このロールでは利用できません</mark> と表示される場合は、メンバーのロールの MaiGPT 利用権限で対象のコネクタを許可します。手順は [ロールに利用を許可する](#role-access) をご覧ください。

### メンバー側に「管理者による設定が必要」と表示されるのはなぜですか？ <a href="#faq-admin-setup-required" id="faq-admin-setup-required"></a>

Service Account コネクタに認証ヘッダーが設定されていません。対象の行にある設定アイコンをクリックし、<mark style="color:blue;">認証ヘッダー</mark> を入力して保存すると、メンバーが利用できるようになります。

### 認証を取り消すとエラーが出るのはなぜですか？ <a href="#faq-revoke-error" id="faq-revoke-error"></a>

「メンバーの認証を取り消せるのは組織オーナーのみです」と表示される場合、操作しているアカウントは組織オーナーではありません。「認証を取り消せるのは OAuth コネクタのみです」と表示される場合は、対象のコネクタがメンバーごとに認証するタイプではありません。

### ページ上部の申請通知が消えないのはなぜですか？ <a href="#faq-request-banner" id="faq-request-banner"></a>

コネクタがすでに有効な場合、申請者のロールに利用制限が適用されています。スイッチの切り替えでは申請は解消されないため、申請者のロールで対象のコネクタを許可してください。

## 関連情報 <a href="#further-reading" id="further-reading"></a>

* [コネクタ（メンバー向け）](https://docs.maiagent.ai/maiagent-user-guide/ja/work/maigpt/connectors.md)
* [ロール別の MaiGPT 利用権限](https://docs.maiagent.ai/maiagent-user-guide/ja/org/roles/maigpt-role-permissions.md)
* [MCP ツールの設定](https://docs.maiagent.ai/maiagent-user-guide/ja/build/tools/mcp-setup.md)
* [通知センター](https://docs.maiagent.ai/maiagent-user-guide/ja/start/notifications.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.maiagent.ai/maiagent-user-guide/ja/work/maigpt/connectors/connectors-admin.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
