Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Aug 21, 2025

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 uses mcr.microsoft.com/dotnet/aspnet:9.0.8-bookworm-slim as the base image and runs dotnet 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 tag azure/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 stage

Application Code

  • /core/src/AzureMcp.Cli/Program.cs - The main CLI entry point that handles the server start command executed in the Docker container
  • /core/src/AzureMcp.Cli/AzureMcp.Cli.csproj - Project file defining the azmcp executable that runs in the container

Documentation

  • /README.md - Contains Docker installation and usage instructions, including how to use the official image from mcr.microsoft.com/azure-sdk/azure-mcp

How It Works

  1. The build process compiles the .NET application into azmcp.dll
  2. The Docker image packages this application with the .NET runtime
  3. The container runs dotnet azmcp.dll server start to launch the MCP server
  4. Official images are published to Microsoft Container Registry at mcr.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.

@github-project-automation github-project-automation bot moved this from Untriaged to Done in Azure MCP Server (OLD) Aug 21, 2025
@Copilot Copilot AI changed the title [WIP] where is the code to run azure mcp in docker Document Docker code locations and usage for Azure MCP Server Aug 21, 2025
@Copilot Copilot AI requested a review from haolingdong-msft August 21, 2025 01:16
Copilot finished work on behalf of haolingdong-msft August 21, 2025 01:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants