Amazon Q CLI with MCP: SDLC to Cloud Operations
1. 1. Introduction
This blog explores the art of the possible by leveraging Amazon Q CLI in combination with the Model Context Protocol (MCP). We dive into how this powerful integration can streamline the development lifecycle and operational workflows of applications on AWS — enabling faster, context-aware, and more efficient cloud development and operations.
What is Amazon Q Developer CLI?
What is Model Context Protocol (MCP)
- MCP is an open standard, open-source framework introduced by Anthropic in November 2024 to standardize the way where large language models integrate and share data with external tools, systems, and data sources.
-
Think of MCP like a USB-C port for AI applications. Just as USB-C provides a standardized way to connect your devices to various peripherals and accessories, MCP provides a standardized way to connect AI models to different data sources and tools.
-
MCP helps you build agents and complex workflows on top of LLMs.
- MCP Transport Mechanisms:
Local (STDIO)
|
Remote (HTTP or SSE)
|
Uses the STDIO transport mechanism
|
Uses the Streamable HTTP transport mechanism
|
Server is run on your local machine (the same place that your MCP host / client is run)
|
Server is run on a virtual machine/container (NOT the same place that your MCP host / client is run)
|
https://modelcontextprotocol.io/
2. About:
In this blog, We will walk through building and deploying a microservices-based Online Bookstore application on the AWS EKS (Elastic Kubernetes Service) platform. Along the way, we’ll explore how combining Amazon Q CLI with Model Context Protocol (MCP) can significantly streamline key activities across Day 0 to Day 2 operations — from initial setup and development to deployment, monitoring, and optimization.
Part 1: End-to-End Application Lifecycle Automation using AWS CLI Agents with MCP
This phase demonstrates how AWS CLI Agents integrated with the MCP (Multi-Agent Control Plane) tool can automate the full application lifecycle. Starting from generating a complete technical architecture—including technology stack, architectural diagrams, and AWS cost estimations—the workflow proceeds to automatically update project documentation in Confluence, create relevant JIRA tasks, generate and deploy production-ready application code, and provision the entire stack on AWS EKS with zero manual intervention or environment touchpoints.
Part 2: Intelligent SRE Automation and Incident Management with Q CLI Agents and MCP
In this phase, the focus shifts to Site Reliability Engineering (SRE) automation. Using Q CLI agents with MCP, the system can autonomously detect issues in microservices, perform root cause analysis, apply corrective fixes, and log relevant details in ServiceNow—including creating Knowledge Base articles, incident reports, and change records. The system also builds intelligence over time, offering contextual suggestions or proactive alerts for similar future incidents, ensuring operational resilience and faster MTTR (Mean Time to Resolution).
3. High Level Architecture of running MCP with AWS Q CLI

4. Let’s Dive In:
Now that we’ve covered the background, let’s dive into the hands-on implementation. We’ll go step by step to see how Amazon Q CLI and MCP can simplify and accelerate each phase of our microservices journey on AWS EKS.
Part 1: End-to-End Application Lifecycle Automation using AWS CLI Agents with MCP
Development and Deployment of Bookstore Microservices on AWS EKS
In this phase, we’ll develop and deploy the Online Bookstore microservices on AWS EKS using the Amazon Q Developer CLI. Leveraging its agentic capabilities, the Q CLI will interact with multiple MCP servers at various stages of the workflow to perform specific tasks — as illustrated below.

Let’s Dive In with Hands-On Implementation:
1). In the first step, I’ll use Amazon Q CLI to generate a comprehensive Technical Architecture Diagram (TAD) for my Online Retail Store application. With just a single prompt, Q CLI coordinates with multiple MCP servers to deliver a complete architectural blueprint that includes:
- Technical design details and AWS best practice - (Q will use AWS documentation MCP server to get the best practice on AWS )
- Comprehensive Architecture Diagram (using AWS Diagram MCP Server)
- AWS Cost calculations for deploying the application (using AWS Cost MCP Server)
=> Below is a step-by-step illustration of how, with just a single prompt, Amazon Q CLI agents with MCP servers — generates a comprehensive architecture plan. (Architecture diagram, TAD, AWS cost ARR) in HTML format (it can be in any format md, pdf etc, here I am using HTML )
=> The TAD shown here was auto-generated in the previous steps by Q CLI, leveraging multiple MCP Agents—namely, the AWS Documentation MCP, Diagram MCP, and AWS Cost Estimator MCP. Together, these agents collaborated to produce a comprehensive, production-grade TAD. This mirrors a real-world scenario where, prior to application development and deployment, teams typically draft a TAD to define the architecture, technology choices, integration points, and cost projections.
2. Publishing TAD to Confluence via Q CLI Agents
With the TAD now generated and available in the local workspace, the next step is to seamlessly publish it to our Confluence space. Using Q CLI Agents in conjunction with the Confluence MCP Server, we instruct the system to create a new Confluence page titled "Retail Bookstore - TAD", ensuring that architectural documentation is readily accessible to all stakeholders.
3. Automating JIRA Story and Task Creation
After successfully publishing the TAD, we leverage Q CLI Agents with the JIRA MCP Server to automatically create the necessary Epics, User Stories, and Tasks for managing the full application lifecycle. This ensures alignment between architecture planning and agile execution, without any manual effort.
Below illustrations demonstrate the automated creation of Confluence pages and JIRA issues using Q CLI Agents.