Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform
The error Name or service not known (kgateway-e2.az.3pc.att.com:443) indicates that the Foundry Agent Service cannot resolve the MCP server hostname via DNS, so it fails before it can enumerate tools.
To resolve this, focus on basic network/DNS reachability of the MCP endpoint from Foundry:
- Verify the MCP server URL
- Confirm that the
Remote MCP Server endpointconfigured in the agent’s MCP tool is correct (no typos in hostname, port, or path). - In Foundry portal, open the agent → Playground → Tools → select the MCP tool and re-check the
server_url/endpoint value.
- Confirm that the
- Confirm the MCP server is reachable from the Foundry environment
- Ensure that
kgateway-e2.az.3pc.att.comis publicly resolvable in DNS or reachable from the network where Foundry Agent Service runs. - If the MCP server is only resolvable on an internal corporate DNS or is on a private network, Foundry will not be able to reach it unless it is exposed through a reachable endpoint.
- Ensure that
- Check firewalls and network restrictions
- Ensure that outbound HTTPS (TCP 443) from Foundry to the MCP server is allowed.
- If there are enterprise firewalls or proxies, they must allow traffic to
kgateway-e2.az.3pc.att.com:443.
- Validate MCP server behavior independently
- From a machine in the same network as Foundry (or a representative environment), attempt to resolve and connect to
kgateway-e2.az.3pc.att.com:443using standard network tools. - If DNS resolution fails or the connection is blocked, fix that at the network/DNS layer first.
- From a machine in the same network as Foundry (or a representative environment), attempt to resolve and connect to
- Re-test MCP tool enumeration
- After DNS and connectivity are fixed, go back to the agent Playground, expand Tools, and trigger a tool call again to confirm that tools can now be enumerated.
If the MCP server is hosted on Azure Functions as an MCP endpoint, ensure the endpoint is in the correct format (for example, https://<function-app-name>.azurewebsites.net/runtime/webhooks/mcp) and that any required authentication (Unauthenticated or Microsoft Entra) is configured correctly in the MCP tool definition.
References:
- Connect an MCP server on Azure Functions to a Foundry Agent Service agent
- Azure MCP Server concepts
- Connect agents to Model Context Protocol servers (python)
- Connect agents to Model Context Protocol servers (java)
- Connect agents to Model Context Protocol servers (typescript)
- Connect agents to Model Context Protocol servers (csharp)