# hocine-drioueche/randoneo-agents-mcp architecture

> Architecture diagram of the GitHub repository hocine-drioueche/randoneo-agents-mcp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hocine-drioueche/randoneo-agents-mcp
- Repository: https://github.com/hocine-drioueche/randoneo-agents-mcp

## Overview

Randoneo is a French-language customer-support assistant backed by an MCP tool server. Customers ask questions in the interactive chat; the agent selects tools for catalog lookup, order tracking, policy retrieval, or escalation, then responds. Ticket creation is gated by an operator approval, and conversation state is persisted through a SQLite checkpointer. The README is empty, so capabilities and links here rely on the supplied source excerpts; the demo documents scenarios but is not part of the runtime workflow.

Main entry points: [`randoneo_support.py`](https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/randoneo_support.py) (MCP support server), [`chat.py`](https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/chat.py) (Interactive chat), [`agent.py`](https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/agent.py) (Agent runtime), [`data/catalog.json`](https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/data/catalog.json) (Catalog data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_conversation["Conversation"]
  node_chat["Interactive chat<br/>[chat.py]"]
  node_approval(("Operator approval<br/>[chat.py]"))
  node_checkpoint[("Conversation checkpoint<br/>[chat.py]")]
end

subgraph group_agent["Agent orchestration"]
  node_agent_runtime["Agent runtime<br/>[agent.py]"]
  node_model{{"Claude model"}}
  node_mcp_tools["MCP tool session<br/>[agent.py]"]
end

subgraph group_support["Support capabilities"]
  node_mcp_server["MCP support server"]
  node_catalog_search["Catalog search"]
  node_product_sheet["Product sheet"]
  node_order_status["Order tracking"]
  node_knowledge_search["Policy retrieval"]
  node_ticket_creation["Ticket escalation"]
end

subgraph group_data["Support data"]
  node_catalog_data["Catalog data<br/>[catalog.json]"]
  node_orders_data["Order data<br/>[orders.json]"]
  node_corpus_data["Knowledge corpus"]
  node_vector_store[("Vector collection")]
  node_ticket_store[("In-memory tickets")]
end

node_customer(("Customer"))

node_customer -->|"asks"| node_chat
node_chat -->|"opens agent"| node_agent_runtime
node_chat -->|"persists state"| node_checkpoint
node_chat -->|"requests decision"| node_approval
node_approval -->|"resumes turn"| node_chat
node_agent_runtime -->|"invokes"| node_model
node_agent_runtime -->|"loads tools"| node_mcp_tools
node_mcp_tools -->|"connects stdio"| node_mcp_server
node_mcp_server -->|"registers"| node_catalog_search
node_mcp_server -->|"registers"| node_product_sheet
node_mcp_server -->|"registers"| node_order_status
node_mcp_server -->|"registers"| node_knowledge_search
node_mcp_server -->|"registers"| node_ticket_creation
node_catalog_search -->|"reads"| node_catalog_data
node_product_sheet -->|"reads"| node_catalog_data
node_order_status -->|"reads"| node_orders_data
node_mcp_server -->|"loads"| node_corpus_data
node_mcp_server -->|"indexes corpus"| node_vector_store
node_knowledge_search -->|"queries"| node_vector_store
node_ticket_creation -->|"appends ticket"| node_ticket_store
node_agent_runtime -->|"guards invocation"| node_ticket_creation
node_chat -->|"resumes approval"| node_agent_runtime

click node_chat "https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/chat.py"
click node_approval "https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/chat.py"
click node_agent_runtime "https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/agent.py"
click node_mcp_tools "https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/agent.py"
click node_mcp_server "https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/randoneo_support.py"
click node_catalog_search "https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/randoneo_support.py"
click node_product_sheet "https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/randoneo_support.py"
click node_order_status "https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/randoneo_support.py"
click node_knowledge_search "https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/randoneo_support.py"
click node_ticket_creation "https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/randoneo_support.py"
click node_catalog_data "https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/data/catalog.json"
click node_orders_data "https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/data/orders.json"
click node_corpus_data "https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/data/randoneo_corpus.json"
click node_vector_store "https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/randoneo_support.py"
click node_ticket_store "https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/randoneo_support.py"
click node_checkpoint "https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/chat.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_chat,node_approval,node_checkpoint toneBlue
class node_agent_runtime,node_model,node_mcp_tools toneAmber
class node_mcp_server,node_catalog_search,node_product_sheet,node_order_status,node_knowledge_search,node_ticket_creation toneMint
class node_catalog_data,node_orders_data,node_corpus_data,node_vector_store,node_ticket_store toneRose
class node_customer toneIndigo
```

## Components

### Conversation

- [Interactive chat](https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/chat.py): `chat.py`
- [Operator approval](https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/chat.py): `chat.py`
- [Conversation checkpoint](https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/chat.py): `chat.py`

### Agent orchestration

- [Agent runtime](https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/agent.py): `agent.py`
- **Claude model**
- [MCP tool session](https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/agent.py): `agent.py`

### Support capabilities

- [MCP support server](https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/randoneo_support.py): `randoneo_support.py`
- [Catalog search](https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/randoneo_support.py): `randoneo_support.py`
- [Product sheet](https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/randoneo_support.py): `randoneo_support.py`
- [Order tracking](https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/randoneo_support.py): `randoneo_support.py`
- [Policy retrieval](https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/randoneo_support.py): `randoneo_support.py`
- [Ticket escalation](https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/randoneo_support.py): `randoneo_support.py`

### Support data

- [Catalog data](https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/data/catalog.json): `data/catalog.json`
- [Order data](https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/data/orders.json): `data/orders.json`
- [Knowledge corpus](https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/data/randoneo_corpus.json): `data/randoneo_corpus.json`
- [Vector collection](https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/randoneo_support.py): `randoneo_support.py`
- [In-memory tickets](https://github.com/hocine-drioueche/randoneo-agents-mcp/blob/main/randoneo_support.py): `randoneo_support.py`

### Other components

- **Customer**

## Connections

- Customer → Interactive chat: asks (evidence: `chat.py`)
- Interactive chat → Agent runtime: opens agent (evidence: `chat.py`)
- Interactive chat → Conversation checkpoint: persists state (evidence: `chat.py`)
- Interactive chat → Operator approval: requests decision (evidence: `chat.py`)
- Operator approval → Interactive chat: resumes turn (evidence: `chat.py`)
- Agent runtime → Claude model: invokes (evidence: `agent.py`)
- Agent runtime → MCP tool session: loads tools (evidence: `agent.py`)
- MCP tool session → MCP support server: connects stdio (evidence: `agent.py`)
- MCP support server → Catalog search: registers (evidence: `randoneo_support.py`)
- MCP support server → Product sheet: registers (evidence: `randoneo_support.py`)
- MCP support server → Order tracking: registers (evidence: `randoneo_support.py`)
- MCP support server → Policy retrieval: registers (evidence: `randoneo_support.py`)
- MCP support server → Ticket escalation: registers (evidence: `randoneo_support.py`)
- Catalog search → Catalog data: reads (evidence: `randoneo_support.py`)
- Product sheet → Catalog data: reads (evidence: `randoneo_support.py`)
- Order tracking → Order data: reads (evidence: `randoneo_support.py`)
- MCP support server → Knowledge corpus: loads (evidence: `randoneo_support.py`)
- MCP support server → Vector collection: indexes corpus (evidence: `randoneo_support.py`)
- Policy retrieval → Vector collection: queries (evidence: `randoneo_support.py`)
- Ticket escalation → In-memory tickets: appends ticket (evidence: `randoneo_support.py`)
- Agent runtime → Ticket escalation: guards invocation (evidence: `agent.py`)
- Interactive chat → Agent runtime: resumes approval (evidence: `chat.py`)
