---
schema_version: "1"
id: 228327cf59cb9dd4d44c0d0f2e5c10b1e86b766c954e959fe3fd07755f30d103
title: Flex Gateway エージェントポリシー
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/gateway/1.9/flex-agent-policies.md
canonical_url: https://docs.mulesoft.com/jp/gateway/1.9/flex-agent-policies
source_site: docs.mulesoft.com
content_type: documentation
content_hash: b3ad7acdfb1e8f0ad96828830030efd8642f30299aa1612e1d7dc91fa7f6687d
description: MuleSoft Documentation Site
release: "1.9"
latest: false
---
# Flex Gateway エージェントポリシー

ポリシーは、Flex Gateway が要求を処理するときにルールを適用し、サーバーインスタンスを保護および管理できるようにします。Flex Gateway には、セキュリティを強化してエージェントインタラクションを制御する A2A および MCP 固有のポリシーが含まれます。

ポリシーを適用するには、[管理 Flex Gateway と接続モードでのポリシーの適用](https://docs.mulesoft.com/jp/gateway/1.9/flex-gateway-secure-conn)を参照してください。

Flex Gateway MCP および A2A サーバーインスタンスでは、レート制限、認証、承認、脅威保護、監視、ログを通じてサーバーインスタンスを保護するために他の Flex Gateway ポリシーもサポートされます。MuleSoft によって提供されるポリシーについての詳細は、​[インバウンドポリシーディレクトリ](https://docs.mulesoft.com/jp/gateway/1.9/policies-included-directory) and [アウトバウンドポリシーディレクトリ](https://docs.mulesoft.com/jp/gateway/1.9/policies-outbound-directory)​を参照してください。

既存の機能を拡張したり、新しい機能を定義したりするには、特定のビジネス要件に基づいてカスタムポリシーを作成します。カスタムポリシーの作成については、[Omni Gateway Policy Development Kit (PDK) Overview](https://docs.mulesoft.com/pdk/latest/policies-pdk-overview)を参照してください。

<table><tbody><tr><td class="icon"><i class="fa icon-note" title="Note"></i></td><td class="content">すべてのエージェントポリシーはインバウンドポリシーであり、自動ポリシーとしてはサポートされません。</td></tr></tbody></table>

## [](#sse-ポリシー)SSE ポリシー

A2A と MCP の両方で、サーバー送信イベント (SSE) ストリーミング用に次のポリシーがサポートされます。

<table class="tableblock frame-all grid-all fit-content spread">
<colgroup>
<col>
<col>
</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"><a href="https://docs.mulesoft.com/jp/gateway/1.9/policies-included-sse-logging" class="xref page">SSE ログ</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ストリーミング中にすべての SSE イベントを記録します</p></td>
</tr>
</tbody>
</table>

## [](#a2a-ポリシー)A2A ポリシー

<table class="tableblock frame-all grid-all fit-content spread">
<colgroup>
<col>
<col>
</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"><a href="https://docs.mulesoft.com/jp/gateway/1.9/policies-included-a2a-agent-card" class="xref page">A2A エージェントカード</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">サーバーインスタンスの公開 URL と一致するようにエージェントカード URL を書き換えます</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.mulesoft.com/jp/gateway/1.9/policies-included-a2a-pii-detector" class="xref page">A2A PII ディテクター</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">エージェントに送信される要求で個人情報 (PII) を検出します</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.mulesoft.com/jp/gateway/1.9/policies-included-a2a-prompt-decorator" class="xref page">A2A プロンプトデコレーター</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">プロンプトをコンテキスト情報でデコレーションします</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.mulesoft.com/jp/gateway/1.9/policies-included-a2a-schema-validation" class="xref page">A2A スキーマ検証</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">エージェント要求を検証し、A2A 仕様に準拠していることを確認します</p></td>
</tr>
</tbody>
</table>

## [](#mcp-ポリシー)MCP ポリシー

<table class="tableblock frame-all grid-all fit-content spread">
<colgroup>
<col>
<col>
</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"><a href="https://docs.mulesoft.com/jp/gateway/1.9/policies-included-mcp-attribute-access-control" class="xref page">MCP 属性ベースのアクセス制御</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">層、IP、ヘッダー、クレームなどのユーザー情報に基づいてツール、リソース、プロンプトへのアクセスを制御します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.mulesoft.com/jp/gateway/1.9/policies-included-mcp-schema-validation" class="xref page">MCP スキーマ検証</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">MCP 要求を検証して MCP 仕様に準拠していることを確認します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.mulesoft.com/jp/gateway/1.9/policies-included-mcp-support" class="xref page">MCP サポート</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">MCP サポートを Flex Gateway MCP サーバーインスタンスに追加します。MCP サーバーインスタンスを適切に機能させるには、このポリシーが必要です。</p></td>
</tr>
</tbody>
</table>

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

- [ポリシーの順序付け](https://docs.mulesoft.com/jp/gateway/1.9/policies-reorder)
- [Flex Gateway ポリシーでの DataWeave のサポート](https://docs.mulesoft.com/jp/gateway/1.9/policies-flex-dataweave-support)