Skip to content

User/visaayir/mcp gateway on appservices#52

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

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.
@JayDoubleu
Copy link

I like the idea of removing AKS as dependency.

@vijaysaayi
Copy link
Author

I was trying to get a POC to see if this work. Hence raised this PR to see file diff. Closing this PR for now.

@vijaysaayi vijaysaayi closed this Feb 22, 2026
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.

2 participants