Run SonarQube MCP server in Azure Container App

–Update –

  1. Able to run the mcp/sonarqube image on Azure Container App
  2. Able to test from Postman MCP Client - it works, lists all tools
  3. However, unable to add this as a tool in Microsoft Foundry Agent- below is the error in container

2026-01-20T10:39:52.1865016Z stderr F WARN SonarQube MCP Server - Missing or empty SonarQube token from 100.100.0.81

2026-01-20T10:39:52.7320179Z stderr F WARN SonarQube MCP Server - Missing or empty SonarQube token from 100.100.0.95

Issue: Foundry does not provision to send SONARQUBE_TOKEN header. But, why is the MCP server not taking this value from Env? Token is already set in Environment while running MCP image. Will this MCP not work with MS Foundry agents then?

Note: Postman MCP Client allows to set this header hence works fine.

Hello @chemramya, I apologize for the late reply.

We haven’t had the opportunity yet to experiment with the Microsoft Foundry Agent. Could you please share more details about your MCP configuration in this environment? Specifically, we’d like to understand how you set up the SonarQube MCP Server within MS Foundry Agent.

Thank you!