> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-chore-myaccount-api-autoupdate.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> 各 Auth0 MCP Server ツールに必要な管理スコープと、初期化時に glob パターンを使用して設定する方法を学ぶ。

# スコープを理解する

export const ReleaseStageNotice = ({feature, stage, plans, contact, terms}) => {
  const stageTextMap = {
    "beta": "Beta",
    "ea": "Early Access"
  };
  const stageText = stageTextMap[stage] || "a product release stage";
  const prsLink = "/docs/troubleshoot/product-lifecycle/product-release-stages";
  const linkify = (text, url) => {
    return <a href={url} target="_blank" rel="noreferrer" class="link">{text}</a>;
  };
  const includeDetails = (plans, contact, terms) => {
    const hasDetails = terms || plans || contact;
    if (!hasDetails) return null;
    return <span data-as="p">
            {plans && <>This feature is available for {linkify(`${plans} plans`, "https://auth0.com/pricing")}. </>}
            {contact && "To participate, contact " + contact + ". "}
            {terms && <>By using this feature, you agree to the applicable Free Trial terms in Okta's {linkify("Master Subscription Agreement", "https://www.okta.com/legal")}.</>}
        </span>;
  };
  return <Warning>
            <span data-as="p">
                <strong>The {feature} feature is in {linkify(stageText, prsLink)}.</strong>
            </span>

            {includeDetails(plans, contact, terms)}
        </Warning>;
};

<ReleaseStageNotice feature="Auth0 MCP Server" stage="beta" />

セキュリティ上の理由により、Auth0 Model Context Protocol サーバーではデフォルトでスコープは一切付与されないため、必要なスコープは初期化時にリクエストする必要があります。サーバーの初期化後は、以下の例のように glob パターンを使用してスコープを手動で設定できます。

```bash lines theme={null}
# すべての読み取りスコープを選択する
npx @auth0/auth0-mcp-server init --scopes 'read:*'

# 複数のスコープパターンを選択する（カンマ区切り）
npx @auth0/auth0-mcp-server init --scopes 'read:*,create:clients,update:actions'
```

使用する管理操作やツールの種類によっては、クライアントで MCP 操作を正常に実行するために、追加のスコープをリクエストする必要がある場合があります。利用可能なスコープは以下のとおりです。

<Accordion title="管理操作のスコープ">
  | 管理操作                                   | MCP ツール                          | 必要なスコープ                   | 想定される影響                                                    |
  | -------------------------------------- | -------------------------------- | ------------------------- | ---------------------------------------------------------- |
  | 特定の Auth0 アプリケーションの詳細を取得する             | `auth0_get_application`          | `read:clients`            | 機密性の高い可能性があるアプリケーション設定の詳細を閲覧できます                           |
  | 新しい Auth0 アプリケーションを作成する                | `auth0_create_application`       | `create:clients`          | 認証フローで使用される可能性のある新しいアプリケーションを作成できます                        |
  | 既存の Auth0 アプリケーションを更新する                | `auth0_update_application`       | `update:clients`          | 重要なアプリケーション設定を変更できるため、ユーザーの認証が中断される可能性があります                |
  | アプリケーションのクライアントグラントを作成する               | `auth0_create_application_grant` | `create:client_grants`    | アプリケーションが API にアクセスすることを許可し、machine-to-machine 認証フローを実現します |
  | アプリケーションの認証情報をファイルに保存する                | `auth0_save_credentials_to_file` | `read:client_credentials` | アプリケーションのクライアント認証情報を読み取り、ローカルの環境ファイルに保存できます                |
  | Auth0 テナント内のすべてのリソースサーバー (API) を一覧表示する | `auth0_list_resource_servers`    | `read:resource_servers`   | すべての API 設定とそのスコープが明らかになります                                |
  | 特定の Auth0 リソースサーバーの詳細を取得する             | `auth0_create_resource_server`   | `create:resource_servers` | 署名アルゴリズムやトークン設定を含む API 設定の詳細が明らかになります                      |
  | 新しい Auth0 リソースサーバー (API) を作成する         | `auth0_get_resource_server`      | `read:resource_servers`   | アクセス制御に使用できる新しい API とスコープを定義できます                           |
  | 既存の Auth0 リソースサーバー (API) を更新する         | `auth0_update_resource_server`   | `update:resource_servers` | API 設定を変更できるため、それらの API に依存するアプリケーションに影響する可能性があります         |
  | Auth0 テナント内のすべてのアクションを一覧表示する           | `auth0_list_actions`             | `read:actions`            | 認証フロー中に実行されるすべてのカスタムコードが明らかになります                           |
  | 特定の Auth0 アクションの詳細を取得する                | `auth0_get_action`               | `read:actions`            | 認証フロー向けのカスタムコードやロジックが公開されます                                |
  | 新しい Auth0 アクションを作成する                   | `auth0_create_action`            | `create:actions`          | 認証フローやユーザーデータを変更できるカスタムコードを作成できます                          |
  | 既存の Auth0 アクションを更新する                   | `auth0_update_action`            | `update:actions`          | 認証のセキュリティや動作に影響するカスタムコードを変更できる可能性があります                     |
  | Auth0 アクションをデプロイする                     | `auth0_deploy_action`            | `update:actions`          | カスタムコードを本番環境に反映するため、すべてのユーザーの認証体験に影響する可能性があります             |
  | Auth0 テナントのログを一覧表示する                   | `auth0_list_logs`                | `read:logs`               | ユーザーのアクティビティ、ログイン失敗、セキュリティイベントに関する詳細情報が公開されます              |
  | ID で特定のログエントリを取得する                     | `auth0_get_log`                  | `read:logs`               | 特定の認証イベントに関する詳細データを確認でき、PII が含まれる可能性があります                  |
  | Auth0 テナント内のすべてのフォームを一覧表示する            | `auth0_list_forms`               | `read:forms`              | ログイン、登録、パスワードリセット用のカスタムフォーム設定が明らかになります                     |
  | 特定の Auth0 フォームの詳細を取得する                 | `auth0_get_form`                 | `read:forms`              | フィールド検証やデザインを含む詳細なフォーム設定が公開されます                            |
  | 新しい Auth0 フォームを作成する                    | `auth0_create_form`              | `create:forms`            | ユーザーデータを収集するカスタム認証フォームを作成できます                              |
  | 既存の Auth0 フォームを更新する                    | `auth0_update_form`              | `update:forms`            | ユーザー向けフォームを変更できるため、認証体験に影響する可能性があります                       |
</Accordion>
