Life after RAG: MCP, logs and automatic analysis of Jira tickets

Ilya Paramoshin9 Jul 2026

Problem

Support engineers at a telecom messaging service had a RAG assistant over Confluence and Jira. It answered documentation questions, but incidents needed facts from logs and databases. The engineer still opened Kibana, VictoriaMetrics or PostgreSQL and wrote the Jira comment by hand, usually in 15–40 minutes per ticket.

Example from the article: a ticket says "the client did not receive an SMS, client_id=12345, yesterday after 14:00, repeat the check". The answer needs log events by client_id, the state of related objects in the DB and similar cases from the documentation.

Solution in brief

The team kept the RAG search as the core and put it behind an API. Around it they added a log analysis service, a read-only Postgres retrieval service, a Celery job for Jira tickets and a thin MCP adapter for chat. The step order is fixed in code; the LLM decides only inside a step. A fallback from logs to RAG covers router mistakes.

Questions this case answers
  • How to automate triage of incoming requests when answers sit in different sources (documents, event logs, databases) and the system must stay reproducible
  • How to add tool access to an existing retrieval system without rewriting it and without letting slow operations block fast ones
  • How to extend a documentation RAG assistant so it also investigates incidents through logs and operational databases
  • How to automatically analyze new support tickets in Jira and post a structured comment

Tools and methods

  • RAG API (hybrid search) — Elasticsearch BM25 plus Qdrant vectors, reranking, answers with citations.
  • Open WebUI + MCP — one chat; the model picks tools from descriptions.
  • Celery Beat + Redis — polls Jira by JQL, queue per project, dedup keys.
  • Log analysis service (FastAPI) — service catalog, cascade search, error table.
  • Postgres Retrieval Service — natural-language task to a plan, then read-only SQL via MCP.
  • Atlassian MCP — Jira and Confluence queries from the chat.
Continue reading — it's free

Google or a one-time email code. No password.