listbee-mcp 0.10.0 → 0.12.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/README.md +1 -1
- package/dist/generated/meta.d.ts +7 -0
- package/dist/generated/meta.d.ts.map +1 -1
- package/dist/generated/meta.js +146 -11
- package/dist/generated/meta.js.map +1 -1
- package/dist/generated/schemas.d.ts +5 -2
- package/dist/generated/schemas.d.ts.map +1 -1
- package/dist/generated/schemas.js +5 -5
- package/dist/generated/schemas.js.map +1 -1
- package/dist/handlers/upload-file.d.ts.map +1 -1
- package/dist/handlers/upload-file.js +9 -3
- package/dist/handlers/upload-file.js.map +1 -1
- package/dist/manifest.d.ts +7 -0
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +4 -40
- package/dist/server.js.map +1 -1
- package/mcp-tools.yaml +122 -4
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -208,7 +208,7 @@ npx -y listbee-mcp --api-key lb_... --tools create_listing,get_listing,publish_l
|
|
|
208
208
|
|
|
209
209
|
| Tool | Description |
|
|
210
210
|
|------|-------------|
|
|
211
|
-
| `upload_file` | Upload a file to ListBee. Returns a token to use in `set_deliverables
|
|
211
|
+
| `upload_file` | Upload a file to ListBee. Accepts a `purpose` parameter: `deliverable` (default, listing content), `cover` (listing image), or `avatar` (store avatar). Returns a file token to use in `set_deliverables`, `create_listing`/`update_listing` (as `cover`), or `update_store` (as `avatar`). |
|
|
212
212
|
|
|
213
213
|
### Stripe
|
|
214
214
|
|
package/dist/generated/meta.d.ts
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
+
export interface ToolAnnotations {
|
|
2
|
+
readOnlyHint?: boolean;
|
|
3
|
+
destructiveHint?: boolean;
|
|
4
|
+
idempotentHint?: boolean;
|
|
5
|
+
openWorldHint?: boolean;
|
|
6
|
+
}
|
|
1
7
|
export interface ToolMeta {
|
|
2
8
|
operationId: string;
|
|
3
9
|
method: string;
|
|
4
10
|
path: string;
|
|
5
11
|
description: string;
|
|
12
|
+
annotations: ToolAnnotations;
|
|
6
13
|
}
|
|
7
14
|
export declare const meta: Record<string, ToolMeta>;
|
|
8
15
|
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../src/generated/meta.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,QAAQ;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../src/generated/meta.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,eAAe;IAC9B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,QAAQ;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,eAAe,CAAC;CAC9B;AAED,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAsTzC,CAAC"}
|
package/dist/generated/meta.js
CHANGED
|
@@ -2,182 +2,317 @@
|
|
|
2
2
|
// source: openapi.json + mcp-tools.yaml
|
|
3
3
|
// Regenerate with: npm run generate
|
|
4
4
|
// openapi_version: 1.0.0
|
|
5
|
-
// generated_at: 2026-04-
|
|
6
|
-
// sha256:
|
|
5
|
+
// generated_at: 2026-04-12T07:24:36.386Z
|
|
6
|
+
// sha256: 34a4aef02ed2a34ca054b49fab2e4942a728a4f33d1374cb1c8a41539a0c9fe2
|
|
7
7
|
export const meta = {
|
|
8
8
|
create_listing: {
|
|
9
9
|
operationId: "create_listing",
|
|
10
10
|
method: "POST",
|
|
11
11
|
path: "/v1/listings",
|
|
12
12
|
description: "Create a new listing for sale. Returns a checkout URL and readiness status. Only name and price are required — but listings with rich content convert significantly better. Fill in as many fields as you can: description, tagline, highlights, badges, reviews, faqs, cta, cover_url. Write salesy, compelling copy. The product page buyers see is built entirely from these fields. Fulfillment is implicit: attach deliverables for auto-delivery, set fulfillment_url for agent callback, or handle via webhooks. No content_type field needed.",
|
|
13
|
+
annotations: {
|
|
14
|
+
destructiveHint: false,
|
|
15
|
+
readOnlyHint: false,
|
|
16
|
+
},
|
|
13
17
|
},
|
|
14
18
|
create_webhook: {
|
|
15
19
|
operationId: "create_webhook",
|
|
16
20
|
method: "POST",
|
|
17
21
|
path: "/v1/webhooks",
|
|
18
22
|
description: "Create a webhook endpoint. Specify the URL and which events to receive. The webhook secret (whsec_ prefixed) is returned for signature verification.",
|
|
23
|
+
annotations: {
|
|
24
|
+
destructiveHint: false,
|
|
25
|
+
readOnlyHint: false,
|
|
26
|
+
},
|
|
19
27
|
},
|
|
20
28
|
delete_account: {
|
|
21
29
|
operationId: "delete_account",
|
|
22
30
|
method: "DELETE",
|
|
23
31
|
path: "/v1/account",
|
|
24
32
|
description: "Permanently delete the account and all associated data. This is irreversible.",
|
|
33
|
+
annotations: {
|
|
34
|
+
destructiveHint: true,
|
|
35
|
+
readOnlyHint: false,
|
|
36
|
+
},
|
|
25
37
|
},
|
|
26
38
|
delete_listing: {
|
|
27
39
|
operationId: "delete_listing",
|
|
28
40
|
method: "DELETE",
|
|
29
41
|
path: "/v1/listings/{listing_id}",
|
|
30
|
-
description: "
|
|
42
|
+
description: "Permanently delete a listing. This is irreversible — the listing, its checkout URL, and all associated data cannot be recovered.",
|
|
43
|
+
annotations: {
|
|
44
|
+
destructiveHint: true,
|
|
45
|
+
readOnlyHint: false,
|
|
46
|
+
},
|
|
31
47
|
},
|
|
32
48
|
delete_webhook: {
|
|
33
49
|
operationId: "delete_webhook",
|
|
34
50
|
method: "DELETE",
|
|
35
51
|
path: "/v1/webhooks/{webhook_id}",
|
|
36
|
-
description: "
|
|
52
|
+
description: "Permanently delete a webhook endpoint. This is irreversible — the webhook and its delivery history cannot be recovered.",
|
|
53
|
+
annotations: {
|
|
54
|
+
destructiveHint: true,
|
|
55
|
+
readOnlyHint: false,
|
|
56
|
+
},
|
|
37
57
|
},
|
|
38
58
|
disconnect_stripe: {
|
|
39
59
|
operationId: "disconnect_stripe",
|
|
40
60
|
method: "DELETE",
|
|
41
61
|
path: "/v1/account/stripe",
|
|
42
|
-
description: "Disconnect the Stripe account from ListBee. Existing listings retain their payment snapshot but new checkouts will fail.",
|
|
62
|
+
description: "Disconnect the Stripe account from ListBee. This cannot be undone — you will need to re-onboard through Stripe Connect. Existing listings retain their payment snapshot but new checkouts will fail.",
|
|
63
|
+
annotations: {
|
|
64
|
+
destructiveHint: true,
|
|
65
|
+
readOnlyHint: false,
|
|
66
|
+
},
|
|
43
67
|
},
|
|
44
68
|
fulfill_order: {
|
|
45
69
|
operationId: "fulfill_order",
|
|
46
70
|
method: "POST",
|
|
47
71
|
path: "/v1/orders/{order_id}/fulfill",
|
|
48
72
|
description: "Fulfill an order. Include deliverables (file/url/text) to deliver digital content via ListBee — creates an access grant and emails the buyer. Omit deliverables to mark the order as complete without delivering content (for externally fulfilled orders).",
|
|
73
|
+
annotations: {
|
|
74
|
+
destructiveHint: false,
|
|
75
|
+
readOnlyHint: false,
|
|
76
|
+
},
|
|
49
77
|
},
|
|
50
78
|
get_account: {
|
|
51
79
|
operationId: "get_account",
|
|
52
80
|
method: "GET",
|
|
53
81
|
path: "/v1/account",
|
|
54
82
|
description: "Get the authenticated account's full state including readiness and billing status. This is the first call an agent should make to understand what's set up.",
|
|
83
|
+
annotations: {
|
|
84
|
+
destructiveHint: false,
|
|
85
|
+
idempotentHint: true,
|
|
86
|
+
readOnlyHint: true,
|
|
87
|
+
},
|
|
55
88
|
},
|
|
56
89
|
get_customer: {
|
|
57
90
|
operationId: "get_customer",
|
|
58
91
|
method: "GET",
|
|
59
92
|
path: "/v1/customers/{customer_id}",
|
|
60
93
|
description: "Get a customer by ID. Shows total orders, total spent, currency, and purchase dates. Customers represent unique buyer emails that have purchased from the seller.",
|
|
94
|
+
annotations: {
|
|
95
|
+
destructiveHint: false,
|
|
96
|
+
idempotentHint: true,
|
|
97
|
+
readOnlyHint: true,
|
|
98
|
+
},
|
|
61
99
|
},
|
|
62
100
|
get_listing: {
|
|
63
101
|
operationId: "get_listing",
|
|
64
102
|
method: "GET",
|
|
65
103
|
path: "/v1/listings/{listing_id}",
|
|
66
104
|
description: "Get a listing's full state including readiness. This is the readiness inspection tool — call it after every change to check what's needed.",
|
|
105
|
+
annotations: {
|
|
106
|
+
destructiveHint: false,
|
|
107
|
+
idempotentHint: true,
|
|
108
|
+
readOnlyHint: true,
|
|
109
|
+
},
|
|
67
110
|
},
|
|
68
111
|
get_order: {
|
|
69
112
|
operationId: "get_order",
|
|
70
113
|
method: "GET",
|
|
71
114
|
path: "/v1/orders/{order_id}",
|
|
72
|
-
description: "Get a single order by ID. Order lifecycle: PENDING → PAID → FULFILLED.
|
|
115
|
+
description: "Get a single order by ID. Order lifecycle: PENDING → PAID → FULFILLED. Check has_deliverables to determine fulfillment mode: if true, content was auto-delivered on payment (order is already FULFILLED). If false, the order stays PAID — call POST /v1/orders/{order_id}/fulfill to deliver content via ListBee, or handle delivery externally via the order.paid webhook. Use readiness.next to determine the recommended next action.",
|
|
116
|
+
annotations: {
|
|
117
|
+
destructiveHint: false,
|
|
118
|
+
idempotentHint: true,
|
|
119
|
+
readOnlyHint: true,
|
|
120
|
+
},
|
|
73
121
|
},
|
|
74
122
|
get_store: {
|
|
75
123
|
operationId: "get_store",
|
|
76
124
|
method: "GET",
|
|
77
125
|
path: "/v1/store",
|
|
78
126
|
description: "Get the current store's brand info (display_name, bio, avatar, slug) and readiness. Store is determined by your API key — each key belongs to one store.",
|
|
127
|
+
annotations: {
|
|
128
|
+
destructiveHint: false,
|
|
129
|
+
idempotentHint: true,
|
|
130
|
+
readOnlyHint: true,
|
|
131
|
+
},
|
|
79
132
|
},
|
|
80
133
|
list_customers: {
|
|
81
134
|
operationId: "list_customers",
|
|
82
135
|
method: "GET",
|
|
83
136
|
path: "/v1/customers",
|
|
84
137
|
description: "List all customers (buyers) who have purchased from the seller. Auto-populated from orders — no manual creation needed. Sorted by most recent purchase first. Filter by email for exact match lookup.",
|
|
138
|
+
annotations: {
|
|
139
|
+
destructiveHint: false,
|
|
140
|
+
idempotentHint: true,
|
|
141
|
+
readOnlyHint: true,
|
|
142
|
+
},
|
|
85
143
|
},
|
|
86
144
|
list_listings: {
|
|
87
145
|
operationId: "list_listings",
|
|
88
146
|
method: "GET",
|
|
89
147
|
path: "/v1/listings",
|
|
90
|
-
description: "List all listings for the authenticated account. Filter by status. Cursor-paginated.
|
|
148
|
+
description: "List all listings for the authenticated account. Filter by status. Cursor-paginated. Returns lightweight summaries — use GET /v1/listings/{listing_id} for full detail including deliverables, readiness, reviews, and checkout schema.",
|
|
149
|
+
annotations: {
|
|
150
|
+
destructiveHint: false,
|
|
151
|
+
idempotentHint: true,
|
|
152
|
+
readOnlyHint: true,
|
|
153
|
+
},
|
|
91
154
|
},
|
|
92
155
|
list_orders: {
|
|
93
156
|
operationId: "list_orders",
|
|
94
157
|
method: "GET",
|
|
95
158
|
path: "/v1/orders",
|
|
96
|
-
description: "List orders for the authenticated account. Filter by status, listing, and date range. Paginated.
|
|
159
|
+
description: "List orders for the authenticated account. Filter by status, listing, and date range. Paginated. Returns lightweight summaries — use GET /v1/orders/{order_id} for full detail including deliverables, readiness, checkout_data, and Stripe payment intent. Order lifecycle: PENDING → PAID → FULFILLED. Terminal: CANCELED, FAILED.",
|
|
160
|
+
annotations: {
|
|
161
|
+
destructiveHint: false,
|
|
162
|
+
idempotentHint: true,
|
|
163
|
+
readOnlyHint: true,
|
|
164
|
+
},
|
|
97
165
|
},
|
|
98
166
|
list_webhook_events: {
|
|
99
167
|
operationId: "list_webhook_events",
|
|
100
168
|
method: "GET",
|
|
101
169
|
path: "/v1/webhooks/{webhook_id}/events",
|
|
102
170
|
description: "List recent events for a webhook. Shows delivery status, attempts, and errors. Useful for debugging failed deliveries.",
|
|
171
|
+
annotations: {
|
|
172
|
+
destructiveHint: false,
|
|
173
|
+
idempotentHint: true,
|
|
174
|
+
readOnlyHint: true,
|
|
175
|
+
},
|
|
103
176
|
},
|
|
104
177
|
list_webhooks: {
|
|
105
178
|
operationId: "list_webhooks",
|
|
106
179
|
method: "GET",
|
|
107
180
|
path: "/v1/webhooks",
|
|
108
181
|
description: "List all webhooks for the account. Shows URL, events filter, and enabled status.",
|
|
182
|
+
annotations: {
|
|
183
|
+
destructiveHint: false,
|
|
184
|
+
idempotentHint: true,
|
|
185
|
+
readOnlyHint: true,
|
|
186
|
+
},
|
|
109
187
|
},
|
|
110
188
|
publish_listing: {
|
|
111
189
|
operationId: "publish_listing",
|
|
112
190
|
method: "POST",
|
|
113
191
|
path: "/v1/listings/{listing_id}/publish",
|
|
114
192
|
description: "Publish a listing so buyers can access the product page. No Stripe required — the product page goes live immediately. The buy button activates once Stripe is connected.",
|
|
193
|
+
annotations: {
|
|
194
|
+
destructiveHint: false,
|
|
195
|
+
readOnlyHint: false,
|
|
196
|
+
},
|
|
115
197
|
},
|
|
116
198
|
refund_order: {
|
|
117
199
|
operationId: "refund_order",
|
|
118
200
|
method: "POST",
|
|
119
201
|
path: "/v1/orders/{order_id}/refund",
|
|
120
|
-
description: "Issue a full refund for an order. Refund is processed through Stripe on the seller's connected account. Idempotent — already-refunded orders return as-is. Order state (refund_amount, refunded_at) updates asynchronously via Stripe webhook.",
|
|
202
|
+
description: "Issue a full refund for an order. This is irreversible and cannot be undone. Refund is processed through Stripe on the seller's connected account. Idempotent — already-refunded orders return as-is. Order state (refund_amount, refunded_at) updates asynchronously via Stripe webhook.",
|
|
203
|
+
annotations: {
|
|
204
|
+
destructiveHint: true,
|
|
205
|
+
idempotentHint: true,
|
|
206
|
+
readOnlyHint: false,
|
|
207
|
+
},
|
|
121
208
|
},
|
|
122
209
|
remove_deliverables: {
|
|
123
210
|
operationId: "remove_deliverables",
|
|
124
211
|
method: "DELETE",
|
|
125
212
|
path: "/v1/listings/{listing_id}/deliverables",
|
|
126
|
-
description: "Remove all deliverables from a
|
|
213
|
+
description: "Remove all deliverables from a listing. This is irreversible — the files and delivery configuration cannot be recovered. The listing switches to external fulfillment (webhook or agent callback).",
|
|
214
|
+
annotations: {
|
|
215
|
+
destructiveHint: true,
|
|
216
|
+
readOnlyHint: false,
|
|
217
|
+
},
|
|
127
218
|
},
|
|
128
219
|
retry_webhook_event: {
|
|
129
220
|
operationId: "retry_webhook_event",
|
|
130
221
|
method: "POST",
|
|
131
222
|
path: "/v1/webhooks/{webhook_id}/events/{event_id}/retry",
|
|
132
223
|
description: "Retry delivery of a failed webhook event. Resets attempt counter.",
|
|
224
|
+
annotations: {
|
|
225
|
+
destructiveHint: false,
|
|
226
|
+
openWorldHint: true,
|
|
227
|
+
readOnlyHint: false,
|
|
228
|
+
},
|
|
133
229
|
},
|
|
134
230
|
set_deliverables: {
|
|
135
231
|
operationId: "set_deliverables",
|
|
136
232
|
method: "PUT",
|
|
137
233
|
path: "/v1/listings/{listing_id}/deliverables",
|
|
138
234
|
description: "Set digital deliverables (files, URLs, or text) on a listing. Listings with deliverables auto-deliver to buyers on purchase.",
|
|
235
|
+
annotations: {
|
|
236
|
+
destructiveHint: false,
|
|
237
|
+
idempotentHint: true,
|
|
238
|
+
readOnlyHint: false,
|
|
239
|
+
},
|
|
139
240
|
},
|
|
140
241
|
start_stripe_connect: {
|
|
141
242
|
operationId: "start_stripe_connect",
|
|
142
243
|
method: "POST",
|
|
143
244
|
path: "/v1/account/stripe/connect",
|
|
144
245
|
description: "Start Stripe Connect onboarding. Returns a URL for the human to complete in a browser. Required before selling through Stripe.",
|
|
246
|
+
annotations: {
|
|
247
|
+
destructiveHint: false,
|
|
248
|
+
readOnlyHint: false,
|
|
249
|
+
},
|
|
145
250
|
},
|
|
146
251
|
test_webhook: {
|
|
147
252
|
operationId: "test_webhook",
|
|
148
253
|
method: "POST",
|
|
149
254
|
path: "/v1/webhooks/{webhook_id}/test",
|
|
150
255
|
description: "Send a test event to the webhook URL. Returns the delivery result. Use this to verify webhook configuration before going live.",
|
|
256
|
+
annotations: {
|
|
257
|
+
destructiveHint: false,
|
|
258
|
+
openWorldHint: true,
|
|
259
|
+
readOnlyHint: false,
|
|
260
|
+
},
|
|
151
261
|
},
|
|
152
262
|
update_account: {
|
|
153
263
|
operationId: "update_account",
|
|
154
264
|
method: "PUT",
|
|
155
265
|
path: "/v1/account",
|
|
156
266
|
description: "Update account settings. Brand info (display_name, bio, avatar) is on the Store, not the Account. Use update_store for branding.",
|
|
267
|
+
annotations: {
|
|
268
|
+
destructiveHint: false,
|
|
269
|
+
idempotentHint: true,
|
|
270
|
+
readOnlyHint: false,
|
|
271
|
+
},
|
|
157
272
|
},
|
|
158
273
|
update_listing: {
|
|
159
274
|
operationId: "update_listing",
|
|
160
275
|
method: "PUT",
|
|
161
276
|
path: "/v1/listings/{listing_id}",
|
|
162
277
|
description: "Update listing fields. Slug can be changed while in draft status — input is slugified, conflicts get a random suffix. Returns updated listing with readiness.",
|
|
278
|
+
annotations: {
|
|
279
|
+
destructiveHint: false,
|
|
280
|
+
idempotentHint: true,
|
|
281
|
+
readOnlyHint: false,
|
|
282
|
+
},
|
|
163
283
|
},
|
|
164
284
|
update_store: {
|
|
165
285
|
operationId: "update_store",
|
|
166
286
|
method: "PUT",
|
|
167
287
|
path: "/v1/store",
|
|
168
288
|
description: "Update store brand info. These appear on product pages and the store landing page.",
|
|
289
|
+
annotations: {
|
|
290
|
+
destructiveHint: false,
|
|
291
|
+
idempotentHint: true,
|
|
292
|
+
readOnlyHint: false,
|
|
293
|
+
},
|
|
169
294
|
},
|
|
170
295
|
update_webhook: {
|
|
171
296
|
operationId: "update_webhook",
|
|
172
297
|
method: "PUT",
|
|
173
298
|
path: "/v1/webhooks/{webhook_id}",
|
|
174
|
-
description: "Update a webhook endpoint. Only provided fields are changed.",
|
|
299
|
+
description: "Update a webhook endpoint URL, name, or subscribed events. Only provided fields are changed. Use POST /v1/webhooks/{webhook_id}/test to verify the updated endpoint receives events correctly.",
|
|
300
|
+
annotations: {
|
|
301
|
+
destructiveHint: false,
|
|
302
|
+
idempotentHint: true,
|
|
303
|
+
readOnlyHint: false,
|
|
304
|
+
},
|
|
175
305
|
},
|
|
176
306
|
upload_file: {
|
|
177
307
|
operationId: "upload_file",
|
|
178
308
|
method: "POST",
|
|
179
309
|
path: "/v1/files",
|
|
180
310
|
description: "Upload a file and receive a token for use in deliverables.",
|
|
311
|
+
annotations: {
|
|
312
|
+
destructiveHint: false,
|
|
313
|
+
openWorldHint: true,
|
|
314
|
+
readOnlyHint: false,
|
|
315
|
+
},
|
|
181
316
|
},
|
|
182
317
|
};
|
|
183
318
|
//# sourceMappingURL=meta.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../src/generated/meta.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,wCAAwC;AACxC,oCAAoC;AACpC,yBAAyB;AACzB,yCAAyC;AACzC,2EAA2E;
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../src/generated/meta.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,wCAAwC;AACxC,oCAAoC;AACpC,yBAAyB;AACzB,yCAAyC;AACzC,2EAA2E;AAiB3E,MAAM,CAAC,MAAM,IAAI,GAA6B;IAC5C,cAAc,EAAE;QACd,WAAW,EAAE,gBAAgB;QAC7B,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE,uhBAAuhB;QACpiB,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,YAA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E,aAAa;QACnB,WAAW,EAAE,kIAAkI;QAC/I,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,cAAc,EAAE,IAAI;YACpB,YAAY,EAAE,KAAK;SACpB;KACF;IACD,cAAc,EAAE;QACd,WAAW,EAAE,gBAAgB;QAC7B,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,2BAA2B;QACjC,WAAW,EAAE,+JAA+J;QAC5K,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,cAAc,EAAE,IAAI;YACpB,YAAY,EAAE,KAAK;SACpB;KACF;IACD,YAAY,EAAE;QACZ,WAAW,EAAE,cAAc;QAC3B,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,oFAAoF;QACjG,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,cAAc,EAAE,IAAI;YACpB,YAAY,EAAE,KAAK;SACpB;KACF;IACD,cAAc,EAAE;QACd,WAAW,EAAE,gBAAgB;QAC7B,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,2BAA2B;QACjC,WAAW,EAAE,gMAAgM;QAC7M,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,cAAc,EAAE,IAAI;YACpB,YAAY,EAAE,KAAK;SACpB;KACF;IACD,WAAW,EAAE;QACX,WAAW,EAAE,aAAa;QAC1B,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,4DAA4D;QACzE,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,IAAI;YACnB,YAAY,EAAE,KAAK;SACpB;KACF;CACF,CAAC"}
|
|
@@ -130,7 +130,10 @@ export declare const schemas: {
|
|
|
130
130
|
cursor: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
131
131
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
132
132
|
}, z.core.$strict>;
|
|
133
|
-
readonly list_webhooks:
|
|
133
|
+
readonly list_webhooks: z.ZodObject<{
|
|
134
|
+
cursor: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
135
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
136
|
+
}, z.core.$strict>;
|
|
134
137
|
readonly publish_listing: z.ZodObject<{
|
|
135
138
|
listing_id: z.ZodString;
|
|
136
139
|
}, z.core.$strict>;
|
|
@@ -214,7 +217,7 @@ export declare const schemas: {
|
|
|
214
217
|
readonly update_store: z.ZodObject<{
|
|
215
218
|
display_name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
216
219
|
bio: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
217
|
-
|
|
220
|
+
avatar: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
218
221
|
slug: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
219
222
|
}, z.core.$strict>;
|
|
220
223
|
readonly update_webhook: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/generated/schemas.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/generated/schemas.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BV,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,OAAO,OAAO,CAAC"}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
// source: openapi.json + mcp-tools.yaml
|
|
3
3
|
// Regenerate with: npm run generate
|
|
4
4
|
// openapi_version: 1.0.0
|
|
5
|
-
// generated_at: 2026-04-
|
|
6
|
-
// sha256:
|
|
5
|
+
// generated_at: 2026-04-12T07:24:36.385Z
|
|
6
|
+
// sha256: 34a4aef02ed2a34ca054b49fab2e4942a728a4f33d1374cb1c8a41539a0c9fe2
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
// Tool name → Zod schema (null means the tool takes no inputs)
|
|
9
9
|
export const schemas = {
|
|
10
10
|
create_listing: z.object({ "checkout_schema": z.union([z.array(z.object({ "key": z.string().max(50).describe("Unique key for this field"), "type": z.enum(["text", "select", "date"]).describe("Types of fields that can be collected at checkout."), "label": z.string().max(100).describe("Label shown to buyer"), "required": z.boolean().describe("Whether this field is required").default(true), "options": z.union([z.array(z.string()).max(50), z.null()]).describe("Options for select fields").optional(), "sort_order": z.number().int().gte(0).describe("Display order. Lower values shown first. Fields with equal sort_order are ordered by position in the array.").default(0) }).describe("A field to collect from the buyer at checkout.")), z.null()]).describe("Custom fields to collect from the buyer at checkout (e.g. size, color, shipping address). Email is always collected.").optional(), "name": z.string().describe("Product name shown on the product page"), "fulfillment_url": z.union([z.string(), z.null()]).describe("Callback URL — ListBee POSTs an enriched payload here when someone buys this listing. Use for stateless agent fulfillment: metadata + checkout_data round-tripped in the callback. Must be HTTPS in production.").optional(), "price": z.number().int().gt(0).describe("Price in cents (smallest currency unit). Examples: $5 = 500, $29 = 2900, $99.99 = 9999."), "stock": z.union([z.number().int().gte(0), z.null()]).describe("Stock quantity. null = unlimited (default), 0 = out of stock, positive integer = sell N then stop. Auto-decrements on each order.").optional(), "description": z.union([z.string().max(5000), z.null()]).describe("Product description shown on the product page. Improves buyer conversion. Plain text, max 5000 chars.").optional(), "tagline": z.union([z.string().max(140), z.null()]).describe("Short tagline shown below the product name on the product page. Max 140 chars.").optional(), "highlights": z.union([z.array(z.string()), z.null()]).describe("Bullet-point features shown as badges on the product page. Max 10 items. Each should be short (2-4 words).").optional(), "cta": z.union([z.string().max(60), z.null()]).describe("Buy button text on the product page. Defaults to 'Buy Now' if omitted. Max 60 chars.").optional(), "cover": z.union([z.string(), z.null()]).describe("Cover image file token from POST /v1/files. Shown prominently on the product page. Recommended: 1200x630px.").optional(), "metadata": z.union([z.record(z.string(), z.any()), z.null()]).describe("Arbitrary key-value pairs forwarded in webhook event payloads. Use for your own tracking (campaign IDs, source tags).").optional(), "utm_source": z.union([z.string().max(100), z.null()]).describe("UTM source tag for Google Analytics. Defaults to 'listbee' if omitted").optional(), "utm_medium": z.union([z.string().max(100), z.null()]).describe("UTM medium tag for Google Analytics. Defaults to 'product_page' if omitted").optional(), "utm_campaign": z.union([z.string().max(100), z.null()]).describe("UTM campaign tag for Google Analytics. Defaults to the listing slug if omitted").optional(), "compare_at_price": z.union([z.number().int().gt(0), z.null()]).describe("Strikethrough price in cents (smallest currency unit). Must be greater than price. Examples: $39 = 3900.").optional(), "badges": z.union([z.array(z.string()), z.null()]).describe("Short promotional badges shown on the product page (e.g. 'Best seller', 'Limited time'). Max 10 items.").optional(), "cover_blur": z.enum(["true", "false", "auto"]).optional(), "rating": z.union([z.number(), z.null()]).describe("Seller-provided aggregate star rating (1-5). Shown on the product page. Values outside range clamped.").optional(), "rating_count": z.union([z.number().int().gte(0), z.null()]).describe("Seller-provided review or purchase count shown alongside the rating on the product page.").optional(), "reviews": z.union([z.array(z.object({ "name": z.string().max(100).describe("Reviewer display name"), "rating": z.number().describe("Star rating (1–5). Values outside this range are clamped automatically"), "content": z.string().max(1000).describe("Review body text") })), z.null()]).describe("Featured review cards shown on the product page. Seller-provided, not buyer-submitted. Max 10.").optional(), "faqs": z.union([z.array(z.object({ "q": z.string().max(200).describe("Question text"), "a": z.string().max(1000).describe("Answer text") })), z.null()]).describe("FAQ accordion shown on the product page. Answers common buyer questions. Max 10 items.").optional() }).describe("All optional display fields (name, description, tagline, highlights, cta, badges, cover, reviews, faqs) appear on the product page buyers see.").strict(),
|
|
11
|
-
create_webhook: z.object({ "name": z.string().describe("A name to help you identify this endpoint in the dashboard"), "url": z.string().url().min(1).max(2083).describe("The HTTPS URL that will receive POST requests for each event"), "events": z.array(z.enum(["order.paid", "order.fulfilled", "order.refunded", "order.disputed", "order.dispute_closed", "order.canceled", "listing.created", "listing.updated", "listing.published", "listing.out_of_stock", "listing.deleted", "customer.created"])).describe("Event types to subscribe to. Empty = all events. Available: order.paid, order.fulfilled, order.
|
|
11
|
+
create_webhook: z.object({ "name": z.string().describe("A name to help you identify this endpoint in the dashboard"), "url": z.string().url().min(1).max(2083).describe("The HTTPS URL that will receive POST requests for each event"), "events": z.array(z.enum(["order.paid", "order.fulfilled", "order.refunded", "order.disputed", "order.dispute_closed", "order.canceled", "listing.created", "listing.updated", "listing.published", "listing.out_of_stock", "listing.deleted", "customer.created"])).describe("Event types to subscribe to. Empty = all events. Available: order.paid, order.fulfilled, order.refunded, order.disputed, order.dispute_closed, order.canceled, listing.created, listing.updated, listing.published, listing.out_of_stock, listing.deleted, customer.created.").optional() }).strict(),
|
|
12
12
|
delete_account: null,
|
|
13
13
|
delete_listing: z.object({ "listing_id": z.string().describe("Listing ID (lst_ prefixed).") }).strict(),
|
|
14
14
|
delete_webhook: z.object({ "webhook_id": z.string().describe("Webhook endpoint ID.") }).strict(),
|
|
@@ -23,7 +23,7 @@ export const schemas = {
|
|
|
23
23
|
list_listings: z.object({ "status": z.union([z.enum(["draft", "published"]), z.null()]).describe("Filter by listing status.").optional(), "cursor": z.union([z.string(), z.null()]).describe("Pagination cursor from a previous response.").optional(), "limit": z.number().int().gte(1).lte(100).describe("Maximum number of listings to return.").default(20) }).strict(),
|
|
24
24
|
list_orders: z.object({ "status": z.union([z.enum(["pending", "paid", "fulfilled", "canceled", "failed"]), z.null()]).describe("Filter orders by status.").optional(), "listing": z.union([z.string(), z.null()]).describe("Filter by listing ID (lst_ prefixed).").optional(), "buyer_email": z.union([z.string(), z.null()]).describe("Filter by exact buyer email address.").optional(), "created_after": z.union([z.string().datetime({ offset: true }), z.null()]).describe("Only orders created after this ISO 8601 datetime.").optional(), "created_before": z.union([z.string().datetime({ offset: true }), z.null()]).describe("Only orders created before this ISO 8601 datetime.").optional(), "cursor": z.union([z.string(), z.null()]).describe("Pagination cursor from a previous response.").optional(), "limit": z.number().int().gte(1).lte(100).describe("Maximum number of orders to return.").default(20) }).strict(),
|
|
25
25
|
list_webhook_events: z.object({ "webhook_id": z.string().describe("Webhook endpoint ID."), "delivered": z.union([z.boolean(), z.null()]).describe("Filter by delivery status. `true` for delivered, `false` for pending/failed.").optional(), "cursor": z.union([z.string(), z.null()]).describe("Pagination cursor from a previous response.").optional(), "limit": z.number().int().gte(1).lte(100).describe("Maximum number of events to return.").default(20) }).strict(),
|
|
26
|
-
list_webhooks: null,
|
|
26
|
+
list_webhooks: z.object({ "cursor": z.union([z.string(), z.null()]).describe("Pagination cursor from a previous response.").optional(), "limit": z.number().int().gte(1).lte(100).describe("Maximum number of webhooks to return.").default(20) }).strict(),
|
|
27
27
|
publish_listing: z.object({ "listing_id": z.string().describe("Listing ID (lst_ prefixed).") }).strict(),
|
|
28
28
|
refund_order: z.object({ "order_id": z.string().describe("Order ID (ord_ prefixed).") }).strict(),
|
|
29
29
|
remove_deliverables: z.object({ "listing_id": z.string().describe("Listing ID (lst_ prefixed).") }).strict(),
|
|
@@ -33,7 +33,7 @@ export const schemas = {
|
|
|
33
33
|
test_webhook: z.object({ "webhook_id": z.string().describe("Webhook endpoint ID.") }).strict(),
|
|
34
34
|
update_account: z.object({ "ga_measurement_id": z.union([z.string(), z.null()]).describe("Google Analytics 4 Measurement ID (G-XXXXXXXXXX). Set to null to remove").optional(), "notify_orders": z.union([z.boolean(), z.null()]).describe("Email me when I receive a new external order").optional() }).describe("Partial update for account settings.").strict(),
|
|
35
35
|
update_listing: z.object({ "listing_id": z.string().describe("Listing ID (lst_ prefixed)."), "fulfillment_url": z.union([z.string(), z.null()]).describe("Callback URL — ListBee POSTs here on purchase. Set to null to remove. Updating this field rotates the fulfillment_secret.").optional(), "name": z.union([z.string(), z.null()]).describe("Product name").optional(), "slug": z.union([z.string().max(80), z.null()]).describe("URL slug for the product page (e.g. 'seo-playbook'). Only changeable in draft. Auto-slugified. On conflict, random suffix appended.").optional(), "price": z.union([z.number().int().gt(0), z.null()]).describe("Price in cents (smallest currency unit). Examples: $5 = 500, $29 = 2900, $99.99 = 9999.").optional(), "stock": z.union([z.number().int().gte(0), z.null()]).describe("Stock quantity. null = unlimited, 0 = out of stock, positive integer = sell N then stop.").optional(), "checkout_schema": z.union([z.array(z.object({ "key": z.string().max(50).describe("Unique key for this field"), "type": z.enum(["text", "select", "date"]).describe("Types of fields that can be collected at checkout."), "label": z.string().max(100).describe("Label shown to buyer"), "required": z.boolean().describe("Whether this field is required").default(true), "options": z.union([z.array(z.string()).max(50), z.null()]).describe("Options for select fields").optional(), "sort_order": z.number().int().gte(0).describe("Display order. Lower values shown first. Fields with equal sort_order are ordered by position in the array.").default(0) }).describe("A field to collect from the buyer at checkout.")), z.null()]).describe("Custom fields to collect from the buyer at checkout. Replaces existing schema.").optional(), "description": z.union([z.string().max(5000), z.null()]).describe("Product description shown on the product page. Improves buyer conversion. Plain text, max 5000 chars.").optional(), "tagline": z.union([z.string().max(140), z.null()]).describe("Short tagline shown below the product name on the product page. Max 140 chars.").optional(), "highlights": z.union([z.array(z.string()), z.null()]).describe("Bullet-point features shown as badges on the product page. Max 10 items. Each should be short (2-4 words).").optional(), "cta": z.union([z.string().max(60), z.null()]).describe("Buy button text on the product page. Defaults to 'Buy Now' if omitted. Max 60 chars.").optional(), "cover": z.union([z.string(), z.null()]).describe("Cover image file token from POST /v1/files. Shown prominently on the product page. Recommended: 1200x630px.").optional(), "metadata": z.union([z.record(z.string(), z.any()), z.null()]).describe("Arbitrary key-value pairs forwarded in webhook event payloads. Use for your own tracking (campaign IDs, source tags).").optional(), "utm_source": z.union([z.string().max(100), z.null()]).describe("UTM source tag for Google Analytics").optional(), "utm_medium": z.union([z.string().max(100), z.null()]).describe("UTM medium tag for Google Analytics").optional(), "utm_campaign": z.union([z.string().max(100), z.null()]).describe("UTM campaign tag for Google Analytics").optional(), "compare_at_price": z.union([z.number().int().gt(0), z.null()]).describe("Strikethrough price in cents (smallest currency unit). Must be greater than price. Examples: $39 = 3900.").optional(), "badges": z.union([z.array(z.string()), z.null()]).describe("Short promotional badges shown on the product page (e.g. 'Best seller', 'Limited time'). Max 10 items.").optional(), "cover_blur": z.union([z.enum(["true", "false", "auto"]), z.null()]).describe("Cover image blur mode. 'true' always blurs, 'false' never blurs, 'auto' blurs when deliverable is an image file.").optional(), "rating": z.union([z.number(), z.null()]).describe("Seller-provided aggregate star rating (1-5). Shown on the product page. Values outside range clamped.").optional(), "rating_count": z.union([z.number().int().gte(0), z.null()]).describe("Seller-provided review or purchase count shown alongside the rating on the product page.").optional(), "reviews": z.union([z.array(z.object({ "name": z.string().max(100).describe("Reviewer display name"), "rating": z.number().describe("Star rating (1–5). Values outside this range are clamped automatically"), "content": z.string().max(1000).describe("Review body text") })), z.null()]).describe("Featured review cards shown on the product page. Seller-provided, not buyer-submitted. Max 10.").optional(), "faqs": z.union([z.array(z.object({ "q": z.string().max(200).describe("Question text"), "a": z.string().max(1000).describe("Answer text") })), z.null()]).describe("FAQ accordion shown on the product page. Answers common buyer questions. Max 10 items.").optional() }).strict(),
|
|
36
|
-
update_store: z.object({ "display_name": z.union([z.string(), z.null()]).describe("Store display name shown to buyers").optional(), "bio": z.union([z.string(), z.null()]).describe("Store bio shown on product pages").optional(), "
|
|
36
|
+
update_store: z.object({ "display_name": z.union([z.string(), z.null()]).describe("Store display name shown to buyers").optional(), "bio": z.union([z.string(), z.null()]).describe("Store bio shown on product pages").optional(), "avatar": z.union([z.string(), z.null()]).describe("File token from POST /v1/files with purpose=avatar. Upload an image first, then pass the file token here. Set to empty string to remove the avatar.").optional(), "slug": z.union([z.string().regex(new RegExp("^[a-z0-9][a-z0-9-]*[a-z0-9]$")).min(3).max(60), z.null()]).describe("URL-safe store slug used in checkout URLs. Must be 3-60 characters, start and end with alphanumeric, contain only lowercase letters, digits, and hyphens.").optional() }).strict(),
|
|
37
37
|
update_webhook: z.object({ "webhook_id": z.string().describe("Webhook endpoint ID."), "name": z.union([z.string(), z.null()]).describe("Display name").optional(), "url": z.union([z.string().url().min(1).max(2083), z.null()]).describe("HTTPS endpoint URL").optional(), "events": z.union([z.array(z.enum(["order.paid", "order.fulfilled", "order.refunded", "order.disputed", "order.dispute_closed", "order.canceled", "listing.created", "listing.updated", "listing.published", "listing.out_of_stock", "listing.deleted", "customer.created"])), z.null()]).describe("Replaces the current event subscriptions. Empty list subscribes to all events").optional(), "enabled": z.union([z.boolean(), z.null()]).describe("Set to `false` to pause delivery without deleting the endpoint").optional() }).strict(),
|
|
38
38
|
upload_file: null,
|
|
39
39
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/generated/schemas.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,wCAAwC;AACxC,oCAAoC;AACpC,yBAAyB;AACzB,yCAAyC;AACzC,2EAA2E;AAE3E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,+DAA+D;AAC/D,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,2BAA2B,CAAC,EAAE,MAAM,EAAE,CAAC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ts","sourceRoot":"","sources":["../../src/handlers/upload-file.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAmBvC;;;GAGG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,OAAO,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"upload-file.d.ts","sourceRoot":"","sources":["../../src/handlers/upload-file.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAmBvC;;;GAGG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,OAAO,CAAC,OAAO,CAAC,CA4BlB"}
|
|
@@ -22,6 +22,7 @@ function deriveFilename(url) {
|
|
|
22
22
|
export async function handleUploadFile(client, args) {
|
|
23
23
|
const url = args.url;
|
|
24
24
|
const providedFilename = args.filename;
|
|
25
|
+
const purpose = args.purpose;
|
|
25
26
|
// Fetch the file from the provided URL
|
|
26
27
|
const res = await fetch(url);
|
|
27
28
|
if (!res.ok) {
|
|
@@ -31,8 +32,13 @@ export async function handleUploadFile(client, args) {
|
|
|
31
32
|
const buffer = Buffer.from(arrayBuffer);
|
|
32
33
|
// Derive filename from URL if not provided
|
|
33
34
|
const filename = providedFilename ?? deriveFilename(url) ?? "uploaded-file";
|
|
34
|
-
//
|
|
35
|
-
const
|
|
36
|
-
|
|
35
|
+
// Build multipart form data — include purpose if provided
|
|
36
|
+
const formData = new FormData();
|
|
37
|
+
formData.append("file", new File([buffer], filename));
|
|
38
|
+
if (purpose) {
|
|
39
|
+
formData.append("purpose", purpose);
|
|
40
|
+
}
|
|
41
|
+
// Use postMultipart directly to pass purpose (files.upload in SDK < 0.15 doesn't support it)
|
|
42
|
+
return client.postMultipart("/v1/files", formData);
|
|
37
43
|
}
|
|
38
44
|
//# sourceMappingURL=upload-file.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-file.js","sourceRoot":"","sources":["../../src/handlers/upload-file.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,SAAS,cAAc,CAAC,GAAW;IACjC,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC;QACvC,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACrD,MAAM,IAAI,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC3C,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC/B,OAAO,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAClC,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,MAAe,EACf,IAA6B;IAE7B,MAAM,GAAG,GAAG,IAAI,CAAC,GAAa,CAAC;IAC/B,MAAM,gBAAgB,GAAG,IAAI,CAAC,QAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"upload-file.js","sourceRoot":"","sources":["../../src/handlers/upload-file.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,SAAS,cAAc,CAAC,GAAW;IACjC,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC;QACvC,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACrD,MAAM,IAAI,GAAG,QAAQ,CAAC,QA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,CAAC;IACtC,CAAC;IAED,6FAA6F;IAC7F,OAAQ,MAA2F,CAAC,aAAa,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AAC3I,CAAC"}
|
package/dist/manifest.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export interface ToolAnnotations {
|
|
2
|
+
readOnlyHint?: boolean;
|
|
3
|
+
destructiveHint?: boolean;
|
|
4
|
+
idempotentHint?: boolean;
|
|
5
|
+
openWorldHint?: boolean;
|
|
6
|
+
}
|
|
1
7
|
export interface ToolMeta {
|
|
2
8
|
type: string;
|
|
3
9
|
operation_id: string;
|
|
@@ -5,6 +11,7 @@ export interface ToolMeta {
|
|
|
5
11
|
category: string;
|
|
6
12
|
priority: number;
|
|
7
13
|
status: string;
|
|
14
|
+
annotations?: ToolAnnotations;
|
|
8
15
|
requires_human?: boolean;
|
|
9
16
|
when_to_use: string;
|
|
10
17
|
description?: string;
|
package/dist/manifest.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAOD;;GAEG;AACH,wBAAgB,YAAY,IAAI,QAAQ,EAAE,CAOzC;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAMtE"}
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,eAAe;IAC9B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAOD;;GAEG;AACH,wBAAgB,YAAY,IAAI,QAAQ,EAAE,CAOzC;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAMtE"}
|
package/dist/manifest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,IAAI,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,IAAI,MAAM,MAAM,CAAC;AA6BxB;;GAEG;AACH,MAAM,UAAU,YAAY;IAC1B,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1D,oCAAoC;IACpC,MAAM,QAAQ,GAAG,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,gBAAgB,CAAC,CAAC;IAC5D,MAAM,GAAG,GAAG,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC5C,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAiB,CAAC;IACjD,OAAO,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC;AAC7D,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,KAAiB;IAC7C,MAAM,GAAG,GAAG,IAAI,GAAG,EAAoB,CAAC;IACxC,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC;QACtB,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACrB,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAgCpE,UAAU,mBAAmB;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC1B;AAmCD;;GAEG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,SAAS,CAyFpE"}
|
package/dist/server.js
CHANGED
|
@@ -19,47 +19,12 @@ Golden path: create_listing → set_deliverables → get_listing (check readines
|
|
|
19
19
|
Always call get_listing after mutations to inspect readiness.
|
|
20
20
|
readiness.sellable tells you if the listing is live.
|
|
21
21
|
readiness.actions lists what's missing — kind:api means you can fix it, kind:human means the user must.`;
|
|
22
|
-
/**
|
|
23
|
-
* Annotation defaults per HTTP method pattern.
|
|
24
|
-
*/
|
|
25
|
-
function annotationsFor(name) {
|
|
26
|
-
if (name.startsWith("get_") || name.startsWith("list_")) {
|
|
27
|
-
return { readOnlyHint: true, destructiveHint: false, openWorldHint: false };
|
|
28
|
-
}
|
|
29
|
-
if (name.startsWith("delete_") || name === "remove_deliverables" || name === "disconnect_stripe") {
|
|
30
|
-
return {
|
|
31
|
-
readOnlyHint: false,
|
|
32
|
-
destructiveHint: true,
|
|
33
|
-
openWorldHint: false,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
if (name.startsWith("update_") || name === "set_deliverables") {
|
|
37
|
-
return {
|
|
38
|
-
readOnlyHint: false,
|
|
39
|
-
destructiveHint: false,
|
|
40
|
-
idempotentHint: true,
|
|
41
|
-
openWorldHint: false,
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
if (name === "upload_file") {
|
|
45
|
-
return {
|
|
46
|
-
readOnlyHint: false,
|
|
47
|
-
destructiveHint: false,
|
|
48
|
-
openWorldHint: true,
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
// create, publish, stripe connect
|
|
52
|
-
return {
|
|
53
|
-
readOnlyHint: false,
|
|
54
|
-
destructiveHint: false,
|
|
55
|
-
openWorldHint: false,
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
22
|
// Manual override for upload_file: the API uses multipart upload but the MCP tool
|
|
59
23
|
// takes a URL + filename and handles the fetch-and-upload server-side.
|
|
60
24
|
const uploadFileSchema = z.object({
|
|
61
25
|
url: z.string().url().describe("Public URL of a file to upload. The server fetches this URL — only provide URLs from the user or trusted sources."),
|
|
62
26
|
filename: z.string().optional().describe("Filename for the uploaded file. If omitted, derived from the URL."),
|
|
27
|
+
purpose: z.enum(["deliverable", "cover", "avatar"]).optional().describe("File purpose — controls size and MIME limits. 'deliverable' (default, up to 25 MB): listing content. 'cover' (up to 5 MB): listing cover image. 'avatar' (up to 2 MB): store avatar."),
|
|
63
28
|
});
|
|
64
29
|
/**
|
|
65
30
|
* Schema map — links tool names to their Zod input schemas (or null for no-input tools).
|
|
@@ -105,7 +70,7 @@ export function createServer(options) {
|
|
|
105
70
|
}
|
|
106
71
|
const description = buildDescription(meta);
|
|
107
72
|
const title = autoTitle(toolName);
|
|
108
|
-
const annotations =
|
|
73
|
+
const annotations = meta?.annotations ?? {};
|
|
109
74
|
// start_stripe_connect: special case — handler returns CallToolResult directly
|
|
110
75
|
if (toolName === "start_stripe_connect") {
|
|
111
76
|
server.registerTool(toolName, {
|
|
@@ -140,9 +105,8 @@ export function createServer(options) {
|
|
|
140
105
|
if (!allHandlers[name] && name !== "start_stripe_connect") {
|
|
141
106
|
throw new Error(`Startup validation failed: tool "${name}" has no handler registered`);
|
|
142
107
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
throw new Error(`Startup validation failed: tool "${name}" is missing readOnlyHint annotation`);
|
|
108
|
+
if (tool.annotations === undefined) {
|
|
109
|
+
throw new Error(`Startup validation failed: tool "${name}" is missing annotations in manifest`);
|
|
146
110
|
}
|
|
147
111
|
}
|
|
148
112
|
return server;
|
package/dist/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,iCAAiC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1D,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CACpB,YAAY,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,cAAc,CAAC,EAAE,OAAO,CAAC,CACzC,CAAC;AA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,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC3C;QACD,8DAA8D;QAC9D,KAAK,EAAE,IAAS,EAAE,EAAE;YAClB,OAAO,QAAQ,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,IAAI,IAAI,EAAE,CAA4B,CAAC,CAAC,CAAC;QAClF,CAAC,CACF,CAAC;QAEF,OAAO,CAAC,KAAK,CAAC,sBAAsB,KAAK,KAAK,QAAQ,GAAG,CAAC,CAAC;IAC7D,CAAC;IAED,8DAA8D;IAC9D,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE,CAAC;QAC5B,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACvB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,IAAI,KAAK,sBAAsB,EAAE,CAAC;YAC1D,MAAM,IAAI,KAAK,CACb,oCAAoC,IAAI,6BAA6B,CACtE,CAAC;QACJ,CAAC;QACD,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;YACnC,MAAM,IAAI,KAAK,CACb,oCAAoC,IAAI,sCAAsC,CAC/E,CAAC;QACJ,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/mcp-tools.yaml
CHANGED
|
@@ -14,6 +14,9 @@ tools:
|
|
|
14
14
|
category: listings
|
|
15
15
|
priority: 10
|
|
16
16
|
status: active
|
|
17
|
+
annotations:
|
|
18
|
+
readOnlyHint: false
|
|
19
|
+
destructiveHint: false
|
|
17
20
|
when_to_use: "Use when the user wants to sell something new."
|
|
18
21
|
description: >
|
|
19
22
|
Create a new listing for sale. Returns a checkout URL and readiness status.
|
|
@@ -46,6 +49,10 @@ tools:
|
|
|
46
49
|
category: listings
|
|
47
50
|
priority: 9
|
|
48
51
|
status: active
|
|
52
|
+
annotations:
|
|
53
|
+
readOnlyHint: true
|
|
54
|
+
destructiveHint: false
|
|
55
|
+
idempotentHint: true
|
|
49
56
|
when_to_use: "Use after any mutation (create, update, set_deliverables) to inspect readiness and determine what to do next."
|
|
50
57
|
description: >
|
|
51
58
|
Get a listing's full state including readiness. This is the readiness
|
|
@@ -62,6 +69,10 @@ tools:
|
|
|
62
69
|
category: listings
|
|
63
70
|
priority: 9
|
|
64
71
|
status: active
|
|
72
|
+
annotations:
|
|
73
|
+
readOnlyHint: false
|
|
74
|
+
destructiveHint: false
|
|
75
|
+
idempotentHint: true
|
|
65
76
|
when_to_use: "Use when changing title, price, or other listing details."
|
|
66
77
|
input_example:
|
|
67
78
|
name: "100 Cold Outreach Templates (Updated)"
|
|
@@ -73,6 +84,10 @@ tools:
|
|
|
73
84
|
category: listings
|
|
74
85
|
priority: 7
|
|
75
86
|
status: active
|
|
87
|
+
annotations:
|
|
88
|
+
readOnlyHint: true
|
|
89
|
+
destructiveHint: false
|
|
90
|
+
idempotentHint: true
|
|
76
91
|
when_to_use: "Use to see all listings for the current account."
|
|
77
92
|
|
|
78
93
|
- type: operation
|
|
@@ -81,6 +96,9 @@ tools:
|
|
|
81
96
|
category: listings
|
|
82
97
|
priority: 10
|
|
83
98
|
status: active
|
|
99
|
+
annotations:
|
|
100
|
+
readOnlyHint: false
|
|
101
|
+
destructiveHint: false
|
|
84
102
|
when_to_use: "Use when the user wants the listing to go live."
|
|
85
103
|
description: >
|
|
86
104
|
Publish a listing so buyers can access the product page.
|
|
@@ -96,6 +114,10 @@ tools:
|
|
|
96
114
|
category: listings
|
|
97
115
|
priority: 9
|
|
98
116
|
status: active
|
|
117
|
+
annotations:
|
|
118
|
+
readOnlyHint: false
|
|
119
|
+
destructiveHint: false
|
|
120
|
+
idempotentHint: true
|
|
99
121
|
when_to_use: "Use after creating a listing to attach digital content for automatic delivery."
|
|
100
122
|
description: >
|
|
101
123
|
Set digital deliverables (files, URLs, or text) on a listing.
|
|
@@ -112,7 +134,14 @@ tools:
|
|
|
112
134
|
category: listings
|
|
113
135
|
priority: 3
|
|
114
136
|
status: active
|
|
137
|
+
annotations:
|
|
138
|
+
readOnlyHint: false
|
|
139
|
+
destructiveHint: true
|
|
115
140
|
when_to_use: "Use when removing all deliverables from a listing (switches to agent-fulfilled or webhook delivery)."
|
|
141
|
+
description: >
|
|
142
|
+
Remove all deliverables from a listing. This is irreversible — the files
|
|
143
|
+
and delivery configuration cannot be recovered. The listing switches to
|
|
144
|
+
external fulfillment (webhook or agent callback).
|
|
116
145
|
|
|
117
146
|
- type: operation
|
|
118
147
|
operation_id: delete_listing
|
|
@@ -120,7 +149,13 @@ tools:
|
|
|
120
149
|
category: listings
|
|
121
150
|
priority: 2
|
|
122
151
|
status: active
|
|
152
|
+
annotations:
|
|
153
|
+
readOnlyHint: false
|
|
154
|
+
destructiveHint: true
|
|
123
155
|
when_to_use: "Use when the user wants to permanently remove a listing."
|
|
156
|
+
description: >
|
|
157
|
+
Permanently delete a listing. This is irreversible — the listing, its
|
|
158
|
+
checkout URL, and all associated data cannot be recovered.
|
|
124
159
|
|
|
125
160
|
# --- Files ---
|
|
126
161
|
- type: operation
|
|
@@ -129,6 +164,10 @@ tools:
|
|
|
129
164
|
category: files
|
|
130
165
|
priority: 8
|
|
131
166
|
status: active
|
|
167
|
+
annotations:
|
|
168
|
+
readOnlyHint: false
|
|
169
|
+
destructiveHint: false
|
|
170
|
+
openWorldHint: true
|
|
132
171
|
when_to_use: "Use when the user has a file to sell. Upload first, then use the returned token in set_deliverables."
|
|
133
172
|
description: >
|
|
134
173
|
Upload a file and receive a token for use in deliverables.
|
|
@@ -142,6 +181,10 @@ tools:
|
|
|
142
181
|
category: orders
|
|
143
182
|
priority: 7
|
|
144
183
|
status: active
|
|
184
|
+
annotations:
|
|
185
|
+
readOnlyHint: true
|
|
186
|
+
destructiveHint: false
|
|
187
|
+
idempotentHint: true
|
|
145
188
|
when_to_use: "Use when the user wants to see their sales or check order status."
|
|
146
189
|
|
|
147
190
|
- type: operation
|
|
@@ -150,6 +193,10 @@ tools:
|
|
|
150
193
|
category: orders
|
|
151
194
|
priority: 6
|
|
152
195
|
status: active
|
|
196
|
+
annotations:
|
|
197
|
+
readOnlyHint: true
|
|
198
|
+
destructiveHint: false
|
|
199
|
+
idempotentHint: true
|
|
153
200
|
when_to_use: "Use to get full details of a specific order including buyer info and payment."
|
|
154
201
|
|
|
155
202
|
- type: operation
|
|
@@ -158,6 +205,9 @@ tools:
|
|
|
158
205
|
category: orders
|
|
159
206
|
priority: 8
|
|
160
207
|
status: active
|
|
208
|
+
annotations:
|
|
209
|
+
readOnlyHint: false
|
|
210
|
+
destructiveHint: false
|
|
161
211
|
when_to_use: "Use when you need to deliver digital content to a buyer after purchase, or close out an order as complete."
|
|
162
212
|
description: >
|
|
163
213
|
Fulfill an order. Include deliverables (file/url/text) to deliver digital content via ListBee —
|
|
@@ -179,10 +229,15 @@ tools:
|
|
|
179
229
|
category: orders
|
|
180
230
|
priority: 6
|
|
181
231
|
status: active
|
|
232
|
+
annotations:
|
|
233
|
+
readOnlyHint: false
|
|
234
|
+
destructiveHint: true
|
|
235
|
+
idempotentHint: true
|
|
182
236
|
when_to_use: "When a buyer requests a refund or the seller needs to reverse a charge. Only works on paid or fulfilled orders."
|
|
183
237
|
description: >
|
|
184
|
-
Issue a full refund for an order.
|
|
185
|
-
|
|
238
|
+
Issue a full refund for an order. This is irreversible and cannot be undone.
|
|
239
|
+
Refund is processed through Stripe on the seller's connected account.
|
|
240
|
+
Idempotent — already-refunded orders return as-is.
|
|
186
241
|
Order state (refund_amount, refunded_at) updates asynchronously via Stripe webhook.
|
|
187
242
|
hints:
|
|
188
243
|
- "Only works on orders in PAID or FULFILLED status"
|
|
@@ -198,6 +253,10 @@ tools:
|
|
|
198
253
|
category: customers
|
|
199
254
|
priority: 7
|
|
200
255
|
status: active
|
|
256
|
+
annotations:
|
|
257
|
+
readOnlyHint: true
|
|
258
|
+
destructiveHint: false
|
|
259
|
+
idempotentHint: true
|
|
201
260
|
when_to_use: "When the agent needs buyer email addresses for marketing, wants to analyze purchasing patterns, or needs to identify repeat customers."
|
|
202
261
|
description: >
|
|
203
262
|
List all customers (buyers) who have purchased from the seller. Auto-populated
|
|
@@ -214,6 +273,10 @@ tools:
|
|
|
214
273
|
category: customers
|
|
215
274
|
priority: 6
|
|
216
275
|
status: active
|
|
276
|
+
annotations:
|
|
277
|
+
readOnlyHint: true
|
|
278
|
+
destructiveHint: false
|
|
279
|
+
idempotentHint: true
|
|
217
280
|
when_to_use: "When the agent needs purchase history details for a specific buyer."
|
|
218
281
|
description: >
|
|
219
282
|
Get a customer by ID. Shows total orders, total spent, currency, and purchase dates.
|
|
@@ -228,6 +291,10 @@ tools:
|
|
|
228
291
|
category: account
|
|
229
292
|
priority: 8
|
|
230
293
|
status: active
|
|
294
|
+
annotations:
|
|
295
|
+
readOnlyHint: true
|
|
296
|
+
destructiveHint: false
|
|
297
|
+
idempotentHint: true
|
|
231
298
|
when_to_use: "Use to check account status, readiness, billing, Stripe connection, and profile details."
|
|
232
299
|
description: >
|
|
233
300
|
Get the authenticated account's full state including readiness and billing status.
|
|
@@ -243,6 +310,10 @@ tools:
|
|
|
243
310
|
category: account
|
|
244
311
|
priority: 5
|
|
245
312
|
status: active
|
|
313
|
+
annotations:
|
|
314
|
+
readOnlyHint: false
|
|
315
|
+
destructiveHint: false
|
|
316
|
+
idempotentHint: true
|
|
246
317
|
when_to_use: "Use to update account-level settings (GA tracking, notification preferences)."
|
|
247
318
|
description: >
|
|
248
319
|
Update account settings. Brand info (display_name, bio, avatar) is on the Store,
|
|
@@ -254,6 +325,9 @@ tools:
|
|
|
254
325
|
category: account
|
|
255
326
|
priority: 1
|
|
256
327
|
status: active
|
|
328
|
+
annotations:
|
|
329
|
+
readOnlyHint: false
|
|
330
|
+
destructiveHint: true
|
|
257
331
|
when_to_use: "Use only when the user explicitly wants to permanently delete their account."
|
|
258
332
|
description: >
|
|
259
333
|
Permanently delete the account and all associated data. This is irreversible.
|
|
@@ -267,6 +341,10 @@ tools:
|
|
|
267
341
|
category: store
|
|
268
342
|
priority: 9
|
|
269
343
|
status: active
|
|
344
|
+
annotations:
|
|
345
|
+
readOnlyHint: true
|
|
346
|
+
destructiveHint: false
|
|
347
|
+
idempotentHint: true
|
|
270
348
|
when_to_use: "Use to check your store's brand info and sellability status."
|
|
271
349
|
description: >
|
|
272
350
|
Get the current store's brand info (display_name, bio, avatar, slug) and
|
|
@@ -282,6 +360,10 @@ tools:
|
|
|
282
360
|
category: store
|
|
283
361
|
priority: 5
|
|
284
362
|
status: active
|
|
363
|
+
annotations:
|
|
364
|
+
readOnlyHint: false
|
|
365
|
+
destructiveHint: false
|
|
366
|
+
idempotentHint: true
|
|
285
367
|
when_to_use: "Use to update your store's brand — display name, bio, avatar, or slug."
|
|
286
368
|
description: >
|
|
287
369
|
Update store brand info. These appear on product pages and the store landing page.
|
|
@@ -296,6 +378,9 @@ tools:
|
|
|
296
378
|
category: stripe
|
|
297
379
|
priority: 10
|
|
298
380
|
status: active
|
|
381
|
+
annotations:
|
|
382
|
+
readOnlyHint: false
|
|
383
|
+
destructiveHint: false
|
|
299
384
|
requires_human: true
|
|
300
385
|
when_to_use: "Use when readiness says Stripe is not connected. Returns a URL the human must visit."
|
|
301
386
|
description: >
|
|
@@ -311,10 +396,14 @@ tools:
|
|
|
311
396
|
category: stripe
|
|
312
397
|
priority: 2
|
|
313
398
|
status: active
|
|
399
|
+
annotations:
|
|
400
|
+
readOnlyHint: false
|
|
401
|
+
destructiveHint: true
|
|
314
402
|
when_to_use: "Use when the user wants to disconnect their Stripe account."
|
|
315
403
|
description: >
|
|
316
|
-
Disconnect the Stripe account from ListBee.
|
|
317
|
-
|
|
404
|
+
Disconnect the Stripe account from ListBee. This cannot be undone —
|
|
405
|
+
you will need to re-onboard through Stripe Connect. Existing listings
|
|
406
|
+
retain their payment snapshot but new checkouts will fail.
|
|
318
407
|
hints:
|
|
319
408
|
- "This doesn't delete the Stripe account — just disconnects it from ListBee"
|
|
320
409
|
|
|
@@ -325,6 +414,10 @@ tools:
|
|
|
325
414
|
category: webhooks
|
|
326
415
|
priority: 7
|
|
327
416
|
status: active
|
|
417
|
+
annotations:
|
|
418
|
+
readOnlyHint: true
|
|
419
|
+
destructiveHint: false
|
|
420
|
+
idempotentHint: true
|
|
328
421
|
when_to_use: "Use to see configured webhooks and their delivery status."
|
|
329
422
|
description: >
|
|
330
423
|
List all webhooks for the account. Shows URL, events filter, and enabled status.
|
|
@@ -335,6 +428,9 @@ tools:
|
|
|
335
428
|
category: webhooks
|
|
336
429
|
priority: 8
|
|
337
430
|
status: active
|
|
431
|
+
annotations:
|
|
432
|
+
readOnlyHint: false
|
|
433
|
+
destructiveHint: false
|
|
338
434
|
when_to_use: "Use when the user needs to receive order notifications at a URL."
|
|
339
435
|
description: >
|
|
340
436
|
Create a webhook endpoint. Specify the URL and which events to receive.
|
|
@@ -353,6 +449,10 @@ tools:
|
|
|
353
449
|
category: webhooks
|
|
354
450
|
priority: 5
|
|
355
451
|
status: active
|
|
452
|
+
annotations:
|
|
453
|
+
readOnlyHint: false
|
|
454
|
+
destructiveHint: false
|
|
455
|
+
idempotentHint: true
|
|
356
456
|
when_to_use: "Use to change a webhook's URL, events filter, or enabled status."
|
|
357
457
|
|
|
358
458
|
- type: operation
|
|
@@ -361,7 +461,13 @@ tools:
|
|
|
361
461
|
category: webhooks
|
|
362
462
|
priority: 3
|
|
363
463
|
status: active
|
|
464
|
+
annotations:
|
|
465
|
+
readOnlyHint: false
|
|
466
|
+
destructiveHint: true
|
|
364
467
|
when_to_use: "Use to remove a webhook endpoint."
|
|
468
|
+
description: >
|
|
469
|
+
Permanently delete a webhook endpoint. This is irreversible — the webhook
|
|
470
|
+
and its delivery history cannot be recovered.
|
|
365
471
|
|
|
366
472
|
- type: operation
|
|
367
473
|
operation_id: list_webhook_events
|
|
@@ -369,6 +475,10 @@ tools:
|
|
|
369
475
|
category: webhooks
|
|
370
476
|
priority: 5
|
|
371
477
|
status: active
|
|
478
|
+
annotations:
|
|
479
|
+
readOnlyHint: true
|
|
480
|
+
destructiveHint: false
|
|
481
|
+
idempotentHint: true
|
|
372
482
|
when_to_use: "Use to check webhook delivery history — see which events were sent and whether they succeeded."
|
|
373
483
|
description: >
|
|
374
484
|
List recent events for a webhook. Shows delivery status, attempts, and errors.
|
|
@@ -380,6 +490,10 @@ tools:
|
|
|
380
490
|
category: webhooks
|
|
381
491
|
priority: 4
|
|
382
492
|
status: active
|
|
493
|
+
annotations:
|
|
494
|
+
readOnlyHint: false
|
|
495
|
+
destructiveHint: false
|
|
496
|
+
openWorldHint: true
|
|
383
497
|
when_to_use: "Use when a webhook delivery failed and needs to be retried."
|
|
384
498
|
description: >
|
|
385
499
|
Retry delivery of a failed webhook event. Resets attempt counter.
|
|
@@ -390,6 +504,10 @@ tools:
|
|
|
390
504
|
category: webhooks
|
|
391
505
|
priority: 5
|
|
392
506
|
status: active
|
|
507
|
+
annotations:
|
|
508
|
+
readOnlyHint: false
|
|
509
|
+
destructiveHint: false
|
|
510
|
+
openWorldHint: true
|
|
393
511
|
when_to_use: "Use to send a test event to a webhook URL to verify it's working."
|
|
394
512
|
description: >
|
|
395
513
|
Send a test event to the webhook URL. Returns the delivery result.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "listbee-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "MCP server for ListBee — commerce API for AI agents",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -19,12 +19,13 @@
|
|
|
19
19
|
"generate:check": "tsx scripts/generate.ts --check",
|
|
20
20
|
"build": "npm run generate && tsc && chmod +x dist/index.js",
|
|
21
21
|
"dev": "tsx src/index.ts",
|
|
22
|
+
"validate:annotations": "tsx scripts/validate-annotations.ts",
|
|
22
23
|
"lint": "npm run generate:check && tsc --noEmit",
|
|
23
24
|
"prepublishOnly": "npm run build"
|
|
24
25
|
},
|
|
25
26
|
"dependencies": {
|
|
26
27
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
27
|
-
"listbee": "^0.
|
|
28
|
+
"listbee": "^0.17.0",
|
|
28
29
|
"yaml": "2.8.3",
|
|
29
30
|
"zod": "4.3.6"
|
|
30
31
|
},
|