> 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/devops/devops-ja/mcpsb/claudewodevops-mcpsbnisuru.md).

# ClaudeをDevOps MCPサーバーに接続する

{% hint style="warning" %}

#### ベータ

DevOps MCP サーバーはベータ版です。一部のツールはまだ期待どおりに動作しない場合があり、このドキュメントにはサーバーへの最新の変更が反映されていない可能性があります。
{% endhint %}

## ![](https://225042527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FG5ZbxX918xOHwbAwAJ4n%2FSummary2-Small-Icon.svg?alt=media\&token=da26a67f-ff7f-47b3-8669-06be960dc2d7) 概要

この記事では、ClaudeをカスタムコネクタとしてDevOps MCP（Model Context Protocol）サーバーに接続する方法を説明します。接続すると、ClaudeはDevOps MCPツールを使ってDevOpsデータを操作できます。セットアップ時には自分のFlosumユーザーでサインインするため、ClaudeはConnected Appを作成したユーザーではなく、そのユーザーとしてDevOpsに接続します。

{% hint style="info" %}

#### 開始前に

次の権限を持つFlosumユーザーが必要です。 **読み取りアクセス** 対象： **DevOps**.

MCPアクセス用のConnected Appは、SystemAdministratorが作成する必要があります。詳しくは、以下の記事を参照してください。

* [MCPアクセス用のConnected Appを作成する](https://docs.flosum.com/global-settings/global-settings-docs-ja/sekyuriti/miapuri/mcpakusesunoconnected-appwosuru.md)

Connected Appには、ClaudeのコールバックURLも必要です。まだ追加されていない場合は、SystemAdministratorが以下の手順の **コールバックURLを追加する** で追加します。
{% endhint %}

## ClaudeをDevOpsに接続する

{% stepper %}
{% step %}

## Global Settingsにログインする

Global Settingsにログインします。ログイン方法については、以下の記事を参照してください。

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

{% step %}

## コールバックURLを確認する

1. クリックします： **Connected Apps** 左側のサイドバーメニューから選択します。
2. MCPアクセス用に作成したConnected Appをクリックします。

   <div align="left"><figure><img src="https://content.gitbook.com/content/RpUu5iMlzMFAudyBvMOl/blobs/IdSlF0CtL2oyxzRyiKKM/Connecting_Claude_to_the_DevOps_MCP_Server-001.png" alt="" width="563"><figcaption></figcaption></figure></div>
3. 「 **Authorized URLs**」の下で、 **Callback URLs** に次の両方が表示されていることを確認します。
   1. `https://claude.ai/api/mcp/auth_callback`
   2. `https://claude.com/api/mcp/auth_callback`

      <div align="left"><figure><img src="https://225042527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FTHjbdrkCW5MNALmzPBhr%2FConnectingClaudeToTheDevOpsMCPServer-02.png?alt=media&amp;token=0f8afc75-4e5b-4f77-86ad-eed88e4910f9" alt="" width="563"><figcaption></figcaption></figure></div>

{% hint style="info" %}

#### Callback URLs

両方のURLが表示されている場合は、 **Client IDとClient Secretをコピーする** の手順に進みます。表示されていない場合は、SystemAdministratorが次の手順を完了して追加する必要があります。
{% endhint %}
{% endstep %}

{% step %}

## コールバックURLを追加する

1. クリックします： **Edit**.

   <div align="left"><figure><img src="https://225042527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FzJTY5saMtrOq078XF6Co%2FConnectingClaudeToTheDevOpsMCPServer-03.png?alt=media&amp;token=e2a089c1-06b4-4e9f-971b-4c21a5a6ffea" alt="" width="563"><figcaption></figcaption></figure></div>
2. クリックします： **ADD URL** 「 **Allowed callback URLs**.

   <div align="left"><figure><img src="https://225042527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2F9lMvOtNuARnZhBjwWc1x%2FConnectingClaudeToTheDevOpsMCPServer-04.png?alt=media&amp;token=59799965-6843-4d55-b14f-ad1cac299337" alt="" width="563"><figcaption></figcaption></figure></div>
3. に、次を入力します： `https://claude.ai/api/mcp/auth_callback`.
4. クリックします： **ADD URL**.
5. 次を入力します： `https://claude.com/api/mcp/auth_callback`.
6. クリックします： **Save**.

   <div align="left"><figure><img src="https://225042527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FekHJhRUkW9w4tZr9D9gw%2FConnectingClaudeToTheDevOpsMCPServer-05.png?alt=media&amp;token=b973359f-f957-499d-96c6-04a17afb53a6" alt="" width="563"><figcaption></figcaption></figure></div>

{% hint style="info" %}
現在、Claudeは `claude.ai` のコールバックURLを使用しています。コールバックURLが変更されても接続を維持できるよう、Anthropicは `claude.com` のURLも追加することを推奨しています。
{% endhint %}
{% endstep %}

{% step %}

## クライアント ID とクライアントシークレットをコピーする

任意のユーザーが **クライアント ID** と **クライアントシークレット** を接続済みアプリからコピーできます。

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

   <div align="left"><figure><img src="https://225042527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FhtAaCu4sBTnwHBMoT5LG%2FConnectingClaudeToTheDevOpsMCPServer-06.png?alt=media&amp;token=78bfe41d-c039-433b-873e-d2ca524ce4bc" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

## Claude にカスタムコネクタを追加する

{% hint style="info" %}
以下の手順は Claude で行います。Claude のバージョンによって、画面や設定が異なる場合があります。Claude でカスタムコネクタを追加する手順の詳細については、次の記事をご覧ください。

* [リモート MCP を使ったカスタムコネクタの利用を開始する](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp)
  {% endhint %}

1. Claude で **設定**.
2. をクリックします **コネクタ**.
3. をクリックします **追加**.
4. をクリックします **カスタムコネクタを追加**.

   <div align="left"><figure><img src="https://content.gitbook.com/content/RpUu5iMlzMFAudyBvMOl/blobs/NNIXNBkQwdICOygymvFZ/Connecting_Claude_to_the_DevOps_MCP_Server-007.png" alt="" width="563"><figcaption></figcaption></figure></div>
5. コネクタ名を入力します。この名前はコネクタの一覧に表示されます。
6. Flosum Cloud Apps テナントのリージョンに対応する MCP サーバー URL を入力します。

<table><thead><tr><th width="160.3333740234375">リージョン</th><th>DevOps MCP サーバー</th></tr></thead><tbody><tr><td>米国</td><td><code class="expression">space.vars.mcp_url_us</code></td></tr><tr><td>ドイツ</td><td><code class="expression">space.vars.mcp_url_de</code></td></tr><tr><td>日本</td><td><code class="expression">space.vars.mcp_url_jp</code></td></tr><tr><td>オーストラリア</td><td><code class="expression">space.vars.mcp_url_au</code></td></tr></tbody></table>

7. クリックして **続行**.

   <div align="left"><figure><img src="https://content.gitbook.com/content/RpUu5iMlzMFAudyBvMOl/blobs/WHP3sRAKS9xCimEQQIoj/Connecting_Claude_to_the_DevOps_MCP_Server-008.png" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

## 認証を設定する

{% hint style="info" %}
「 **カスタムコネクタを追加** 」フォームでは、 **認証** と **OAuth クライアント** の設定が自動的に検出され、 **検出済み**.
{% endhint %}

1. 次のことを確認します。 **認証** が次のように設定されていることを確認します： **今すぐサインイン**.
2. 次のことを確認します。 **OAuth クライアント** が次のように設定されていることを確認します： **独自の OAuth クライアントを使用する**.
3. 入力します **クライアント ID** Connected App からコピーした値です。
4. 入力します **クライアントシークレット** Connected App からコピーした値です。
5. をクリックします **追加**.

   <div align="left"><figure><img src="https://content.gitbook.com/content/RpUu5iMlzMFAudyBvMOl/blobs/YI44qH9Ae8jVWcevB6Hp/Connecting_Claude_to_the_DevOps_MCP_Server-009.png" alt="" width="375"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

## Flosum にサインイン

{% hint style="warning" %}
同じブラウザーで Flosum Cloud Apps にログインしている場合、Claude はその Flosum ユーザーで接続するため、サインインページは表示されません。別のユーザーで接続するには、 **接続**をクリックする前に Flosum Cloud Apps からログアウトしてください。Claude がすでに誤ったユーザーで接続している場合は、コネクターの **切断** をクリックし、Flosum Cloud Apps からログアウトしてから、もう一度接続してください。
{% endhint %}

1. クリックします **接続**.

   <div align="left"><figure><img src="https://content.gitbook.com/content/RpUu5iMlzMFAudyBvMOl/blobs/IWTEUXN1x3ExQBrEQ8iu/Connecting_Claude_to_the_DevOps_MCP_Server-010.png" alt="" width="563"><figcaption></figcaption></figure></div>
2. Flosum の **メールアドレス**.
3. 入力します **テナント**.
4. 入力します **パスワード**.
5. クリックします **ログイン**.

   <div align="left"><figure><img src="https://content.gitbook.com/content/RpUu5iMlzMFAudyBvMOl/blobs/FKcbg5tcc2SlKeWG9eRW/Connecting_Claude_to_the_DevOps_MCP_Server-011.png" alt="" width="375"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

## ツールの権限を確認する

サインインすると、コネクターのページに DevOps MCP ツールが **ツールの権限**の下に一覧表示されます。組織のアクセス ポリシーに従って、Claude に各ツールの使用を許可するタイミングを選択してください。ドロップダウンメニューを使うとすべてのツールを一括で設定でき、各ツールの横にあるアイコンを使うと個別に設定できます。

<div align="left"><figure><img src="https://content.gitbook.com/content/RpUu5iMlzMFAudyBvMOl/blobs/zlDBUVzudthBQgYLJqbG/Connecting_Claude_to_the_DevOps_MCP_Server-012.png" alt="" width="563"><figcaption></figcaption></figure></div>

{% hint style="success" %}
DevOps MCP サーバーに接続されました。Claude で新しい会話を開始すると、DevOps MCP ツールを使用できます。
{% endhint %}

{% hint style="info" %}
接続は、サインインした時点から Connected App の **リフレッシュトークンの有効期間**が経過するまで有効です。Claude を使用しても有効期間は延長されません。有効期間が切れると、Claude から再度サインインするよう求められます。
{% 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/devops/devops-ja/mcpsb/claudewodevops-mcpsbnisuru.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.
