Skip to content

User/visaayir/mcp gateway on appservices#52

Draft
vijaysaayi wants to merge 2 commits intomicrosoft:mainfrom
vijaysaayi:user/visaayir/mcp-gateway-on-appservices
Draft

User/visaayir/mcp gateway on appservices#52
vijaysaayi wants to merge 2 commits intomicrosoft:mainfrom
vijaysaayi:user/visaayir/mcp-gateway-on-appservices

Conversation

@vijaysaayi
Copy link

No description provided.

This adds support for deploying MCP Gateway to Azure App Service using the
new SITECONTAINERS feature for multi-container apps.

Changes:
- Add AppServiceDeploymentManager for managing sitecontainers via ARM API
- Add AppServiceNodeInfoProvider for discovering running sidecar containers
- Add SiteContainerPortAllocator for port management (8001-8009)
- Add conditional provider registration in Program.cs for App Service mode
- Add Bicep infrastructure template with ACR, Cosmos DB, App Service
- Add Dockerfile for gateway container image
- Update mcp-example Dockerfile to support configurable PORT

Key features:
- Uses UserAssigned managed identity for ACR authentication
- Skips sitecontainer creation if container already exists (avoids restarts)
- All containers communicate via localhost (shared network namespace)
- Session affinity maintained via Redis + mcp-session-id header

Tested and working on App Service with mcp-example adapter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant