@henkas/orderfood 0.1.0
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/LICENSE +21 -0
- package/dist/config.d.ts +3 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +9 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -0
- package/dist/setup.d.ts +3 -0
- package/dist/setup.d.ts.map +1 -0
- package/dist/setup.js +39 -0
- package/dist/setup.js.map +1 -0
- package/dist/tools/account.d.ts +3 -0
- package/dist/tools/account.d.ts.map +1 -0
- package/dist/tools/account.js +28 -0
- package/dist/tools/account.js.map +1 -0
- package/dist/tools/cart.d.ts +3 -0
- package/dist/tools/cart.d.ts.map +1 -0
- package/dist/tools/cart.js +46 -0
- package/dist/tools/cart.js.map +1 -0
- package/dist/tools/discovery.d.ts +3 -0
- package/dist/tools/discovery.d.ts.map +1 -0
- package/dist/tools/discovery.js +42 -0
- package/dist/tools/discovery.js.map +1 -0
- package/dist/tools/orders.d.ts +3 -0
- package/dist/tools/orders.d.ts.map +1 -0
- package/dist/tools/orders.js +53 -0
- package/dist/tools/orders.js.map +1 -0
- package/package.json +40 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Henki Papp
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,wBAAgB,SAAS,CAAC,QAAQ,EAAE,UAAU,GAAG,cAAc,GAAG,cAAc,CAK/E"}
|
package/dist/config.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UberEatsClient } from '@orderfood/ubereats-client';
|
|
2
|
+
import { ThuisbezorgdClient } from '@orderfood/thuisbezorgd-client';
|
|
3
|
+
export function getClient(platform) {
|
|
4
|
+
switch (platform) {
|
|
5
|
+
case 'ubereats': return new UberEatsClient();
|
|
6
|
+
case 'thuisbezorgd': return new ThuisbezorgdClient();
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,MAAM,UAAU,SAAS,CAAC,QAAqC;IAC7D,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,UAAU,CAAC,CAAC,OAAO,IAAI,cAAc,EAAE,CAAC;QAC7C,KAAK,cAAc,CAAC,CAAC,OAAO,IAAI,kBAAkB,EAAE,CAAC;IACvD,CAAC;AACH,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
+
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
3
|
+
import { registerDiscoveryTools } from './tools/discovery.js';
|
|
4
|
+
import { registerCartTools } from './tools/cart.js';
|
|
5
|
+
import { registerOrderTools } from './tools/orders.js';
|
|
6
|
+
import { registerAccountTools } from './tools/account.js';
|
|
7
|
+
const server = new McpServer({
|
|
8
|
+
name: 'orderfood',
|
|
9
|
+
version: '0.1.0',
|
|
10
|
+
});
|
|
11
|
+
registerDiscoveryTools(server);
|
|
12
|
+
registerCartTools(server);
|
|
13
|
+
registerOrderTools(server);
|
|
14
|
+
registerAccountTools(server);
|
|
15
|
+
const transport = new StdioServerTransport();
|
|
16
|
+
await server.connect(transport);
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC;IAC3B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,OAAO;CACjB,CAAC,CAAC;AAEH,sBAAsB,CAAC,MAAM,CAAC,CAAC;AAC/B,iBAAiB,CAAC,MAAM,CAAC,CAAC;AAC1B,kBAAkB,CAAC,MAAM,CAAC,CAAC;AAC3B,oBAAoB,CAAC,MAAM,CAAC,CAAC;AAE7B,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;AAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC"}
|
package/dist/setup.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":""}
|
package/dist/setup.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createInterface } from 'node:readline';
|
|
3
|
+
import { saveCredentials } from '@orderfood/ubereats-client/auth';
|
|
4
|
+
const args = process.argv.slice(2);
|
|
5
|
+
const platformIdx = args.indexOf('--platform');
|
|
6
|
+
const platform = platformIdx >= 0 ? args[platformIdx + 1] : null;
|
|
7
|
+
if (!platform || !['ubereats', 'thuisbezorgd'].includes(platform)) {
|
|
8
|
+
console.error('Usage: npx orderfood setup --platform ubereats|thuisbezorgd');
|
|
9
|
+
process.exit(1);
|
|
10
|
+
}
|
|
11
|
+
const rl = createInterface({ input: process.stdin, output: process.stdout });
|
|
12
|
+
console.log(`\nOrderFood Setup — ${platform}\n`);
|
|
13
|
+
console.log('1. Open https://www.ubereats.com (or thuisbezorgd.nl) in your browser');
|
|
14
|
+
console.log('2. Log in to your account');
|
|
15
|
+
console.log('3. Open DevTools → Application → Cookies');
|
|
16
|
+
console.log('4. Copy the following cookies as a JSON object: jwt-session, uev2.id.session, uev2.id.session_v2, uev2.ts.session, uev2.ts.session_v2, _ua, dId, uev2.id.xp');
|
|
17
|
+
console.log('\nPaste the cookies JSON and press Enter (format: {"jwt-session": "...", ...}):');
|
|
18
|
+
rl.on('line', async (line) => {
|
|
19
|
+
rl.close();
|
|
20
|
+
try {
|
|
21
|
+
const cookies = JSON.parse(line.trim());
|
|
22
|
+
if (platform === 'ubereats') {
|
|
23
|
+
await saveCredentials({
|
|
24
|
+
access_token: '',
|
|
25
|
+
refresh_token: '',
|
|
26
|
+
expires_at: new Date(Date.now() + 30 * 24 * 60 * 60 * 1000).toISOString(), // 30 days
|
|
27
|
+
cookies,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
// TODO: thuisbezorgd save
|
|
31
|
+
console.log(`\n✓ Credentials saved to ~/.orderfood/${platform}.json`);
|
|
32
|
+
process.exit(0);
|
|
33
|
+
}
|
|
34
|
+
catch (e) {
|
|
35
|
+
console.error('Failed to parse cookies JSON:', e);
|
|
36
|
+
process.exit(1);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=setup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACnC,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;AAC/C,MAAM,QAAQ,GAAG,WAAW,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAEjE,IAAI,CAAC,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AAQ,OAAO,CAAC,CAAC;QACtE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,CAAC,KAAK,CAAC,+BAA+B,EAAE,CAAC,CAAC,CAAC;QAClD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/tools/account.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AASzE,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAwB5D"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { getClient } from '../config.js';
|
|
3
|
+
const platformSchema = z.enum(['ubereats', 'thuisbezorgd']);
|
|
4
|
+
function errorResponse(e) {
|
|
5
|
+
const err = e;
|
|
6
|
+
return { content: [{ type: 'text', text: JSON.stringify({ error: err.message ?? String(e), code: err.code ?? 'UNKNOWN' }) }], isError: true };
|
|
7
|
+
}
|
|
8
|
+
export function registerAccountTools(server) {
|
|
9
|
+
server.tool('get_saved_addresses', 'List saved delivery addresses for the authenticated account on the specified platform.', { platform: platformSchema }, async ({ platform }) => {
|
|
10
|
+
try {
|
|
11
|
+
const result = await getClient(platform).getSavedAddresses();
|
|
12
|
+
return { content: [{ type: 'text', text: JSON.stringify(result) }] };
|
|
13
|
+
}
|
|
14
|
+
catch (e) {
|
|
15
|
+
return errorResponse(e);
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
server.tool('get_payment_methods', 'List saved payment methods for the authenticated account. Use the returned id values when calling place_order.', { platform: platformSchema }, async ({ platform }) => {
|
|
19
|
+
try {
|
|
20
|
+
const result = await getClient(platform).getPaymentMethods();
|
|
21
|
+
return { content: [{ type: 'text', text: JSON.stringify(result) }] };
|
|
22
|
+
}
|
|
23
|
+
catch (e) {
|
|
24
|
+
return errorResponse(e);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=account.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/tools/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC;AAC5D,SAAS,aAAa,CAAC,CAAU;IAC/B,MAAM,GAAG,GAAG,CAAwC,CAAC;IACrD,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,OAAO,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,IAAI,SAAS,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AACzJ,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,MAAiB;IACpD,MAAM,CAAC,IAAI,CACT,qBAAqB,EACrB,wFAAwF,EACxF,EAAE,QAAQ,EAAE,cAAc,EAAE,EAC5B,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;QACrB,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,QAAQ,CAAC,CAAC,iBAAiB,EAAE,CAAC;YAC7D,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC;QACvE,CAAC;QAAC,OAAO,CAAU,EAAE,CAAC;YAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC;QAAC,CAAC;IACnD,CAAC,CACF,CAAC;IAEF,MAAM,CAAC,IAAI,CACT,qBAAqB,EACrB,gHAAgH,EAChH,EAAE,QAAQ,EAAE,cAAc,EAAE,EAC5B,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;QACrB,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,QAAQ,CAAC,CAAC,iBAAiB,EAAE,CAAC;YAC7D,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC;QACvE,CAAC;QAAC,OAAO,CAAU,EAAE,CAAC;YAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC;QAAC,CAAC;IACnD,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cart.d.ts","sourceRoot":"","sources":["../../src/tools/cart.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAazE,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA0CzD"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { getClient } from '../config.js';
|
|
3
|
+
const platformSchema = z.enum(['ubereats', 'thuisbezorgd']);
|
|
4
|
+
function errorResponse(e) {
|
|
5
|
+
const err = e;
|
|
6
|
+
return {
|
|
7
|
+
content: [{ type: 'text', text: JSON.stringify({ error: err.message ?? String(e), code: err.code ?? 'UNKNOWN' }) }],
|
|
8
|
+
isError: true,
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export function registerCartTools(server) {
|
|
12
|
+
server.tool('get_cart', 'Get the current cart state on the specified platform, including items, quantities, selected options, and price totals. Returns null if the cart is empty.', { platform: platformSchema }, async ({ platform }) => {
|
|
13
|
+
try {
|
|
14
|
+
const result = await getClient(platform).getCart();
|
|
15
|
+
return { content: [{ type: 'text', text: JSON.stringify(result) }] };
|
|
16
|
+
}
|
|
17
|
+
catch (e) {
|
|
18
|
+
return errorResponse(e);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
server.tool('add_to_cart', 'Add a menu item to the cart on the specified platform. Provide option selections as { group_id, option_id } pairs. Required option groups must be satisfied.', {
|
|
22
|
+
platform: platformSchema,
|
|
23
|
+
restaurant_id: z.string(),
|
|
24
|
+
item_id: z.string(),
|
|
25
|
+
quantity: z.number().int().min(1),
|
|
26
|
+
options: z.array(z.object({ group_id: z.string(), option_id: z.string() })).optional(),
|
|
27
|
+
}, async ({ platform, restaurant_id, item_id, quantity, options }) => {
|
|
28
|
+
try {
|
|
29
|
+
const result = await getClient(platform).addToCart(restaurant_id, item_id, quantity, options);
|
|
30
|
+
return { content: [{ type: 'text', text: JSON.stringify(result) }] };
|
|
31
|
+
}
|
|
32
|
+
catch (e) {
|
|
33
|
+
return errorResponse(e);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
server.tool('clear_cart', 'Remove all items from the cart on the specified platform.', { platform: platformSchema }, async ({ platform }) => {
|
|
37
|
+
try {
|
|
38
|
+
await getClient(platform).clearCart();
|
|
39
|
+
return { content: [{ type: 'text', text: JSON.stringify({ success: true }) }] };
|
|
40
|
+
}
|
|
41
|
+
catch (e) {
|
|
42
|
+
return errorResponse(e);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=cart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cart.js","sourceRoot":"","sources":["../../src/tools/cart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,SAA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C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../../src/tools/discovery.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAKzE,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAuC9D"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { getClient } from '../config.js';
|
|
3
|
+
const platformSchema = z.enum(['ubereats', 'thuisbezorgd']);
|
|
4
|
+
export function registerDiscoveryTools(server) {
|
|
5
|
+
server.tool('search_restaurants', 'Search for restaurants on the specified food delivery platform near a location. Optionally filter by cuisine type or keyword, and sort results.', {
|
|
6
|
+
platform: platformSchema,
|
|
7
|
+
location: z.string().describe('Delivery address, e.g. "Amsterdam Centraal"'),
|
|
8
|
+
cuisine: z.string().optional().describe('Cuisine filter, e.g. "Italian"'),
|
|
9
|
+
query: z.string().optional().describe('Free-text keyword search'),
|
|
10
|
+
sort_by: z.enum(['rating', 'delivery_time', 'delivery_fee']).optional(),
|
|
11
|
+
}, async ({ platform, location, cuisine, query, sort_by }) => {
|
|
12
|
+
try {
|
|
13
|
+
const client = getClient(platform);
|
|
14
|
+
const results = await client.searchRestaurants({ location, cuisine, query, sort_by });
|
|
15
|
+
return { content: [{ type: 'text', text: JSON.stringify(results) }] };
|
|
16
|
+
}
|
|
17
|
+
catch (e) {
|
|
18
|
+
return errorResponse(e);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
server.tool('get_restaurant', 'Get full details for a restaurant including its categorized menu, item prices, and modifier option groups.', {
|
|
22
|
+
platform: platformSchema,
|
|
23
|
+
restaurant_id: z.string(),
|
|
24
|
+
}, async ({ platform, restaurant_id }) => {
|
|
25
|
+
try {
|
|
26
|
+
const client = getClient(platform);
|
|
27
|
+
const result = await client.getRestaurant(restaurant_id);
|
|
28
|
+
return { content: [{ type: 'text', text: JSON.stringify(result) }] };
|
|
29
|
+
}
|
|
30
|
+
catch (e) {
|
|
31
|
+
return errorResponse(e);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function errorResponse(e) {
|
|
36
|
+
const err = e;
|
|
37
|
+
return {
|
|
38
|
+
content: [{ type: 'text', text: JSON.stringify({ error: err.message ?? String(e), code: err.code ?? 'UNKNOWN' }) }],
|
|
39
|
+
isError: true,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=discovery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discovery.js","sourceRoot":"","sources":["../../src/tools/discovery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC;AAE5D,MAAM,UAAU,sBAAsB,CAAC,MAAiB;IACtD,MAAM,CAAC,IAAI,CACT,oBAAoB,EACpB,iJAAiJ,EACjJ;QACE,QAAQ,EAAE,cAAc;QACxB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6CAA6C,CAAC;QAC5E,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;QACzE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;QACjE,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,eAAe,EAAE,cAAc,CAAC,CAAC,CAAC,QAAQ,EAAE;KACxE,EACD,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,OAA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AAC,SAAS,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,OAAO,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,IAAI,SAAS,EAAE,CAAC,EAAE,CAAC;QAC5H,OAAO,EAAE,IAAI;KACd,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orders.d.ts","sourceRoot":"","sources":["../../src/tools/orders.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AASzE,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAuD1D"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { getClient } from '../config.js';
|
|
3
|
+
const platformSchema = z.enum(['ubereats', 'thuisbezorgd']);
|
|
4
|
+
function errorResponse(e) {
|
|
5
|
+
const err = e;
|
|
6
|
+
return { content: [{ type: 'text', text: JSON.stringify({ error: err.message ?? String(e), code: err.code ?? 'UNKNOWN' }) }], isError: true };
|
|
7
|
+
}
|
|
8
|
+
export function registerOrderTools(server) {
|
|
9
|
+
server.tool('place_order', 'Place the current cart as a delivery order to the specified address using the specified payment method. Returns the created order.', {
|
|
10
|
+
platform: platformSchema,
|
|
11
|
+
address_id: z.string().describe('Address ID from get_saved_addresses, or a free-form address string'),
|
|
12
|
+
payment_method_id: z.string().describe('Payment method UUID from get_payment_methods'),
|
|
13
|
+
}, async ({ platform, address_id, payment_method_id }) => {
|
|
14
|
+
try {
|
|
15
|
+
const result = await getClient(platform).placeOrder(address_id, payment_method_id);
|
|
16
|
+
return { content: [{ type: 'text', text: JSON.stringify(result) }] };
|
|
17
|
+
}
|
|
18
|
+
catch (e) {
|
|
19
|
+
return errorResponse(e);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
server.tool('track_order', 'Get the current delivery status of an order.', { platform: platformSchema, order_id: z.string() }, async ({ platform, order_id }) => {
|
|
23
|
+
try {
|
|
24
|
+
const result = await getClient(platform).trackOrder(order_id);
|
|
25
|
+
return { content: [{ type: 'text', text: JSON.stringify(result) }] };
|
|
26
|
+
}
|
|
27
|
+
catch (e) {
|
|
28
|
+
return errorResponse(e);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
server.tool('get_order_history', 'Retrieve past orders for the authenticated account on the specified platform.', {
|
|
32
|
+
platform: platformSchema,
|
|
33
|
+
limit: z.number().int().min(1).max(50).optional().default(10),
|
|
34
|
+
}, async ({ platform, limit }) => {
|
|
35
|
+
try {
|
|
36
|
+
const result = await getClient(platform).getOrderHistory(limit);
|
|
37
|
+
return { content: [{ type: 'text', text: JSON.stringify(result) }] };
|
|
38
|
+
}
|
|
39
|
+
catch (e) {
|
|
40
|
+
return errorResponse(e);
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
server.tool('cancel_order', 'Cancel an order if it is still within the cancellable window. Throws if cancellation is no longer possible.', { platform: platformSchema, order_id: z.string() }, async ({ platform, order_id }) => {
|
|
44
|
+
try {
|
|
45
|
+
await getClient(platform).cancelOrder(order_id);
|
|
46
|
+
return { content: [{ type: 'text', text: JSON.stringify({ success: true }) }] };
|
|
47
|
+
}
|
|
48
|
+
catch (e) {
|
|
49
|
+
return errorResponse(e);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=orders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orders.js","sourceRoot":"","sources":["../../src/tools/orders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC;AAC5D,SAAS,aAAa,CAAC,CAAU;IA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Q,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC/B,IAAI,CAAC;YACH,MAAM,SAAS,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;YAChD,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;QAClF,CAAC;QAAC,OAAO,CAAU,EAAE,CAAC;YAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC;QAAC,CAAC;IACnD,CAAC,CACF,CAAC;AACJ,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@henkas/orderfood",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "MCP server for AI-driven food delivery on Uber Eats and Thuisbezorgd",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/henkas/orderfood.git"
|
|
10
|
+
},
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=20"
|
|
13
|
+
},
|
|
14
|
+
"bin": {
|
|
15
|
+
"orderfood": "./dist/setup.js"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@modelcontextprotocol/sdk": "^1.9.0",
|
|
25
|
+
"node-machine-id": "^1.1.12",
|
|
26
|
+
"zod": "^3.23.8",
|
|
27
|
+
"@orderfood/shared": "0.1.0",
|
|
28
|
+
"@orderfood/ubereats-client": "0.1.0",
|
|
29
|
+
"@orderfood/thuisbezorgd-client": "0.1.0"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@types/node": "^20.14.0",
|
|
33
|
+
"typescript": "^5.4.5"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "tsc",
|
|
37
|
+
"start": "node dist/index.js",
|
|
38
|
+
"typecheck": "tsc --noEmit"
|
|
39
|
+
}
|
|
40
|
+
}
|