@wowok/agent-mcp 2.2.21 → 2.3.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 -3
- package/dist/index.d.ts +86 -126
- package/dist/index.js +4 -1
- package/dist/schema/call/allocation.d.ts +1 -1
- package/dist/schema/call/arbitration.d.ts +1 -1
- package/dist/schema/call/arbitration.js +1 -1
- package/dist/schema/call/base.d.ts +830 -830
- package/dist/schema/call/contact.d.ts +1 -1
- package/dist/schema/call/demand.d.ts +1 -1
- package/dist/schema/call/demand.js +1 -1
- package/dist/schema/call/guard.d.ts +3 -3
- package/dist/schema/call/machine.d.ts +4 -4
- package/dist/schema/call/machine.js +1 -1
- package/dist/schema/call/order.d.ts +15 -15
- package/dist/schema/call/order.js +1 -1
- package/dist/schema/call/payment.d.ts +1 -1
- package/dist/schema/call/permission.d.ts +1 -1
- package/dist/schema/call/permission.js +1 -1
- package/dist/schema/call/personal.d.ts +1 -1
- package/dist/schema/call/progress.d.ts +1 -1
- package/dist/schema/call/proof.d.ts +13 -98
- package/dist/schema/call/proof.js +3 -3
- package/dist/schema/call/repository.d.ts +79 -79
- package/dist/schema/call/repository.js +4 -3
- package/dist/schema/call/reward.d.ts +1 -1
- package/dist/schema/call/reward.js +1 -1
- package/dist/schema/call/service.d.ts +46 -46
- package/dist/schema/call/service.js +3 -3
- package/dist/schema/call/treasury.d.ts +9 -69
- package/dist/schema/call/treasury.js +1 -1
- package/dist/schema/common/index.d.ts +46 -46
- package/dist/schema/common/index.js +5 -3
- package/dist/schema/local/index.d.ts +1906 -1906
- package/dist/schema/local/index.js +12 -12
- package/dist/schema/local/wip.d.ts +16 -16
- package/dist/schema/local/wip.js +2 -2
- package/dist/schema/messenger/index.d.ts +1 -1
- package/dist/schema/query/index.d.ts +6918 -6918
- package/dist/schema/query/index.js +6 -6
- package/dist/schemas/account_operation.schema.json +4 -2
- package/dist/schemas/guard2file.schema.json +2 -1
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/machineNode2file.schema.json +2 -1
- package/dist/schemas/messenger_operation.schema.json +2 -1
- package/dist/schemas/onchain_events.schema.json +6 -2
- package/dist/schemas/onchain_operations_allocation.schema.json +2 -1
- package/dist/schemas/onchain_operations_arbitration.schema.json +3 -2
- package/dist/schemas/onchain_operations_contact.schema.json +2 -1
- package/dist/schemas/onchain_operations_demand.schema.json +3 -2
- package/dist/schemas/onchain_operations_gen_passport.schema.json +4 -2
- package/dist/schemas/onchain_operations_guard.schema.json +2 -1
- package/dist/schemas/onchain_operations_machine.schema.json +10 -5
- package/dist/schemas/onchain_operations_order.schema.json +6 -5
- package/dist/schemas/onchain_operations_payment.schema.json +2 -1
- package/dist/schemas/onchain_operations_permission.schema.json +3 -2
- package/dist/schemas/onchain_operations_personal.schema.json +2 -1
- package/dist/schemas/onchain_operations_progress.schema.json +2 -1
- package/dist/schemas/onchain_operations_repository.schema.json +9 -5
- package/dist/schemas/onchain_operations_reward.schema.json +3 -2
- package/dist/schemas/onchain_operations_service.schema.json +6 -2
- package/dist/schemas/onchain_operations_treasury.schema.json +4 -3
- package/package.json +2 -2
|
@@ -121,7 +121,7 @@ export const ObjectOrderSchema = ObjectBaseSchema.extend({
|
|
|
121
121
|
agent: z.array(z.string()).describe("Agent ID list. Agents handle all order operations except payment collection."),
|
|
122
122
|
allocation: z.union([z.string(), z.null()]).describe("Order amount allocation object ID"),
|
|
123
123
|
claimed_by: z.union([z.string(), z.null()]).describe("Order dispute object ID that has claimed order arbitration amount."),
|
|
124
|
-
required_info: z.string().describe("Contact object ID (recipient) or WTS Proof object (delivery proof) that information has been delivered via Wowok Messenger."),
|
|
124
|
+
required_info: z.union([z.string(), z.null()]).describe("Contact object ID (recipient) or WTS Proof object (delivery proof) that information has been delivered via Wowok Messenger."),
|
|
125
125
|
time: z.union([z.string(), z.number()]).describe("Order creation time"),
|
|
126
126
|
});
|
|
127
127
|
export const NamedOperatorSchema = z.object({
|
|
@@ -208,7 +208,7 @@ export const ObjectServiceSchema = ObjectBaseSchema.extend({
|
|
|
208
208
|
arbitrations: z.array(z.string()).describe("List of Arbitration objects supported by service. When order user needs arbitration, they can apply for arbitration with any Arbitration object in the list."),
|
|
209
209
|
compensation_fund: BalanceTypeSchema.describe("Compensation fund pool for arbitration results. Order users can receive compensation from this fund based on arbitration results."),
|
|
210
210
|
paused_time: z.union([z.number(), z.null()]).describe("Service purchase pause time. If not paused, it is null."),
|
|
211
|
-
|
|
211
|
+
setting_lock_duration: z.union([z.string(), z.number(), z.bigint()]).describe("Lock duration for critical settings. After Service is published, modifications to 'order_allocators', 'rewards', 'arbitrations', 'machine', and withdrawal from 'compensation_fund' must exceed the 'setting_lock_duration' lock time."),
|
|
212
212
|
order_allocators: z.union([AllocatorsSchema, z.null()]).describe("Order fund allocator list."),
|
|
213
213
|
rewards: z.array(z.string()).describe("Reward object list"),
|
|
214
214
|
um: z.union([z.string(), z.null()]).describe("Contact object"),
|
|
@@ -766,7 +766,7 @@ export const ObjectPaymentSchema = ObjectBaseSchema.extend({
|
|
|
766
766
|
amount: BalanceTypeSchema,
|
|
767
767
|
})).describe("Payment record list"),
|
|
768
768
|
amount: BalanceTypeSchema.describe("Payment amount"),
|
|
769
|
-
time: z.string().describe("Payment time"),
|
|
769
|
+
time: z.union([z.string(), z.number()]).describe("Payment time"),
|
|
770
770
|
from_object: z.union([z.string(), z.null()]).optional().describe("Payment source object ID"),
|
|
771
771
|
signer: z.string().describe("Payment signer ID"),
|
|
772
772
|
info: PaymentInfoSchema,
|
|
@@ -923,7 +923,7 @@ export const TableAnswerSchema = z.object({
|
|
|
923
923
|
items: z.array(TableAnswerItemSchema),
|
|
924
924
|
nextCursor: z.union([z.string(), z.null()]),
|
|
925
925
|
hasNextPage: z.boolean(),
|
|
926
|
-
cache_expire: z.union([z.string(), z.
|
|
926
|
+
cache_expire: z.union([z.string(), z.null()]).optional(),
|
|
927
927
|
});
|
|
928
928
|
export const QueryTableItem_byAddressSchema = QueryEnvSchema.extend({
|
|
929
929
|
parent: z.string().describe("Parent object ID of the data table to query"),
|
|
@@ -955,7 +955,7 @@ export const EventTypeSchema = z.union([
|
|
|
955
955
|
z.string(),
|
|
956
956
|
]).describe("Event type. Supports Wowok built-in types (ArbEvent, NewOrderEvent, ProgressEvent, DemandPresentEvent, DemandFeedbackEvent, NewEntityEvent) or any string for generic MoveEventType (e.g., '0x2::coin::CoinEvent')");
|
|
957
957
|
export const EventCursorSchema = z.object({
|
|
958
|
-
eventSeq: z.string().describe("Event sequence number"),
|
|
958
|
+
eventSeq: z.union([z.string(), z.number()]).describe("Event sequence number"),
|
|
959
959
|
txDigest: z.string().describe("Transaction digest"),
|
|
960
960
|
}).describe("Event cursor");
|
|
961
961
|
export const EventBaseSchema = z.object({
|
|
@@ -963,7 +963,7 @@ export const EventBaseSchema = z.object({
|
|
|
963
963
|
sender: z.string().describe("Event sender ID"),
|
|
964
964
|
type: EventTypeSchema,
|
|
965
965
|
type_raw: z.string().describe("Raw event type"),
|
|
966
|
-
time: z.string().describe("Event occurrence time"),
|
|
966
|
+
time: z.union([z.string(), z.number()]).describe("Event occurrence time"),
|
|
967
967
|
parsedJson_raw: z.any().optional().describe("Raw parsed JSON data from the event"),
|
|
968
968
|
}).describe("Event base information");
|
|
969
969
|
export const ArbEventSchema = EventBaseSchema.extend({
|
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
"type": "string",
|
|
46
46
|
"enum": [
|
|
47
47
|
"localnet",
|
|
48
|
-
"testnet"
|
|
48
|
+
"testnet",
|
|
49
|
+
"devnet"
|
|
49
50
|
],
|
|
50
51
|
"description": "Network entrypoint for Faucet: Specifies which network the operation occurs on"
|
|
51
52
|
}
|
|
@@ -144,7 +145,8 @@
|
|
|
144
145
|
"type": "string",
|
|
145
146
|
"enum": [
|
|
146
147
|
"localnet",
|
|
147
|
-
"testnet"
|
|
148
|
+
"testnet",
|
|
149
|
+
"devnet"
|
|
148
150
|
],
|
|
149
151
|
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
150
152
|
}
|
package/dist/schemas/index.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"title": "WoWok MCP Schema Index",
|
|
4
4
|
"description": "Index of all available JSON schemas for WoWok MCP tools",
|
|
5
|
-
"generatedAt": "2026-
|
|
5
|
+
"generatedAt": "2026-06-07T12:46:41.764Z",
|
|
6
6
|
"tools": [
|
|
7
7
|
{
|
|
8
8
|
"name": "onchain_operations",
|
|
@@ -46,7 +46,10 @@
|
|
|
46
46
|
"type": "object",
|
|
47
47
|
"properties": {
|
|
48
48
|
"eventSeq": {
|
|
49
|
-
"type":
|
|
49
|
+
"type": [
|
|
50
|
+
"string",
|
|
51
|
+
"number"
|
|
52
|
+
],
|
|
50
53
|
"description": "Event sequence number"
|
|
51
54
|
},
|
|
52
55
|
"txDigest": {
|
|
@@ -98,7 +101,8 @@
|
|
|
98
101
|
"type": "string",
|
|
99
102
|
"enum": [
|
|
100
103
|
"localnet",
|
|
101
|
-
"testnet"
|
|
104
|
+
"testnet",
|
|
105
|
+
"devnet"
|
|
102
106
|
],
|
|
103
107
|
"description": "Network to query: 'mainnet' or 'testnet'. Uses default network if not specified"
|
|
104
108
|
}
|
|
@@ -610,7 +610,7 @@
|
|
|
610
610
|
"type": "null"
|
|
611
611
|
}
|
|
612
612
|
],
|
|
613
|
-
"description": "Contact object."
|
|
613
|
+
"description": "Contact object ID or name."
|
|
614
614
|
}
|
|
615
615
|
},
|
|
616
616
|
"required": [
|
|
@@ -642,7 +642,8 @@
|
|
|
642
642
|
"type": "string",
|
|
643
643
|
"enum": [
|
|
644
644
|
"localnet",
|
|
645
|
-
"testnet"
|
|
645
|
+
"testnet",
|
|
646
|
+
"devnet"
|
|
646
647
|
],
|
|
647
648
|
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
648
649
|
},
|
|
@@ -428,7 +428,7 @@
|
|
|
428
428
|
"type": "null"
|
|
429
429
|
}
|
|
430
430
|
],
|
|
431
|
-
"description": "Contact object."
|
|
431
|
+
"description": "Contact object ID or name."
|
|
432
432
|
}
|
|
433
433
|
},
|
|
434
434
|
"required": [
|
|
@@ -460,7 +460,8 @@
|
|
|
460
460
|
"type": "string",
|
|
461
461
|
"enum": [
|
|
462
462
|
"localnet",
|
|
463
|
-
"testnet"
|
|
463
|
+
"testnet",
|
|
464
|
+
"devnet"
|
|
464
465
|
],
|
|
465
466
|
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
466
467
|
},
|
|
@@ -575,7 +575,8 @@
|
|
|
575
575
|
"type": "string",
|
|
576
576
|
"enum": [
|
|
577
577
|
"localnet",
|
|
578
|
-
"testnet"
|
|
578
|
+
"testnet",
|
|
579
|
+
"devnet"
|
|
579
580
|
],
|
|
580
581
|
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
581
582
|
},
|
|
@@ -617,7 +618,8 @@
|
|
|
617
618
|
"type": "string",
|
|
618
619
|
"enum": [
|
|
619
620
|
"localnet",
|
|
620
|
-
"testnet"
|
|
621
|
+
"testnet",
|
|
622
|
+
"devnet"
|
|
621
623
|
],
|
|
622
624
|
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
623
625
|
},
|
|
@@ -748,11 +748,15 @@
|
|
|
748
748
|
"description": "Unwrap CoinWrapper objects and other objects received by this object and send them to the owner of its Permission object."
|
|
749
749
|
},
|
|
750
750
|
"um": {
|
|
751
|
-
"
|
|
752
|
-
|
|
753
|
-
|
|
751
|
+
"anyOf": [
|
|
752
|
+
{
|
|
753
|
+
"$ref": "#/definitions/data/properties/progress_new/properties/task/anyOf/0"
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
"type": "null"
|
|
757
|
+
}
|
|
754
758
|
],
|
|
755
|
-
"description": "Contact object."
|
|
759
|
+
"description": "Contact object ID or name."
|
|
756
760
|
}
|
|
757
761
|
},
|
|
758
762
|
"required": [
|
|
@@ -784,7 +788,8 @@
|
|
|
784
788
|
"type": "string",
|
|
785
789
|
"enum": [
|
|
786
790
|
"localnet",
|
|
787
|
-
"testnet"
|
|
791
|
+
"testnet",
|
|
792
|
+
"devnet"
|
|
788
793
|
],
|
|
789
794
|
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
790
795
|
},
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"type": "string",
|
|
34
34
|
"description": "Order object ID or name."
|
|
35
35
|
},
|
|
36
|
-
"
|
|
36
|
+
"agent": {
|
|
37
37
|
"type": "object",
|
|
38
38
|
"properties": {
|
|
39
39
|
"entities": {
|
|
@@ -63,12 +63,12 @@
|
|
|
63
63
|
"entities"
|
|
64
64
|
],
|
|
65
65
|
"additionalProperties": false,
|
|
66
|
-
"description": "Order
|
|
66
|
+
"description": "Order agent. Agents can operate the order, such as canceling the order, modifying the order status, etc.; but cannot receive the funds received by the order."
|
|
67
67
|
},
|
|
68
68
|
"required_info": {
|
|
69
69
|
"anyOf": [
|
|
70
70
|
{
|
|
71
|
-
"$ref": "#/definitions/data/properties/
|
|
71
|
+
"$ref": "#/definitions/data/properties/agent/properties/entities/items/properties/name_or_address"
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
"type": "null"
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
"description": "Unwrap CoinWrapper objects or other objects received by the order and transfer them to the order owner"
|
|
274
274
|
},
|
|
275
275
|
"transfer_to": {
|
|
276
|
-
"$ref": "#/definitions/data/properties/
|
|
276
|
+
"$ref": "#/definitions/data/properties/agent/properties/entities/items",
|
|
277
277
|
"description": "Set new owner of the order. Requires order owner permission to set."
|
|
278
278
|
}
|
|
279
279
|
},
|
|
@@ -306,7 +306,8 @@
|
|
|
306
306
|
"type": "string",
|
|
307
307
|
"enum": [
|
|
308
308
|
"localnet",
|
|
309
|
-
"testnet"
|
|
309
|
+
"testnet",
|
|
310
|
+
"devnet"
|
|
310
311
|
],
|
|
311
312
|
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
312
313
|
},
|
|
@@ -535,7 +535,7 @@
|
|
|
535
535
|
"type": "null"
|
|
536
536
|
}
|
|
537
537
|
],
|
|
538
|
-
"description": "Contact object."
|
|
538
|
+
"description": "Contact object ID or name."
|
|
539
539
|
}
|
|
540
540
|
},
|
|
541
541
|
"additionalProperties": false,
|
|
@@ -564,7 +564,8 @@
|
|
|
564
564
|
"type": "string",
|
|
565
565
|
"enum": [
|
|
566
566
|
"localnet",
|
|
567
|
-
"testnet"
|
|
567
|
+
"testnet",
|
|
568
|
+
"devnet"
|
|
568
569
|
],
|
|
569
570
|
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
570
571
|
},
|
|
@@ -751,13 +751,16 @@
|
|
|
751
751
|
"id": {
|
|
752
752
|
"anyOf": [
|
|
753
753
|
{
|
|
754
|
-
"
|
|
754
|
+
"type": "string"
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"type": "number"
|
|
755
758
|
},
|
|
756
759
|
{
|
|
757
|
-
"
|
|
760
|
+
"$ref": "#/definitions/data/properties/data_add/anyOf/0/properties/data/anyOf/0/anyOf/1/anyOf/0"
|
|
758
761
|
}
|
|
759
762
|
],
|
|
760
|
-
"description": "Data item ID.
|
|
763
|
+
"description": "Data item ID. Supports: plain string(bigint), number (such as timestamp), or AccountOrMark_Address format."
|
|
761
764
|
},
|
|
762
765
|
"data": {
|
|
763
766
|
"$ref": "#/definitions/data/properties/data_add/anyOf/0/properties/data"
|
|
@@ -1016,7 +1019,7 @@
|
|
|
1016
1019
|
"type": "null"
|
|
1017
1020
|
}
|
|
1018
1021
|
],
|
|
1019
|
-
"description": "Contact object."
|
|
1022
|
+
"description": "Contact object ID or name."
|
|
1020
1023
|
}
|
|
1021
1024
|
},
|
|
1022
1025
|
"required": [
|
|
@@ -1048,7 +1051,8 @@
|
|
|
1048
1051
|
"type": "string",
|
|
1049
1052
|
"enum": [
|
|
1050
1053
|
"localnet",
|
|
1051
|
-
"testnet"
|
|
1054
|
+
"testnet",
|
|
1055
|
+
"devnet"
|
|
1052
1056
|
],
|
|
1053
1057
|
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
1054
1058
|
},
|
|
@@ -399,7 +399,7 @@
|
|
|
399
399
|
"type": "null"
|
|
400
400
|
}
|
|
401
401
|
],
|
|
402
|
-
"description": "Contact object."
|
|
402
|
+
"description": "Contact object ID or name."
|
|
403
403
|
}
|
|
404
404
|
},
|
|
405
405
|
"required": [
|
|
@@ -431,7 +431,8 @@
|
|
|
431
431
|
"type": "string",
|
|
432
432
|
"enum": [
|
|
433
433
|
"localnet",
|
|
434
|
-
"testnet"
|
|
434
|
+
"testnet",
|
|
435
|
+
"devnet"
|
|
435
436
|
],
|
|
436
437
|
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
437
438
|
},
|
|
@@ -553,7 +553,10 @@
|
|
|
553
553
|
"name",
|
|
554
554
|
"discount_type",
|
|
555
555
|
"discount_value",
|
|
556
|
-
"
|
|
556
|
+
"time_ms_end",
|
|
557
|
+
"count",
|
|
558
|
+
"recipient",
|
|
559
|
+
"transferable"
|
|
557
560
|
],
|
|
558
561
|
"additionalProperties": false,
|
|
559
562
|
"description": "Issue discount."
|
|
@@ -887,7 +890,8 @@
|
|
|
887
890
|
"type": "string",
|
|
888
891
|
"enum": [
|
|
889
892
|
"localnet",
|
|
890
|
-
"testnet"
|
|
893
|
+
"testnet",
|
|
894
|
+
"devnet"
|
|
891
895
|
],
|
|
892
896
|
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
893
897
|
},
|
|
@@ -593,13 +593,13 @@
|
|
|
593
593
|
"um": {
|
|
594
594
|
"anyOf": [
|
|
595
595
|
{
|
|
596
|
-
"$ref": "#/definitions/data/properties/
|
|
596
|
+
"$ref": "#/definitions/data/properties/withdraw/properties/recipient/properties/name_or_address"
|
|
597
597
|
},
|
|
598
598
|
{
|
|
599
599
|
"type": "null"
|
|
600
600
|
}
|
|
601
601
|
],
|
|
602
|
-
"description": "Contact object."
|
|
602
|
+
"description": "Contact object ID or name."
|
|
603
603
|
}
|
|
604
604
|
},
|
|
605
605
|
"required": [
|
|
@@ -631,7 +631,8 @@
|
|
|
631
631
|
"type": "string",
|
|
632
632
|
"enum": [
|
|
633
633
|
"localnet",
|
|
634
|
-
"testnet"
|
|
634
|
+
"testnet",
|
|
635
|
+
"devnet"
|
|
635
636
|
],
|
|
636
637
|
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
637
638
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wowok/agent-mcp",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Making It Easy for AI Agents to Communicate, Collaborate, Trade, and Trust.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"license": "Apache-2.0",
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
40
|
-
"@wowok/wowok": "2.
|
|
40
|
+
"@wowok/wowok": "2.3.0",
|
|
41
41
|
"lodash": "^4.18.1",
|
|
42
42
|
"zod": "^3.25.76"
|
|
43
43
|
},
|