> For the complete documentation index, see [llms.txt](https://docs.flosum.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flosum.com/global-settings/global-settings-docs-ja/sekyuriti/miapuri/mcpakusesunoconnected-appwosuru.md).

# MCPアクセス用のConnected Appを作成する

{% hint style="success" %}

#### 必要なユーザー認証情報

\[**Flosumユーザー**] - **システム管理者** 役割
{% endhint %}

{% hint style="warning" %}

#### ベータ版

DevOps および Backup & Archive MCP サーバーはベータ版です。この記事に記載されている Connected App の設定は変更される可能性があり、このドキュメントにはサーバーの最新の変更が反映されていない場合があります。
{% endhint %}

## ![](https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FKK27dGExFDtzaiuy5OQo%2FSummary2-Small-Icon.svg?alt=media\&token=fd28bf21-00ee-4db0-9dc5-73ec71dbe391) 概要

この記事では、Connected App を作成し、DevOps および Backup & Archive MCP（Model Context Protocol）サーバー用の **クライアント ID** と **クライアントシークレット** の値を取得する方法を説明します。ChatGPT や Claude などの AI アシスタントは、これらの値を使用して MCP サーバーに接続し、DevOps または Backup & Archive のデータを操作します。

{% hint style="info" %}

#### すべてのユーザーに共通の Connected App

MCP にアクセスするために必要な Connected App は、テナントごとに 1 つだけです。この Connected App は DevOps と Backup & Archive の両方の MCP サーバーで使用され、すべてのユーザーがこれを介して接続します。各ユーザーが AI アシスタントを接続する際には、自分自身の Flosum ユーザーとしてサインインします。そのため、アシスタントは Connected App の作成者ではなく、サインインしたユーザーとして MCP サーバーに接続します。
{% endhint %}

## Connected App を作成する

{% stepper %}
{% step %}

### グローバル設定にアクセスする

1. 任意の **Flosum Cloud App**で、 **アプリスイッチャー** アイコンを左側のサイドバーメニュー上部でクリックします。

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2Fgh5FcQCnErKAjJ7isiuB%2FGS-Access-01.png?alt=media&amp;token=ddf01506-f133-4e49-825a-76a2a237e3a8" alt="" width="563"><figcaption></figcaption></figure></div>
2. クリック **グローバル設定**.&#x20;

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2Fx5vntzgpLuT50fMTzwT9%2FGS-Access-02.png?alt=media&amp;token=f67a125f-5087-47c2-9bc6-9393c3d2b7a5" alt="" width="563"><figcaption></figcaption></figure></div>
3. その **グローバル設定** アプリは新しいタブで開きます。

{% hint style="info" %}
グローバル設定には、Flosum Cloud Apps のログインURLから直接ログインしてアクセスすることもできます。ログイン手順については、以下の記事を参照してください。

* [グローバル設定にログインする](https://docs.flosum.com/global-settings/global-settings-docs-ja/hajimeni/gurbaruniroguinsuru.md)
  {% endhint %}
  {% endstep %}

{% step %}

### 新しい Connected App を作成する

1. 左側のサイドバーメニューで **Connected Apps** をクリックします。
2. 「 **作成**.

   <div align="left"><figure><img src="https://content.gitbook.com/content/sEk2hU5IMh3HEY5dJZjR/blobs/N9N5rCSkfe1HrE6BsmUw/Creating_a_Connected_App_for_MCP_Access-001.png" alt="" width="563"><figcaption></figcaption></figure></div>
3. Connected App の **名前** を入力します。
4. 「 **作成**.

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FVfVEQGVM9vSBKwBO6qOE%2FCreatingAConnectedAppForMCPAccess-02.png?alt=media&amp;token=9c8dd806-8655-4301-a623-1fea3f84989d" alt="" width="375"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### Connected App を設定する

1. 作成した Connected App をクリックします。

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FxdCCLKuwmPD3lzCfQgEE%2FCreatingAConnectedAppForMCPAccess-03.png?alt=media&amp;token=5cd67092-b58a-4104-9536-8d0daf0945b7" alt="" width="563"><figcaption></figcaption></figure></div>
2. 「 **編集**.

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FNztco7m0BB6A5f3igc3O%2FCreatingAConnectedAppForMCPAccess-04.png?alt=media&amp;token=d66c39bd-7ab9-4c03-ae61-74a4f25b5fcf" alt="" width="563"><figcaption></figcaption></figure></div>
3. をクリックします。 **「認証フロー」** ドロップダウンメニューをクリックします。
4. 「 **認証コード** 」チェックボックスをオンにします。
5. 「 **更新トークン** 」チェックボックスをオンにします。
6. 「 **更新トークンの有効期間** 」フィールドに、トークンに適用する有効期間を入力します。詳しくは、以下のヒントを参照してください。&#x20;

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2Ffvvi66Kgwsn3fbiHhwMn%2FCreatingAConnectedAppForMCPAccess-05.png?alt=media&amp;token=5b234f55-f429-4a30-81e3-4ddeead60fbf" alt="" width="563"><figcaption></figcaption></figure></div>

{% hint style="info" %}

#### 更新トークンの有効期間

「 **更新トークンの有効期間** 」では、ユーザーの接続状態を維持する期間を設定します。これはユーザーがサインインした時点から計算され、AI アシスタントを最後に使用した時点からではありません。たとえば有効期間を 30 日に設定すると、AI アシスタントを毎日使用していても、ユーザーは 30 日ごとに再度サインインする必要があります。

Flosum では 30 日を推奨しています。セキュリティポリシーで必要な場合は、より短い有効期間を設定できます。値は 5 分以上 365 日以下である必要があります。

「 **アクセストークンの有効期間** 」は 5 分のままにします。アクセストークンの有効期間が切れると、接続は更新トークンを使用して新しいアクセストークンを取得するため、ユーザーは再度サインインする必要がありません。
{% endhint %}

{% hint style="info" %}

#### コールバック URL

「 **許可されたコールバック URL** 」は、今は空のままにします。各 AI プロバイダーが独自のコールバック URL を提供します。SystemAdministrator がその URL を追加するには、 **URL を追加** そのプロバイダーを接続するときに使用します。1つの Connected App に、複数の AI プロバイダーや MCP サーバーのコールバック URL を設定できます。以下の記事では、この手順について説明しています。

* [ChatGPTをDevOps MCPサーバーに接続する](https://docs.flosum.com/devops/devops-ja/mcpsb/chatgptwodevops-mcpsbnisuru.md)
* [ClaudeをDevOps MCPサーバーに接続する](https://docs.flosum.com/devops/devops-ja/mcpsb/claudewodevops-mcpsbnisuru.md)
  {% endhint %}

7. クリックします **保存**.

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FgVlvs04OXNaoZN7F55et%2FCreatingAConnectedAppForMCPAccess-06.png?alt=media&amp;token=3098c546-ec22-4ca1-ba5a-3a71172b37b9" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### Client ID と Client Secret をコピーする

各 MCP サーバーに AI アシスタントを接続するときに、 **クライアント ID** と **クライアントシークレット** を入力します。これらの値は Connected App からコピーできます。

1. をクリックして **クライアント ID** フィールドの値をコピーします。
2. コピーした値を保存します。
3. をクリックして **クライアントシークレット** フィールドの値をコピーします。
4. コピーした値を保存します。

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FU4bBxGRxJPOQf2h2ZEjM%2FCreatingAConnectedAppForMCPAccess-07.png?alt=media&amp;token=b8b57cca-85d4-4d0c-aa3f-4788c36f70de" alt="" width="563"><figcaption></figcaption></figure></div>

{% hint style="warning" %}

#### クライアントシークレットの共有

どのユーザーもグローバル設定にログインして、この Connected App の **クライアント ID** と **クライアントシークレット** をコピーできます。ユーザーに **クライアントシークレット** を送信するのではなく、Connected App の名前を伝えて、自分で値をコピーしてもらいます。チャットメッセージやスクリーンショットで **クライアントシークレット** を共有しないでください。
{% endhint %}
{% endstep %}
{% endstepper %}


---

# 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.flosum.com/global-settings/global-settings-docs-ja/sekyuriti/miapuri/mcpakusesunoconnected-appwosuru.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.
