AWS Builder Center
Building Kleos: A Local AI Assistant for DevOps Workflows

Building Kleos: A Local AI Assistant for DevOps Workflows

Exploring how local LLMs and Model Context Protocol (MCP) can simplify DevOps workflows through GitHub Actions monitoring, failure investigation, and repository insights.

DevOps and Cloud Engineer

Building Kleos: A Local AI Assistant for DevOps Workflows

Introduction

DevOps workflows often involve checking CI/CD pipelines, investigating failed jobs, reviewing logs, and navigating repositories to understand what's happening.
I wanted to explore how AI could make these tasks easier without relying entirely on cloud-hosted language models.
That's how I started building Kleos, a local AI-powered DevOps chatbot assistant designed to help developers interact with their development workflows through natural language.

What is Kleos?

Kleos is an AI-powered DevOps assistant that combines a local Large Language Model (LLM) with Model Context Protocol (MCP) to interact with development tools.
Instead of manually navigating different interfaces to gather information, developers can ask questions and let the assistant retrieve relevant information through available MCP tools.
The main goal is to make everyday DevOps tasks more accessible through conversational interaction.

Architecture and Technology Stack

The project uses a lightweight architecture built around locally hosted AI and tool integration.
Core technologies:
  • Python: Application logic and integration.
  • Streamlit: Interactive chatbot interface.
  • Ollama: Local LLM runtime.
  • Qwen 2.5 1.5B: Lightweight language model.
  • Model Context Protocol (MCP): Connects the AI assistant with external tools.
  • GitHub Actions: CI/CD workflow information and monitoring.
  • GitHub: Repository inspection and development workflow context.
The local model runs through Ollama, while the MCP server exposes selected tools that allow the assistant to retrieve relevant development information.

Key Features

1. GitHub Actions Monitoring

Kleos can help inspect GitHub Actions workflow information, including workflow status and execution details.

2. Failed Workflow Investigation

Developers can investigate failed jobs and retrieve relevant logs to better understand pipeline failures.

3. Repository Insights

The assistant can inspect connected repository information and help developers understand their project context.

4. Local AI Processing

Using Ollama and Qwen 2.5 1.5B allows the language model to run locally rather than depending entirely on external AI APIs.

5. Read-Only Interaction

The current implementation uses a read-only approach for interacting with development resources. This provides a safer starting point for experimenting with AI-assisted DevOps workflows.

Why MCP?

One of the most interesting parts of this project is Model Context Protocol.
MCP provides a structured way for AI applications to interact with external tools and resources.
Rather than building every integration directly into the chatbot, I can expose selected capabilities through an MCP server.
This makes the architecture more modular and provides room for future integrations.

Challenges and Learnings

Building Kleos helped me explore several important areas:
  • Understanding how local LLMs work with limited resources.
  • Connecting an AI application with external tools through MCP.
  • Designing tool interactions for DevOps workflows.
  • Working with GitHub Actions information and execution logs.
  • Balancing AI capabilities, performance, and safety.
One important takeaway was that an AI assistant becomes significantly more useful when it can access relevant tools and real development context instead of relying only on its language model.

What's Next?

Kleos is an evolving project, and there are several areas I would like to explore further:
  • More MCP integrations for cloud and DevOps platforms.
  • Better workflow failure analysis.
  • Infrastructure monitoring and observability integrations.
  • Improved model selection and performance.
  • More advanced AI-assisted troubleshooting capabilities.
The long-term vision is to build a practical AI assistant that helps developers understand, monitor, and troubleshoot their infrastructure and development workflows.

Final Thoughts

Kleos started as an experiment to understand how local LLMs and MCP can work together in real-world DevOps scenarios.
It has been a valuable hands-on learning experience across AI, Python, GitHub Actions, and tool integration.
I'm looking forward to improving it and exploring more possibilities at the intersection of AI and DevOps.
Thanks for reading!
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article