avasfood-mcp
A standard Python MCP server for AVAS Food: browse menus, build and quote carts, complete bank-transfer ordering with explicit confirmation, track deliveries, and analyze delivery spending.
README
AVAS Food MCP — client-agnostic food ordering
A standard Python MCP server for AVAS Food: browse menus, build and quote carts, complete bank-transfer ordering with explicit confirmation, track deliveries, and analyze delivery spending.
The server uses standard MCP over stdio and has no Hermes runtime dependency. It works with Claude Code, OpenAI Codex CLI, Cursor, Gemini CLI, OpenCode, VS Code/Copilot, Windsurf, Hermes Agent, and other MCP-compatible clients.
Quick start
git clone https://github.com/Rayyan011/avasfood-mcp.git
cd avasfood-mcp
./scripts/setup.sh
Then choose a client configuration from docs/CLIENTS.md. Configuration templates live in configs/.
Remotion demo
The repository includes a 36-second, 1080p Remotion product demo under demo/.
cd demo
npm install
npm run render
The rendered MP4 is written to demo/out/avasfood-mcp-demo.mp4.
Tools
Existing tools:
get_client_metadatalist_restaurantsget_restaurantsearch_menu_itemsaccount_status,start_phone_login,verify_phone_loginlist_delivery_addresses
Ordering tools:
get_menu— authenticated merchant menu with zone, coordinates, and address contextadd_to_cart,update_cart_item,remove_cart_item,view_cart,clear_cart— local-only, single-merchant canonicalCartRowstoragequote_cart— callsCalculationSalesOrderand parses totals, payment modes, and bank detailsstage_receipt— validates/copies a PNG or JPEG locally; does not uploadupload_receipt— uploads 500,000-character base64 chunks only after the exact confirmation phraseprepare_order— freezes the current cart/quote into an immutable, redacted preview and one-time tokensubmit_order— requires that exact token, validates, then callsSaveSalesOrderoncetrack_deliveries— live active-order, rider, and delivery statedelivery_spending_report— private spending totals by fees, restaurant, and inferred food type
Portable agent guidance
AGENTS.md— vendor-neutral behavior and safety rulesCLAUDE.md— Claude Code entry pointGEMINI.md— Gemini CLI entry point- MCP prompts:
food_assistantanddelivery_budget_analyst - Optional skills under
skills/for clients with compatible skill loaders
Hermes users may additionally install the optional skill packages:
mkdir -p ~/.hermes/skills/avasfood
cp -R skills/avas-food-assistant ~/.hermes/skills/avasfood/
cp -R skills/food-delivery-budgeting ~/.hermes/skills/avasfood/
The tools do not require those skills; they improve conversational orchestration only.
Safety model
- Local state is stored under
~/.avasfood-mcpwith private directory/file permissions. - Carts accept only one merchant at a time.
- Bank transfer is payment mode
4; a receipt GUID is required before preparation. - Receipt upload requires exactly:
I CONFIRM UPLOAD OF THIS BANK TRANSFER RECEIPT. - Preparing does not submit. Submission requires the exact generated token and an unchanged cart.
SaveSalesOrderis never automatically retried. Before the call, the order is marked in-flight; transport failures are persisted as ambiguous and users must inspect order history.- Tool results redact addresses/names and expose only the last four phone digits. Secrets are not stored in this repository.
- Spending history is written privately to
~/.avasfood-mcp/spending-history.jsononly after a successful MCP-submitted order. It does not claim to include older AVAS orders.
Typical flow
- Link the account (
start_phone_login,verify_phone_login) if needed. - Select an address/zone and call
get_menu. - Build and inspect the local cart.
- Call
quote_cart. - If using bank transfer (
4), callstage_receipt, inspect the staged metadata, then separately callupload_receiptwith the exact phrase. - Call
prepare_orderand carefully inspect its preview. - Separately call
submit_orderwith the returned token.
Run
cd /Users/rayyu/personal/avasfood-mcp
python3 -m venv .venv
.venv/bin/pip install -e .
.venv/bin/python -m avasfood_mcp.server
Optional environment variables:
AVAS_ACCESS_TOKEN— approved backend token, if requiredAVAS_API_BASE— owner-approved API overrideAVAS_ENVIRONMENT— defaults toLIVEAVAS_STATE_DIR— local private state override
Tests
Tests mock _post; they do not call AVAS production calculation or write endpoints.
.venv/bin/python -m unittest discover -s tests -p 'test_*.py' -v
Example stdio configuration
{
"mcpServers": {
"avasfood": {
"command": "/absolute/path/avasfood-mcp/.venv/bin/python",
"args": ["-m", "avasfood_mcp.server"]
}
}
}
See docs/CLIENTS.md for client-specific locations and commands.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。