aiganak-aiops-mcp
# β‘ AiGanak-AIOps-MCP
> **Autonomous Infrastructure & Code Health Diagnostic Agent over Model Context Protocol (MCP)**
> Developed by **Akshay Bankar | AiGanak Technologies ([aiganak.com](https://aiganak.com))** | Released under the Apache 2.0 License.
[](https://www.apache.org/licenses/LICENSE-2.0)
[](https://www.python.org/)
[](https://modelcontextprotocol.io/)
[](https://github.com/langchain-ai/langgraph)
[](https://phoenix.arize.com/)
---
## π Overview
**aiganak-aiops-mcp** is a flagship reference architecture and open-source MCP server designed to automate infrastructure diagnostics, log root-cause analysis, and safe code patching.
By combining **DuckDB OLAP analytics**, **Python AST structural inspection**, **LangGraph cyclic state machines**, and **Arize Phoenix LLMOps observability**, this repository provides a top 1% reference blueprint for production-grade agentic integrations.
---
## π System Architecture
### 1. High-Level Protocol & Component Boundaries
```text
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Client Layer (IDE / Agent) β
β (Cursor IDE / Claude Desktop / Custom LangGraph Agent) β
ββββββββββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββ
β
β Standard STDIO / JSON-RPC
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β aiganak-aiops-mcp (FastMCP Server) β
β β
β ββββββββββββββββββββββββββ βββββββββββββββββββββββββ βββββββββββββββββββββ β
β β query_log_file β β inspect_code_ast β β apply_code_patch β β
β β (DuckDB OLAP Engine) β β (Python AST Parser) β β (Git Safety Gate) β β
β βββββββββββββ¬βββββββββββββ βββββββββββββ¬ββββββββββββ βββββββββββ¬ββββββββββ β
ββββββββββββββββΌβββββββββββββββββββββββββββΌββββββββββββββββββββββββΌββββββββββββ
β β β
βΌ βΌ βΌ
βββββββββββββββββββββ βββββββββββββββββββββ βββββββββββββββββββββ
β JSONL/CSV Logs β β Source Code AST β β Host Codebase β
βββββββββββββββββββββ βββββββββββββββββββββ βββββββββββββββββββββ
```
### 2. LangGraph Stateful Self-Healing Orchestrator
```text
ββββββββββββββββββββββββββββββββββ
β node_log_analyzer β <ββββ
βββββββββββββββββ¬βββββββββββββββββ β
β β
βΌ β
ββββββββββββββββββββββββββββββββββ β
β node_code_inspector β β
βββββββββββββββββ¬βββββββββββββββββ β
β β
βΌ β
ββββββββββββββββββββββββββββββββββ β
β node_patch_proposer β β (Retry Loop)
βββββββββββββββββ¬βββββββββββββββββ β
β β
[ Human Approval Gate Interrupt ] β
β β
(Approved / Local) β
β β
βΌ β
ββββββββββββββββββββββββββββββββββ β
β node_patch_applier β β
βββββββββββββββββ¬βββββββββββββββββ β
β β
βΌ β
ββββββββββββββββββββββββββββββββββ β
β node_verifier β β
βββββββββββββββββ¬βββββββββββββββββ β
β β
[ Verification Passed? ] β
/ \ β
(Yes) (No) βββββββββββ
β
βΌ
βββββββ
β END β
βββββββ
```
TDQS
Scored across 3 tools
Each tool targets a clearly distinct task: log querying, code inspection, and code modification. There is no overlap between querying logs, parsing ASTs, and applying patches, so an agent would not confuse them.
The naming is inconsistent: query_log_file uses a verb_noun_obj pattern, inspect_code_ast uses verb_noun_obj, but apply_code_patch uses verb_noun. The verbs (query, inspect, apply) are varied and not obviously part of a unified domain vocabulary, and the patterns differ across tools.
Three tools is on the borderline of being too thin for an AIOps server, especially given the mixed domain of log analysis and code modification. The count is defensible, but the scope feels narrow for a server with 'aiops' in its name.
The tools span log querying, code inspection, and code patching, but each area has obvious gaps: there is no tool for writing log query results, no update/get verification for the patch step beyond the patch itself, and the log analysis surface gives no way to define or manage analysis workflows. The domain coverage is fragmented rather than complete.