Sponsored by Deepsite.site

MCP vs Manual vs A2A Nginx Installation

Created By
roy3drucker8 months ago
Content

MCP vs Manual vs A2A Nginx Installation

Introduction

This project simulates three different approaches to setting up a server (e.g., Nginx):

  1. A traditional manual installation (simulated, not an actual system setup).
  2. An automated installation using Anthropic's MCP (Model Context Protocol), which is actually connected and working in this project (connection steps are explained later in the file).
  3. A simulated collaborative agent setup using Google's A2A (Agent2Agent Protocol).

The goal is to demonstrate how DevOps engineers in the near future could leverage both MCP and especially A2A to simplify their workflows, reduce time and effort, improve efficiency, and automate complex infrastructure tasks across tools and environments.


What is MCP?

Model Context Protocol (MCP) by Anthropic is an open protocol that standardizes how AI applications can connect to tools and data sources. It lets large language models understand available tools, access them securely, and decide how to use them without being hardcoded for each case. MCP simplifies complex operations into high-level intents.

What is A2A?

A2A (Agent2Agent Protocol) is a new open protocol introduced by Google just days ago. It enables AI agents to discover each other, communicate, and collaborate across different systems—even if the agents were built by different vendors. A2A empowers developers to build ecosystems of agents that can coordinate tasks together, creating smart, dynamic workflows.


Real-Life Example of What MCP Is:

Think of it as a kitchen tool that connects all your equipment. Instead of pulling out different devices and connecting them every time you need to cook, you have one system that connects everything and simplifies the work for you. The MCP agent works in a similar way—it connects data sources, making tasks like setting up servers faster and easier, without having to manually integrate each one separately.

Real-Life Example of What A2A Is:

Personal example: Automating daily errands through agents

Imagine you have a few personal AI agents:

  • An Email Agent
  • A Shopping Agent
  • A Calendar Agent

Without A2A:

Each agent works alone. You must manually send emails, book appointments, and shop.

With A2A:

You say: “I need to buy new headphones by tomorrow, and I’m only free between 5–6pm.”

  • The Email Agent checks your inbox.
  • The Calendar Agent verifies your availability.
  • The Shopping Agent finds matching deals.
  • They coordinate with each other and complete the task. You get an update with the delivery info and a calendar entry.

Prerequisites

Before you begin, make sure you have the following:

  1. Python 3.x installed
  2. Docker installed (for running MCP agent)
  3. Visual Studio Code (VSCode) installed
  4. Copilot Plugin installed in VSCode (this is used to interact with the MCP agent)

Step-by-Step Instructions

Step 2: Automating the Installation with MCP Agent

  1. Install the Copilot Plugin in VSCode.
  2. Open the JSON file in VSCode. Click "Start" to open the Copilot chat window.
  3. Set Mode to "Agent" in the Copilot window.

Note: To use the MCP configuration, you will need a GitHub Personal Access Token. Go to your GitHub account → Settings → Developer settings → Personal access tokens, and generate a token with the appropriate permissions. Once generated, paste the token where prompted in the Copilot input field for github_token.

Use the Following JSON Code

{
  "mcp": {
    "inputs": [
      {
        "type": "promptString",
        "id": "github_token",
        "description": "GitHub Personal Access Token",
        "password": true
      }
    ],
    "servers": {
      "github": {
        "command": "docker",
        "args": [
          "run",
          "-i",
          "--rm",
          "-e",
          "GITHUB_PERSONAL_ACCESS_TOKEN",
          "ghcr.io/github/github-mcp-server"
        ],
        "env": {
          "GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}"
        }
      }
    }
  }
}

A2A Protocol Overview

A2A is Google's open protocol that enables agents to communicate, exchange information, and collaborate on complex tasks—even across vendors.

✅ Advantages

  • Agents collaborate with each other
  • Enables complex multi-agent workflows
  • Can work with different tools simultaneously
  • Real-time scaling, monitoring, and customization

⚠️ Disadvantages

  • Requires advanced initial setup
  • Still a very new (evolving) interface

🧪 Real-World DevOps A2A Example: Deployment & Cloud Maintenance

Imagine you're a DevOps engineer managing apps across AWS, GCP, and internal systems.

  • One agent manages Terraform infrastructure.
  • Another triggers CI/CD with Jenkins.
  • A third monitors performance with Prometheus.
  • A fourth sends updates via Slack.

Without A2A:

You manually integrate each step, deal with mismatches, and handle every connection manually.

With A2A:

  • Jenkins Agent runs a build.
  • Sends a "task" to the Terraform Agent to deploy.
  • If an error occurs, Monitoring Agent alerts the Slack Agent.

Now all agents communicate and sync—even if built with different tools.

🎯 Benefits:

For you: Smart automation of your digital tasks.
For DevOps: Modular agent-based systems that talk to each other without extra integrations.
More efficiency, less time wasted, scalable and transparent infrastructure.


📁 Project Structure

MCP-MANUAL-A2A-nginx-install/
├── install_nginx.sh
├── mcp_config.json
├── mcp_nginx_install.py
├── nginx_install.py
├── a2a_simulation.py
├── requirements.txt
└── README.md

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Playwright McpPlaywright MCP server
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
ChatWiseThe second fastest AI chatbot™
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
CursorThe AI Code Editor
Tavily Mcp
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Amap Maps高德地图官方 MCP Server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Serper MCP ServerA Serper MCP Server
DeepChatYour AI Partner on Desktop
WindsurfThe new purpose-built IDE to harness magic
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code