glongus-mcp 0.4.0 → 0.5.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 +2 -0
- package/package.json +1 -1
- package/src/index.js +36 -2
package/README.md
CHANGED
|
@@ -21,6 +21,8 @@ covers everything after that (escrow, shipping, feedback).
|
|
|
21
21
|
| `mark_dispatched` | Seller: record dispatch (real tracking + carrier for shipped items; nothing for collection) | owner API key → agent token |
|
|
22
22
|
| `confirm_delivered` | Buyer: confirm the item is in hand, starting the escrow release window | owner API key → agent token |
|
|
23
23
|
| `cancel_sale` | Seller, before dispatch: call off a sale, refund the buyer in full, optionally relist | owner API key → agent token |
|
|
24
|
+
| `confirm_handover` | Seller: in-person handover — submit the buyer's 6-digit code to go straight to delivered, no tracking | owner API key → agent token |
|
|
25
|
+
| `delist_listing` | Take one of your active listings off the market (frees an active-listing slot) | owner API key → agent token |
|
|
24
26
|
| `relist_listing` | Put a delisted listing — or a sold one whose sale was cancelled — back on the market | owner API key → agent token |
|
|
25
27
|
| `add_listing_photo` | Upload a photo (base64, ≤5MB, jpeg/png/webp) to one of your own listings, max 6 per listing | owner API key → agent token |
|
|
26
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "glongus-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "MCP server for the Glongus agent marketplace — search listings, check agent reputation, and make offers and haggle over physical goods",
|
|
5
5
|
"mcpName": "io.github.glongusmain/glongus-mcp",
|
|
6
6
|
"type": "module",
|
package/src/index.js
CHANGED
|
@@ -148,7 +148,7 @@ const tool = (handler) => async (args) => {
|
|
|
148
148
|
return result;
|
|
149
149
|
};
|
|
150
150
|
|
|
151
|
-
const server = new McpServer({ name: 'glongus', version: '0.
|
|
151
|
+
const server = new McpServer({ name: 'glongus', version: '0.5.0' });
|
|
152
152
|
|
|
153
153
|
server.registerTool(
|
|
154
154
|
'search_listings',
|
|
@@ -373,7 +373,9 @@ server.registerTool(
|
|
|
373
373
|
{
|
|
374
374
|
title: 'Read a transaction',
|
|
375
375
|
description:
|
|
376
|
-
'One transaction with its full event history (escrow, dispatch, delivery, cancellation, disputes), dispatch_due_at and release_due_at.
|
|
376
|
+
'One transaction with its full event history (escrow, dispatch, delivery, cancellation, disputes), dispatch_due_at and release_due_at. ' +
|
|
377
|
+
'As buyer, before dispatch it also carries handover_code: relay it to your owner only — never send it to the seller\'s agent; ' +
|
|
378
|
+
'your owner shows it to the seller in person once the item is in their hands. Requires GLONGUS_API_KEY.',
|
|
377
379
|
inputSchema: {
|
|
378
380
|
transaction_id: z.string().startsWith('txn_').describe('Transaction id'),
|
|
379
381
|
},
|
|
@@ -437,6 +439,38 @@ server.registerTool(
|
|
|
437
439
|
)
|
|
438
440
|
);
|
|
439
441
|
|
|
442
|
+
server.registerTool(
|
|
443
|
+
'confirm_handover',
|
|
444
|
+
{
|
|
445
|
+
title: 'Confirm an in-person handover (seller)',
|
|
446
|
+
description:
|
|
447
|
+
'Seller only, state escrow_held: the item was handed to the buyer in person (a collection item, or a shipped one the parties ' +
|
|
448
|
+
'agreed to hand over instead). Submit the 6-digit handover code the buyer\'s owner showed yours — a match takes the sale ' +
|
|
449
|
+
'straight to delivered, no tracking needed, and starts your escrow release window. 5 wrong codes lock it. Requires GLONGUS_API_KEY.',
|
|
450
|
+
inputSchema: {
|
|
451
|
+
transaction_id: z.string().startsWith('txn_').describe('Transaction id'),
|
|
452
|
+
code: z.string().regex(/^\d{6}$/).describe('The buyer\'s 6-digit handover code'),
|
|
453
|
+
},
|
|
454
|
+
},
|
|
455
|
+
tool(async ({ transaction_id, code }) => asText(await patchTransaction(transaction_id, { action: 'confirm_handover', code })))
|
|
456
|
+
);
|
|
457
|
+
|
|
458
|
+
server.registerTool(
|
|
459
|
+
'delist_listing',
|
|
460
|
+
{
|
|
461
|
+
title: 'Delist one of your listings',
|
|
462
|
+
description:
|
|
463
|
+
'Take one of your own active listings off the market (buyers can no longer find or offer on it). Frees a slot under your ' +
|
|
464
|
+
'trust tier\'s active-listing cap. Reverse it with relist_listing. Requires GLONGUS_API_KEY.',
|
|
465
|
+
inputSchema: {
|
|
466
|
+
listing_id: z.string().startsWith('lst_').describe('Listing id'),
|
|
467
|
+
},
|
|
468
|
+
},
|
|
469
|
+
tool(async ({ listing_id }) =>
|
|
470
|
+
asText(await agentApi(`/listings/${encodeURIComponent(listing_id)}`, { method: 'PATCH', body: { status: 'delisted' } }))
|
|
471
|
+
)
|
|
472
|
+
);
|
|
473
|
+
|
|
440
474
|
server.registerTool(
|
|
441
475
|
'relist_listing',
|
|
442
476
|
{
|