---
schema_version: "1"
id: f8c8f5d74a6500434d73a008db734a80fe07c0a86a268855c45f2463cba5019b
title: Anypoint Studio を使用した MCP Connector 1.2 の設定
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/mcp-connector/1.2/mcp-connector-studio.md
canonical_url: https://docs.mulesoft.com/jp/mcp-connector/1.2/mcp-connector-studio
source_site: docs.mulesoft.com
content_type: documentation
content_hash: ed5bacf2c1e9a81f5a0a2fc726c6132bc2f8022b26d1d4bfb4cb56b0244d66d5
description: MuleSoft Documentation Site
release: "1.2"
latest: true
---
# Anypoint Studio を使用した MCP Connector 1.2 の設定

Unresolved include directive in modules/ROOT/pages/mcp-connector-studio.adoc - include::connectors::partial$mcp-connector-partial.adoc\[\]

## [](#create-mule-project)Mule プロジェクトを作成する

Unresolved include directive in modules/ROOT/pages/mcp-connector-studio.adoc - include::connectors::partial$t-studio-partial.adoc\[\]

## [](#add-connector-to-project)コネクタを Mule プロジェクトに追加する

Unresolved include directive in modules/ROOT/pages/mcp-connector-studio.adoc - include::connectors::partial$t-studio-partial.adoc\[\]

## [](#configure-source)ソースの設定

Unresolved include directive in modules/ROOT/pages/mcp-connector-studio.adoc - include::connectors::partial$t-studio-partial.adoc\[\] 次のソースのいずれかを MCP Connector で使用するように設定できます。

- [On New Session Listener](https://docs.mulesoft.com/jp/mcp-connector/1.2/mcp-connector-reference#OnNewSessionListener)
- [Resource Listener](https://docs.mulesoft.com/jp/mcp-connector/1.2/mcp-connector-reference#ResourceListener)
- [Tool Listener](https://docs.mulesoft.com/jp/mcp-connector/1.2/mcp-connector-reference#ToolListener)

Unresolved include directive in modules/ROOT/pages/mcp-connector-studio.adoc - include::connectors::partial$t-studio-partial.adoc\[\]

Unresolved include directive in modules/ROOT/pages/mcp-connector-studio.adoc - include::connectors::partial$t-studio-partial.adoc\[\]

## [](#add-connector-operation)フローにコネクタの操作を追加する

Unresolved include directive in modules/ROOT/pages/mcp-connector-studio.adoc - include::connectors::partial$t-studio-partial.adoc\[\]

## [](#configure-global-element)コネクタのグローバル要素を設定する

Unresolved include directive in modules/ROOT/pages/mcp-connector-studio.adoc - include::connectors::partial$t-studio-partial.adoc\[\]

Unresolved include directive in modules/ROOT/pages/mcp-connector-studio.adoc - include::connectors::partial$t-studio-partial.adoc\[\]

Unresolved include directive in modules/ROOT/pages/mcp-connector-studio.adoc - include::connectors::partial$t-studio-partial.adoc\[\]

1. **\[General (一般)\]**​ タブの ​**\[Connection (接続)\]**​ で、設定する認証方式を選択します。MCP プロトコルのセキュリティは主に OAuth 認証コードフローに基づきます。さまざまなシステムや使用法との互換性を維持するため、コネクタでは次を含めその他の認証方法もサポートされます。
    
    - [基本認証](#basic-authentication)
    - [OAuth 認証コード](#oauth-auth-code)
    - [OAuth Client Credentials (OAuth クライアントログイン情報)](#oauth-client-credentials)
    - [ダイジェスト](#digest)
    - [NTLM](#ntlm)

Unresolved include directive in modules/ROOT/pages/mcp-connector-studio.adoc - include::connectors::partial$t-studio-partial.adoc\[\]

### [](#basic-authentication)基本認証

**\[Global Element Properties (グローバル要素のプロパティ)\]**​ 画面の ​**\[General (一般)\]**​ タブで認証情報を入力し、基本認証を設定します。

1. **\[Connection (接続)\] > \[Basic (基本)\]**​ を選択し、次の項目の値を入力または設定します。
    
    <table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 30%;">
<col style="width: 70%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">項目</th>
<th class="tableblock halign-left valign-top">ユーザーアクション</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Name (名前)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>設定名を入力します。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Username (ユーザー名)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>セッションの初期化に使用するユーザー名。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Password (パスワード)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>ユーザーの認証に使用するパスワード。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Preemptive (プリエンプティブ)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>true に設定すると、クライアントはサーバーがクライアントにチャレンジ (401 未承認) するのを待たずに、認証ログイン情報 (ユーザー名とパスワード) をサーバーへの初期 HTTP 要求と共に送信します。</p>
</div></div></td>
</tr>
</tbody>
</table>

### [](#oauth-auth-code)OAuth 認証コード

クライアントがエンドユーザー (人間) の代理となる場合に使用されます。たとえば、エージェントは SaaS システムによって実装された MCP ツールをコールします。

### [](#oauth-client-credentials)OAuth Client Credentials (OAuth クライアントログイン情報)

マシン間の認証で使用されます。クライアントアプリケーションは、そのクライアント ID とクライアントシークレットを使用して自身を認証サーバーで直接認証し、アクセストークンを受け取ります。

これは、アプリケーションがユーザーの代理ではなく自身のためにリソースにアクセスしている場合に使用されます。

### [](#digest)ダイジェスト

パスワードをプレーンテキストで送信することを避けるためにチャレンジ/レスポンスメカニズムを使用する HTTP 認証スキーム。このスキームでは、パスワードとその他の情報をハッシュ化してクライアントの ID を検証します。

### [](#ntlm)NTLM

主に Windows 環境で使用される Microsoft 認証プロトコル。チャレンジレスポンスメカニズムを使用し、ネットワーク認証で一般的に使用されます。

## [](#configure-other-fields)その他のコネクタ項目の設定

Unresolved include directive in modules/ROOT/pages/mcp-connector-studio.adoc - include::connectors::partial$t-studio-partial.adoc\[\]

## [](#debug)アプリケーションをデバッグする

Studio の埋め込みデバッガーを使用して Mule アプリケーションをデバッグします。

[Logging and Debugging](https://docs.mulesoft.com/mule-runtime/latest/logging-and-debugging)を参照してください。

## [](#view-app-log)アプリケーションログの表示

Unresolved include directive in modules/ROOT/pages/mcp-connector-studio.adoc - include::connectors::partial$t-studio-partial.adoc\[\]

## [](#apply-mcp-policies)MCP ポリシーの適用

MCP Connector では、MCP サーバーエンドポイントのセキュリティ、監視、ガバナンスを強化するポリシーがサポートされます。アクセスの制御、認証の追加、レート制限の実装、セキュリティの一層の強化を行うためのポリシーを適用できます。

使用可能な MCP ポリシー:

- **MCP Support Policy (MCP サポートポリシー)**
    
    MCP サポートを Flex Gateway MCP サーバーインスタンスに追加します。MCP サーバーインスタンスを適切に機能させるには、このポリシーが必要です。
- **MCP Schema Validation Policy (MCP スキーマ検証ポリシー)**​
    
    MCP 要求を検証して MCP 仕様に準拠していることを確認します。
- **MCP Attribute-Based Access Control Policy (MCP 属性ベースのアクセス制御ポリシー)**
    
    層、IP、ヘッダー、クレームなどのユーザー情報に基づいてツール、リソース、プロンプトへのアクセスを制御します。

### [](#mcp-ポリシーのベストプラクティス)MCP ポリシーのベストプラクティス

- 本番 MCP サーバーには認証ポリシーを必ず適用します。
- ログポリシーを使用して MCP クライアントのアクティビティを追跡します。
- レート制限を実装して、悪用を防止し、公正な使用を確保します。
- 開発環境、ステージング環境、本番環境で異なるポリシーを設定します。
- ポリシー設定を定期的に見直して更新します。

使用可能なポリシーと設定についての詳細は、x[Inbound Policies Directory](https://docs.mulesoft.com/gateway/latest/policies-included-directory)を参照してください。

Unresolved include directive in modules/ROOT/pages/mcp-connector-studio.adoc - include::connectors::partial$mcp-connector-partial.adoc\[\]

## [](#次のステップ)次のステップ

- [MCP Connector の例を試します](https://docs.mulesoft.com/jp/mcp-connector/1.2/mcp-connector-examples)​。
- [MCP サーバーにセキュリティを適用します](https://docs.mulesoft.com/jp/mcp-connector/1.2/mcp-connector-config-topics)​。

## [](#関連情報)関連情報

Unresolved include directive in modules/ROOT/pages/mcp-connector-studio.adoc - include::connectors::partial$t-studio-partial.adoc\[\]