loading…
Search for a command to run...
loading…
MCP server providing business tools for customer support and account management, integrated with SQLite, OpenAI, and Streamlit.
MCP server providing business tools for customer support and account management, integrated with SQLite, OpenAI, and Streamlit.
A client-ready demo: an AI operations assistant for customer support and account managers, built on the Model Context Protocol.
Stack: MCP server → SQLite business data → OpenAI → Streamlit UI
hello world math)cd /apps/tmp/mcp-servers
python3 -m venv .venv && source .venv/bin/activate
pip install -e ".[demo]"
export OPENAI_API_KEY=sk-...
streamlit run demo_app.py
Open http://localhost:8501 and use the sidebar scenario buttons.
Full presenter script: DEMO.md
| File | Purpose |
|---|---|
server.py |
MCP server — 7 business tools over stdio |
ops_db.py |
SQLite schema + demo seed data |
demo_app.py |
Streamlit chat UI for presentations |
assistant.py |
OpenAI ↔ MCP bridge (shared by UI and CLI) |
client.py |
Smoke test MCP tools (no API key) |
openai_chat.py |
CLI assistant |
openai_agent.py |
Same flow via OpenAI Agents SDK |
| Tool | Description |
|---|---|
search_customers |
Search by name, id, email, industry |
get_customer |
Full customer profile |
get_order |
Order status + line items |
list_customer_orders |
Order history for a customer |
list_open_tickets |
Open support tickets |
create_support_ticket |
Create ticket (writes to DB) |
account_summary |
Executive snapshot for an account |
# UI demo (recommended for clients)
streamlit run demo_app.py
# MCP smoke test — no OpenAI key
python client.py
# CLI assistant
python openai_chat.py "Account summary for CUST-1003"
# Reset demo database
python scripts/reset_demo_data.py
The MCP server uses stdio. Your app must spawn it (as demo_app.py and assistant.py do).
assistant.py / openai_chat.pyopenai_agent.py — pip install -e ".[agents]"{
"mcpServers": {
"acme-operations": {
"command": "/apps/tmp/mcp-servers/.venv/bin/python",
"args": ["/apps/tmp/mcp-servers/server.py"]
}
}
}
create_support_ticket in production Выполни в терминале:
claude mcp add acme-operations-assistant -- npx Query your database in natural language
автор: AnthropicRead-only database access with schema inspection.
автор: modelcontextprotocolInteract with Redis key-value stores.
автор: modelcontextprotocolDatabase interaction and business intelligence capabilities.
автор: modelcontextprotocolНе уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории data