Skip to content

Commit f9a7611

Browse files
committed
docs: add eli5.md
1 parent 646a4ce commit f9a7611

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

docs/eli5.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## Big Picture
2+
You have a smart chat helper (the “agent”) that can take your plain sentences like “Order me a cheeseburger with extra pickles,” and behind the scenes it talks to a burger service that knows about burgers, toppings, and orders. A special translator layer (MCP server) lets the chat agent call burger actions safely.
3+
4+
**Flow (who talks to whom):**
5+
agent-webapp (your browser) → agent-api (brain) → burger-mcp (translator) → burger-api (burger shop data)
6+
7+
## The Cast (folders in packages)
8+
- `agent-webapp`: The chat UI in the browser (what you see).
9+
- `agent-api`: The server “agent brain”—uses LangChain.js + Azure OpenAI, stores chat history, knows who you are.
10+
- `burger-mcp`: The MCP server exposing burger actions as tools the agent can call (like “list burgers”, “place order”).
11+
- `burger-api`: The actual burger REST API: burgers, toppings, images, orders.
12+
- `burger-webapp`: A plain burger browsing/order demo UI (non-AI).
13+
- `agent-cli`: A command-line version of the agent (no browser).
14+
- `burger-data`: Scripts that auto-generate burger items and images with AI (content seeding).
15+
16+
## How They Think Together
17+
1. You type a message in `agent-webapp`.
18+
2. `agent-api` receives it, uses an LLM (Azure OpenAI) + your past chats (in Cosmos DB) to decide next steps.
19+
3. If it needs burger info, it calls `burger-mcp`.
20+
4. `burger-mcp` turns that into real HTTP calls to `burger-api`.
21+
5. Results bubble back up and appear as assistant messages.
22+
23+
## Why MCP?
24+
MCP (Model Context Protocol) = a safe, structured way for the agent to call tools (like “get burger by id”) instead of hallucinating stuff.
25+
26+
## TL;DR
27+
It’s a layered demo showing how an AI chat agent can safely call real backend capabilities (burger ordering) through MCP, with clean separation between UI, AI brain, protocol bridge, and business API.

0 commit comments

Comments
 (0)