@henkas/orderfood 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +80 -0
- package/dist/index.js +28626 -11
- package/dist/setup.js +76 -34
- package/package.json +7 -5
- package/dist/config.d.ts +0 -3
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -9
- package/dist/config.js.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/setup.d.ts +0 -3
- package/dist/setup.d.ts.map +0 -1
- package/dist/setup.js.map +0 -1
- package/dist/tools/account.d.ts +0 -3
- package/dist/tools/account.d.ts.map +0 -1
- package/dist/tools/account.js +0 -28
- package/dist/tools/account.js.map +0 -1
- package/dist/tools/cart.d.ts +0 -3
- package/dist/tools/cart.d.ts.map +0 -1
- package/dist/tools/cart.js +0 -46
- package/dist/tools/cart.js.map +0 -1
- package/dist/tools/discovery.d.ts +0 -3
- package/dist/tools/discovery.d.ts.map +0 -1
- package/dist/tools/discovery.js +0 -42
- package/dist/tools/discovery.js.map +0 -1
- package/dist/tools/orders.d.ts +0 -3
- package/dist/tools/orders.d.ts.map +0 -1
- package/dist/tools/orders.js +0 -53
- package/dist/tools/orders.js.map +0 -1
package/README.md
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# @henkas/orderfood
|
|
2
|
+
|
|
3
|
+
[](https://github.com/henkas/orderfood/actions/workflows/ci.yml)
|
|
4
|
+
[](https://github.com/henkas/orderfood/blob/main/LICENSE)
|
|
5
|
+
|
|
6
|
+
MCP server that lets AI agents search restaurants and place food delivery orders on **Uber Eats** and **Thuisbezorgd** via 11 MCP tools.
|
|
7
|
+
|
|
8
|
+
> **Legal:** Reverse engineering for interoperability is explicitly permitted under EU Directive 2009/24/EC Article 6. Personal use and open-source research — not commercial, not affiliated with Uber Eats or Just Eat Takeaway.
|
|
9
|
+
|
|
10
|
+
## Setup
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npx @henkas/orderfood setup --platform ubereats
|
|
14
|
+
npx @henkas/orderfood setup --platform thuisbezorgd
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Credentials are stored encrypted at `~/.orderfood/` (AES-256-GCM).
|
|
18
|
+
|
|
19
|
+
## Usage with Claude Code
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
claude mcp add orderfood -- npx @henkas/orderfood
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Usage with Codex
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
codex mcp add orderfood -- npx @henkas/orderfood
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Then talk to your agent:
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
Find Italian restaurants near Amsterdam Centraal on Thuisbezorgd
|
|
35
|
+
Add a Margherita pizza from [restaurant] to my Uber Eats cart
|
|
36
|
+
What's in my Thuisbezorgd cart?
|
|
37
|
+
Show my Uber Eats payment methods
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Tools
|
|
41
|
+
|
|
42
|
+
| Tool | Description |
|
|
43
|
+
|------|-------------|
|
|
44
|
+
| `search_restaurants` | Find restaurants by location, cuisine, or query |
|
|
45
|
+
| `get_restaurant` | Get full restaurant details and menu |
|
|
46
|
+
| `get_cart` | View current cart |
|
|
47
|
+
| `add_to_cart` | Add an item with options |
|
|
48
|
+
| `clear_cart` | Empty the cart |
|
|
49
|
+
| `get_saved_addresses` | List saved delivery addresses |
|
|
50
|
+
| `get_payment_methods` | List payment methods |
|
|
51
|
+
| `place_order` | Place the current cart as an order |
|
|
52
|
+
| `track_order` | Get live order status |
|
|
53
|
+
| `get_order_history` | List past orders |
|
|
54
|
+
| `cancel_order` | Cancel an active order |
|
|
55
|
+
|
|
56
|
+
All tools accept `platform: "ubereats" | "thuisbezorgd"`.
|
|
57
|
+
|
|
58
|
+
## Platform support
|
|
59
|
+
|
|
60
|
+
| Capability | Uber Eats | Thuisbezorgd |
|
|
61
|
+
|---|---|---|
|
|
62
|
+
| Search restaurants | ✅ | ✅ |
|
|
63
|
+
| Get restaurant + menu | ✅ | ✅ |
|
|
64
|
+
| Cart management | ✅ | ✅ |
|
|
65
|
+
| Saved addresses | — | ✅ |
|
|
66
|
+
| Payment methods | ✅ | ✅ |
|
|
67
|
+
| Place order | ⚠️ | ⚠️ |
|
|
68
|
+
| Track order | ✅ | 🚧 |
|
|
69
|
+
| Order history | 🚧 | 🚧 |
|
|
70
|
+
| Cancel order | 🚧 | 🚧 |
|
|
71
|
+
|
|
72
|
+
⚠️ = blocked by browser-based payment flow 🚧 = stub, coming soon
|
|
73
|
+
|
|
74
|
+
## Requirements
|
|
75
|
+
|
|
76
|
+
Node.js 20+
|
|
77
|
+
|
|
78
|
+
## Full docs
|
|
79
|
+
|
|
80
|
+
[github.com/henkas/orderfood](https://github.com/henkas/orderfood)
|