Skip to main content

Restrict MCP server access to a custom registry

You can configure an MCP registry URL and access control policy to determine which MCP servers developers can discover and use in supported IDEs and Copilot CLI (コパイロット CLI).

この機能を使用できるユーザーについて

Enterprise owners and organization owners

Copilot Enterprise or Copilot 事業

重要

This feature is in パブリック プレビュー and is not the recommended method for restricting access to MCP servers. The more secure, generally available method is to define settings in your enterprise's managed-settings.json file. See Configuring an MCP server allowlist for your enterprise.

Prerequisites

Before you can fully configure MCP server access for your company, you need to create an MCP registry. See 組織または企業の MCP レジストリを構成する.

Configuring the MCP allowlist policy for an enterprise

To ensure uniform access, you can set and maintain your MCP registry URL and allowlist policy at the enterprise level. Otherwise, if your teams have different needs, you should configure separate policies for each organization.

  1. 企業ページに移動してください。 たとえば、GitHub.com の [Enterprise] ページから。

  2. ページの上部にある AI コントロールをクリックします。

  3. サイドバーで MCP をクリックします。

  4. Ensure MCP servers in Copilot is set to Enabled everywhere.

  5. In the MCP Registry URL section, enter the URL of your registry, then click Save.

    メモ

    Azure API センターを使用して MCP レジストリを設定する場合は、ワークスペース パスを含む API センターのベース URL を次の形式で入力します。

    https://SERVICE-NAME.data.REGION.azure-apicenter.ms/workspaces/WORKSPACE-NAME
    

    例えば次が挙げられます。

    https://contoso-apic.data.eastus.azure-apicenter.ms/workspaces/default
    

    /v0.1/serversなどのルート サフィックスを追加すると、GitHub Copilotによって MCP v0.1 パスが自動的に追加されるため、レジストリがエラーになります。

  6. In the Restrict MCP access to registry servers section, select the dropdown menu, then click one of the following options:

    • Allow all: No restrictions. All MCP servers can be used.
    • Registry only: Only servers from the registry may run.

    Your chosen policy will immediately apply to developers in your enterprise.

Configuring the MCP allowlist policy for an organization

  1. GitHub の右上隅にあるプロフィール画像をクリックしてから、[ Your organizations] をクリックします。

  2. 組織をクリックして選択します。

  3. Organization 名の下で、[ Settings] をクリックします。 [設定] タブが表示されない場合は、 [] ドロップダウン メニューを選び、 [設定] をクリックします。

    組織のプロファイルのタブのスクリーンショット。 [設定] タブが濃いオレンジ色の枠線で囲まれています。

  4. サイドバーの [Code, planning, and automation](コード、計画、自動化) の下で、 click Copilot, then click Policies.

  5. In the "Features" section, ensure MCP servers in Copilot is set to Enabled.

  6. In the MCP Registry URL (optional) field, enter the URL of your registry, then click Save.

    メモ

    Azure API センターを使用して MCP レジストリを設定する場合は、ワークスペース パスを含む API センターのベース URL を次の形式で入力します。

    https://SERVICE-NAME.data.REGION.azure-apicenter.ms/workspaces/WORKSPACE-NAME
    

    例えば次が挙げられます。

    https://contoso-apic.data.eastus.azure-apicenter.ms/workspaces/default
    

    /v0.1/serversなどのルート サフィックスを追加すると、GitHub Copilotによって MCP v0.1 パスが自動的に追加されるため、レジストリがエラーになります。

  7. In the Restrict MCP access to registry servers section, select the dropdown menu, then click one of the following options:

    • Allow all: No restrictions. All MCP servers can be used.
    • Registry only: Only servers from the registry may run.

    Your chosen policy will immediately apply to developers in your organization.

Next steps

For detailed information on MCP allowlist enforcement and limitations, see MCP private registry enforcement.

Further reading