This repository was archived by the owner on Sep 4, 2025. It is now read-only.
Document Docker code locations and usage for Azure MCP Server #1026
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR provides a comprehensive analysis and documentation of where the Docker-related code is located in the Azure MCP repository in response to the question "where is the code to run azure mcp in docker".
Docker Code Locations
The Docker functionality for Azure MCP Server is implemented across several key files:
Core Docker Files
/Dockerfile
- Main Docker image definition that usesmcr.microsoft.com/dotnet/aspnet:9.0.8-bookworm-slim
as the base image and runsdotnet azmcp.dll server start
as the entrypoint/eng/scripts/Build-Docker.ps1
- PowerShell script that builds the .NET application and creates the Docker image with tagazure/azure-mcp:$Version
CI/CD Pipeline Files
/eng/pipelines/templates/jobs/docker.yml
- Azure DevOps pipeline job that builds and publishes Docker images to Azure Container Registry/eng/pipelines/templates/common.yml
- Main pipeline that orchestrates the Docker build in the Release stageApplication Code
/core/src/AzureMcp.Cli/Program.cs
- The main CLI entry point that handles theserver start
command executed in the Docker container/core/src/AzureMcp.Cli/AzureMcp.Cli.csproj
- Project file defining theazmcp
executable that runs in the containerDocumentation
/README.md
- Contains Docker installation and usage instructions, including how to use the official image frommcr.microsoft.com/azure-sdk/azure-mcp
How It Works
azmcp.dll
dotnet azmcp.dll server start
to launch the MCP servermcr.microsoft.com/azure-sdk/azure-mcp
This analysis helps developers understand the complete Docker implementation and build process for the Azure MCP Server.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.