Skip to content

Commit 09ce16f

Browse files
committed
fix: supprimer le paramètre mcpServerName et mettre à jour la définition de l'API MCP pour récupérer les informations du compte authentifié
1 parent 5608c38 commit 09ce16f

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

labs/mcp-prm-oauth/src/bicep/apim-mcp/mcp-api.bicep

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ param mcpAppTenantId string
1313
@description('MCP API path to be served via APIM')
1414
param mcpApiPath string = 'mcp'
1515

16-
@description('The name of the MCP server for PRM discovery')
17-
param mcpServerName string = '${webAppName}-mcp-tools'
18-
19-
20-
2116
// Get reference to the existing APIM service
2217
resource apimService 'Microsoft.ApiManagement/service@2025-09-01-preview' existing = {
2318
name: apimServiceName
@@ -90,16 +85,16 @@ resource mcpBackendServerUrl 'Microsoft.ApiManagement/service/backends@2025-09-0
9085
}
9186
}
9287

93-
// Create the MCP API definition in APIM
88+
// Create the MCP Passthrough definition in APIM
9489
resource mcpApi 'Microsoft.ApiManagement/service/apis@2025-09-01-preview' = {
9590
parent: apimService
96-
name: mcpServerName
91+
name: '${webAppName}-mcp-server'
9792
properties: {
9893
displayName: '${webAppName} MCP Server'
9994
type: 'mcp'
10095
subscriptionRequired: false
10196
backendId: mcpBackendServerUrl.name
102-
description: 'MCP API for ${webAppName} showing authenticated user profile info'
97+
description: 'MCP API for ${webAppName} retrieving authenticated account Graph info'
10398
path: mcpApiPath
10499
protocols: ['https']
105100
mcpProperties: {

labs/mcp-prm-oauth/src/bicep/identity/mcp-entra-app.bicep

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,4 @@ resource mcpServicePrincipal 'Microsoft.Graph/servicePrincipals@v1.0' = {
9696

9797
// Outputs
9898
output mcpAppId string = mcpEntraApp.appId
99-
output mcpAppUniqueName string = mcpEntraApp.uniqueName
10099
output mcpAppTenantId string = tenantId

0 commit comments

Comments
 (0)