Skip to content

Commit 8f075b0

Browse files
committed
Remove the explicit disable keys section
1 parent d48ba5c commit 8f075b0

1 file changed

Lines changed: 9 additions & 40 deletions

File tree

articles/azure-functions/functions-mcp-foundry-tools.md

Lines changed: 9 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to connect your MCP server hosted on Azure Functions to A
55
ms.author: samuelzhang
66
ms.reviewer: glenga
77
ms.topic: how-to
8-
ms.date: 02/05/2026
8+
ms.date: 02/11/2026
99
ms.collection: ce-skilling-ai-copilot
1010

1111
#Customer intent: As a developer, I want to learn how to connect an Azure Functions-hosted MCP server to Foundry Agent Service, so that my agent has access to my MCP tools.
@@ -21,7 +21,6 @@ This article follows this basic process for configuring the MCP server connectio
2121
> * Create and deploy an MCP server to your function app in Azure.
2222
> * Get the MCP server endpoint URL.
2323
> * Get the authentication credentials (as required).
24-
> * Disable key-based authentication (as required).
2524
> * Add an MCP server tool connection to an existing agent.
2625
2726
## Prerequisites
@@ -148,44 +147,6 @@ Because unauthenticated access requires no shared secrets or authentication, you
148147
149148
---
150149

151-
## Disable key-based authentication
152-
153-
Key-based authentication is the default for an MCP endpoint hosted in Azure Functions. To use a different authentication method, change the MCP endpoint authentication to `anonymous`. How you make this change depends on the type of MCP server you're hosting:
154-
155-
### [MCP extension server](#tab/mcp-extension/key-based)
156-
157-
Skip this section when using key-based authentication.
158-
159-
### [MCP extension server](#tab/mcp-extension/entra)
160-
161-
[!INCLUDE [functions-mcp-extension-disable-key-access](../../includes/functions-mcp-extension-disable-key-access.md)]
162-
163-
### [MCP extension server](#tab/mcp-extension/oauth-id)
164-
165-
[!INCLUDE [functions-mcp-extension-disable-key-access](../../includes/functions-mcp-extension-disable-key-access.md)]
166-
167-
### [MCP extension server](#tab/mcp-extension/unauthenticated)
168-
169-
[!INCLUDE [functions-mcp-extension-disable-key-access](../../includes/functions-mcp-extension-disable-key-access.md)]
170-
171-
### [Self-hosted server](#tab/self-hosted/key-based)
172-
173-
Skip this section when using key-based authentication.
174-
175-
### [Self-hosted server](#tab/self-hosted/entra)
176-
177-
[!INCLUDE [functions-mcp-custom-handler-disable-key-access](../../includes/functions-mcp-custom-handler-disable-key-access.md)]
178-
179-
### [Self-hosted server](#tab/self-hosted/oauth-id)
180-
181-
[!INCLUDE [functions-mcp-custom-handler-disable-key-access](../../includes/functions-mcp-custom-handler-disable-key-access.md)]
182-
183-
### [Self-hosted server](#tab/self-hosted/unauthenticated)
184-
185-
[!INCLUDE [functions-mcp-custom-handler-disable-key-access](../../includes/functions-mcp-custom-handler-disable-key-access.md)]
186-
187-
---
188-
189150
## Add your MCP server
190151

191152
The process for creating the agent connection to the MCP server depends on your specific endpoint authentication options.
@@ -245,6 +206,10 @@ To connect to your MCP server endpoint:
245206

246207
1. Select **Save** to save the MCP tool configuration in your agent.
247208

209+
Beause you are using built-in authentication, you should also disable the default key-based authentication.
210+
211+
[!INCLUDE [functions-mcp-custom-handler-disable-key-access](../../includes/functions-mcp-custom-handler-disable-key-access.md)]
212+
248213
### [OAuth identity](#tab/oauth-id)
249214

250215
When you use OAuth identity passthrough, the agent prompts the user to sign in and then uses the returned access token when connecting to the server.
@@ -281,6 +246,10 @@ When you use OAuth identity passthrough, the agent prompts the user to sign in a
281246

282247
1. Go back to the agent window, select **Close** > **Save** to save the MCP tool configuration in your agent.
283248

249+
Beause you are using built-in authentication, you should also disable the default key-based authentication.
250+
251+
[!INCLUDE [functions-mcp-custom-handler-disable-key-access](../../includes/functions-mcp-custom-handler-disable-key-access.md)]
252+
284253
### [Unauthenticated](#tab/unauthenticated)
285254

286255
Use unauthenticated access only when your MCP server doesn't require authentication and accesses only public information.

0 commit comments

Comments
 (0)