@wowok/agent-mcp 2.2.11 → 2.2.14
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/dist/index.d.ts +12 -0
- package/dist/index.js +98 -47
- package/dist/schema-query/index.d.ts +29 -0
- package/dist/schema-query/index.js +149 -0
- package/dist/schemas/account_operation.schema.json +255 -0
- package/dist/schemas/guard2file.schema.json +71 -0
- package/dist/schemas/index.json +139 -0
- package/dist/schemas/local_info_operation.schema.json +142 -0
- package/dist/schemas/local_mark_operation.schema.json +119 -0
- package/dist/schemas/machineNode2file.schema.json +71 -0
- package/dist/schemas/messenger_operation.schema.json +1393 -0
- package/dist/schemas/onchain_events.schema.json +113 -0
- package/dist/schemas/onchain_operations.schema.json +376 -0
- package/dist/schemas/onchain_operations_allocation.schema.json +914 -0
- package/dist/schemas/onchain_operations_arbitration.schema.json +1166 -0
- package/dist/schemas/onchain_operations_contact.schema.json +853 -0
- package/dist/schemas/onchain_operations_demand.schema.json +984 -0
- package/dist/schemas/onchain_operations_gen_passport.schema.json +1141 -0
- package/dist/schemas/onchain_operations_guard.schema.json +713 -0
- package/dist/schemas/onchain_operations_machine.schema.json +1347 -0
- package/dist/schemas/onchain_operations_order.schema.json +830 -0
- package/dist/schemas/onchain_operations_payment.schema.json +717 -0
- package/dist/schemas/onchain_operations_permission.schema.json +1088 -0
- package/dist/schemas/onchain_operations_personal.schema.json +1282 -0
- package/dist/schemas/onchain_operations_progress.schema.json +751 -0
- package/dist/schemas/onchain_operations_repository.schema.json +1572 -0
- package/dist/schemas/onchain_operations_reward.schema.json +955 -0
- package/dist/schemas/onchain_operations_service.schema.json +1411 -0
- package/dist/schemas/onchain_operations_treasury.schema.json +1155 -0
- package/dist/schemas/onchain_table_data.schema.json +35 -0
- package/dist/schemas/operations/guard.json +163 -0
- package/dist/schemas/operations/permission.json +22 -0
- package/dist/schemas/query_toolkit.schema.json +32 -0
- package/dist/schemas/schema_query.schema.json +33 -0
- package/dist/schemas/wip_file.schema.json +27 -0
- package/dist/schemas/wowok_buildin_info.schema.json +487 -0
- package/package.json +8 -5
|
@@ -0,0 +1,487 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://wowok.net/schemas/wowok_buildin_info.json",
|
|
4
|
+
"title": "WoWok Build-in Information",
|
|
5
|
+
"description": "Query WoWok protocol information",
|
|
6
|
+
"$ref": "#/definitions/wowok_buildin_info",
|
|
7
|
+
"definitions": {
|
|
8
|
+
"wowok_buildin_info": {
|
|
9
|
+
"anyOf": [
|
|
10
|
+
{
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"info": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"const": "constants"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"info"
|
|
20
|
+
],
|
|
21
|
+
"additionalProperties": false,
|
|
22
|
+
"description": "Constants query"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"info": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"const": "built-in permissions"
|
|
30
|
+
},
|
|
31
|
+
"filter": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"properties": {
|
|
34
|
+
"objectType": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"enum": [
|
|
37
|
+
"Permission",
|
|
38
|
+
"Repository",
|
|
39
|
+
"Arb",
|
|
40
|
+
"Arbitration",
|
|
41
|
+
"Service",
|
|
42
|
+
"Machine",
|
|
43
|
+
"Order",
|
|
44
|
+
"Progress",
|
|
45
|
+
"Payment",
|
|
46
|
+
"Treasury",
|
|
47
|
+
"Guard",
|
|
48
|
+
"Demand",
|
|
49
|
+
"Passport",
|
|
50
|
+
"Allocation",
|
|
51
|
+
"Resource",
|
|
52
|
+
"Reward",
|
|
53
|
+
"Discount",
|
|
54
|
+
"EntityRegistrar",
|
|
55
|
+
"EntityLinker",
|
|
56
|
+
"Proof",
|
|
57
|
+
"WReceivedObject",
|
|
58
|
+
"Contact",
|
|
59
|
+
"TableItem_ProgressHistory",
|
|
60
|
+
"TableItem_PermissionPerm",
|
|
61
|
+
"TableItem_DemandPresenter",
|
|
62
|
+
"TableItem_MachineNode",
|
|
63
|
+
"TableItem_TreasuryHistory",
|
|
64
|
+
"TableItem_RepositoryData",
|
|
65
|
+
"TableItem_RewardRecord",
|
|
66
|
+
"TableItem_EntityLinker",
|
|
67
|
+
"TableItem_AddressMark",
|
|
68
|
+
"TableItem_EntityRegistrar"
|
|
69
|
+
],
|
|
70
|
+
"description": "Object type filter"
|
|
71
|
+
},
|
|
72
|
+
"name": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"description": "Name filter"
|
|
75
|
+
},
|
|
76
|
+
"index": {
|
|
77
|
+
"type": "integer",
|
|
78
|
+
"description": "Index filter"
|
|
79
|
+
},
|
|
80
|
+
"description": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"description": "Description filter"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"additionalProperties": false,
|
|
86
|
+
"description": "Filter for built-in permissions"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"required": [
|
|
90
|
+
"info"
|
|
91
|
+
],
|
|
92
|
+
"additionalProperties": false,
|
|
93
|
+
"description": "Built-in permissions query"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"type": "object",
|
|
97
|
+
"properties": {
|
|
98
|
+
"info": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"const": "guard instructions"
|
|
101
|
+
},
|
|
102
|
+
"filter": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"properties": {
|
|
105
|
+
"name": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"description": "Name filter (case-insensitive partial match)"
|
|
108
|
+
},
|
|
109
|
+
"id": {
|
|
110
|
+
"type": "array",
|
|
111
|
+
"items": {
|
|
112
|
+
"type": "integer"
|
|
113
|
+
},
|
|
114
|
+
"description": "ID array filter (OperatorType | ContextType | number)"
|
|
115
|
+
},
|
|
116
|
+
"returnType": {
|
|
117
|
+
"anyOf": [
|
|
118
|
+
{
|
|
119
|
+
"anyOf": [
|
|
120
|
+
{
|
|
121
|
+
"anyOf": [
|
|
122
|
+
{
|
|
123
|
+
"type": "number",
|
|
124
|
+
"const": 0,
|
|
125
|
+
"description": "Bool (0)"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"type": "number",
|
|
129
|
+
"const": 1,
|
|
130
|
+
"description": "Address (1)"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"type": "number",
|
|
134
|
+
"const": 2,
|
|
135
|
+
"description": "String (2)"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"type": "number",
|
|
139
|
+
"const": 3,
|
|
140
|
+
"description": "U8 (3)"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"type": "number",
|
|
144
|
+
"const": 4,
|
|
145
|
+
"description": "U16 (4)"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"type": "number",
|
|
149
|
+
"const": 5,
|
|
150
|
+
"description": "U32 (5)"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"type": "number",
|
|
154
|
+
"const": 6,
|
|
155
|
+
"description": "U64 (6)"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"type": "number",
|
|
159
|
+
"const": 7,
|
|
160
|
+
"description": "U128 (7)"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"type": "number",
|
|
164
|
+
"const": 8,
|
|
165
|
+
"description": "U256 (8)"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"type": "number",
|
|
169
|
+
"const": 9,
|
|
170
|
+
"description": "VecBool (9)"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"type": "number",
|
|
174
|
+
"const": 10,
|
|
175
|
+
"description": "VecAddress (10)"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"type": "number",
|
|
179
|
+
"const": 11,
|
|
180
|
+
"description": "VecString (11)"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"type": "number",
|
|
184
|
+
"const": 12,
|
|
185
|
+
"description": "VecU8 (12)"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"type": "number",
|
|
189
|
+
"const": 13,
|
|
190
|
+
"description": "VecU16 (13)"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"type": "number",
|
|
194
|
+
"const": 14,
|
|
195
|
+
"description": "VecU32 (14)"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"type": "number",
|
|
199
|
+
"const": 15,
|
|
200
|
+
"description": "VecU64 (15)"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"type": "number",
|
|
204
|
+
"const": 16,
|
|
205
|
+
"description": "VecU128 (16)"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"type": "number",
|
|
209
|
+
"const": 17,
|
|
210
|
+
"description": "VecU256 (17)"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"type": "number",
|
|
214
|
+
"const": 18,
|
|
215
|
+
"description": "VecVecU8 (18)"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"type": "string",
|
|
219
|
+
"const": "Bool",
|
|
220
|
+
"description": "Bool"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"type": "string",
|
|
224
|
+
"const": "Address",
|
|
225
|
+
"description": "Address"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"type": "string",
|
|
229
|
+
"const": "String",
|
|
230
|
+
"description": "String"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"type": "string",
|
|
234
|
+
"const": "U8",
|
|
235
|
+
"description": "U8"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"type": "string",
|
|
239
|
+
"const": "U16",
|
|
240
|
+
"description": "U16"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"type": "string",
|
|
244
|
+
"const": "U32",
|
|
245
|
+
"description": "U32"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"type": "string",
|
|
249
|
+
"const": "U64",
|
|
250
|
+
"description": "U64"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"type": "string",
|
|
254
|
+
"const": "U128",
|
|
255
|
+
"description": "U128"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"type": "string",
|
|
259
|
+
"const": "U256",
|
|
260
|
+
"description": "U256"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"type": "string",
|
|
264
|
+
"const": "VecBool",
|
|
265
|
+
"description": "VecBool"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"type": "string",
|
|
269
|
+
"const": "VecAddress",
|
|
270
|
+
"description": "VecAddress"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"type": "string",
|
|
274
|
+
"const": "VecString",
|
|
275
|
+
"description": "VecString"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"type": "string",
|
|
279
|
+
"const": "VecU8",
|
|
280
|
+
"description": "VecU8"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"type": "string",
|
|
284
|
+
"const": "VecU16",
|
|
285
|
+
"description": "VecU16"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"type": "string",
|
|
289
|
+
"const": "VecU32",
|
|
290
|
+
"description": "VecU32"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"type": "string",
|
|
294
|
+
"const": "VecU64",
|
|
295
|
+
"description": "VecU64"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"type": "string",
|
|
299
|
+
"const": "VecU128",
|
|
300
|
+
"description": "VecU128"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"type": "string",
|
|
304
|
+
"const": "VecU256",
|
|
305
|
+
"description": "VecU256"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"type": "string",
|
|
309
|
+
"const": "VecVecU8",
|
|
310
|
+
"description": "VecVecU8"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"type": "string",
|
|
314
|
+
"const": "bool",
|
|
315
|
+
"description": "bool"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"type": "string",
|
|
319
|
+
"const": "address",
|
|
320
|
+
"description": "address"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"type": "string",
|
|
324
|
+
"const": "string",
|
|
325
|
+
"description": "string"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"type": "string",
|
|
329
|
+
"const": "u8",
|
|
330
|
+
"description": "u8"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"type": "string",
|
|
334
|
+
"const": "u16",
|
|
335
|
+
"description": "u16"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"type": "string",
|
|
339
|
+
"const": "u32",
|
|
340
|
+
"description": "u32"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"type": "string",
|
|
344
|
+
"const": "u64",
|
|
345
|
+
"description": "u64"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"type": "string",
|
|
349
|
+
"const": "u128",
|
|
350
|
+
"description": "u128"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"type": "string",
|
|
354
|
+
"const": "u256",
|
|
355
|
+
"description": "u256"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"type": "string",
|
|
359
|
+
"const": "vecbool",
|
|
360
|
+
"description": "vecbool"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"type": "string",
|
|
364
|
+
"const": "vecaddress",
|
|
365
|
+
"description": "vecaddress"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"type": "string",
|
|
369
|
+
"const": "vecstring",
|
|
370
|
+
"description": "vecstring"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"type": "string",
|
|
374
|
+
"const": "vecu8",
|
|
375
|
+
"description": "vecu8"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"type": "string",
|
|
379
|
+
"const": "vecu16",
|
|
380
|
+
"description": "vecu16"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"type": "string",
|
|
384
|
+
"const": "vecu32",
|
|
385
|
+
"description": "vecu32"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"type": "string",
|
|
389
|
+
"const": "vecu64",
|
|
390
|
+
"description": "vecu64"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"type": "string",
|
|
394
|
+
"const": "vecu128",
|
|
395
|
+
"description": "vecu128"
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"type": "string",
|
|
399
|
+
"const": "vecu256",
|
|
400
|
+
"description": "vecu256"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"type": "string",
|
|
404
|
+
"const": "vecvecu8",
|
|
405
|
+
"description": "vecvecu8"
|
|
406
|
+
}
|
|
407
|
+
],
|
|
408
|
+
"description": "User available value type (number or string, e.g., 6 or 'U64' or 'u64')"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"type": "number",
|
|
412
|
+
"const": 19,
|
|
413
|
+
"description": "Value (19)"
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
"description": "User available value type (number or string, e.g., 6 or 'U64' or 'u64')"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"type": "string",
|
|
420
|
+
"const": "Value",
|
|
421
|
+
"description": "Value"
|
|
422
|
+
}
|
|
423
|
+
],
|
|
424
|
+
"description": "Return type filter"
|
|
425
|
+
},
|
|
426
|
+
"paramCount": {
|
|
427
|
+
"type": "integer",
|
|
428
|
+
"description": "Parameter count filter"
|
|
429
|
+
},
|
|
430
|
+
"scope": {
|
|
431
|
+
"type": "string",
|
|
432
|
+
"enum": [
|
|
433
|
+
"instruct",
|
|
434
|
+
"object query",
|
|
435
|
+
"all"
|
|
436
|
+
],
|
|
437
|
+
"description": "Scope filter: instruct, object query, or all",
|
|
438
|
+
"default": "all"
|
|
439
|
+
},
|
|
440
|
+
"objectType": {
|
|
441
|
+
"$ref": "#/definitions/wowok_buildin_info/anyOf/1/properties/filter/properties/objectType",
|
|
442
|
+
"description": "Object type filter (only for object query scope)"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
"additionalProperties": false,
|
|
446
|
+
"description": "Filter for guard instructions"
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
"required": [
|
|
450
|
+
"info"
|
|
451
|
+
],
|
|
452
|
+
"additionalProperties": false,
|
|
453
|
+
"description": "Guard instructions and wowok object queries"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"type": "object",
|
|
457
|
+
"properties": {
|
|
458
|
+
"info": {
|
|
459
|
+
"type": "string",
|
|
460
|
+
"const": "current network"
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
"required": [
|
|
464
|
+
"info"
|
|
465
|
+
],
|
|
466
|
+
"additionalProperties": false,
|
|
467
|
+
"description": "Current network entrypoint"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"type": "object",
|
|
471
|
+
"properties": {
|
|
472
|
+
"info": {
|
|
473
|
+
"type": "string",
|
|
474
|
+
"const": "value types"
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
"required": [
|
|
478
|
+
"info"
|
|
479
|
+
],
|
|
480
|
+
"additionalProperties": false,
|
|
481
|
+
"description": "Value types query - returns all supported value types with their numeric and string representations"
|
|
482
|
+
}
|
|
483
|
+
],
|
|
484
|
+
"description": "WoWok Build-in infomation query"
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wowok/agent-mcp",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.14",
|
|
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",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
11
|
+
"docs",
|
|
11
12
|
"README.md"
|
|
12
13
|
],
|
|
13
14
|
"bin": {
|
|
@@ -30,19 +31,21 @@
|
|
|
30
31
|
"license": "Apache-2.0",
|
|
31
32
|
"dependencies": {
|
|
32
33
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
34
|
+
"@wowok/wowok": "2.2.13",
|
|
33
35
|
"lodash": "^4.18.1",
|
|
34
|
-
"@wowok/wowok": "^2.2.12",
|
|
35
36
|
"zod": "^3.25.76"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
|
-
"@types/node": "^22.19.
|
|
39
|
+
"@types/node": "^22.19.19",
|
|
39
40
|
"tsx": "^4.21.0",
|
|
40
|
-
"typescript": "^5.8.2"
|
|
41
|
+
"typescript": "^5.8.2",
|
|
42
|
+
"zod-to-json-schema": "^3.25.2"
|
|
41
43
|
},
|
|
42
44
|
"scripts": {
|
|
43
45
|
"clean": "rm -rf dist",
|
|
44
46
|
"build": "tsc",
|
|
45
47
|
"watch": "tsc --watch",
|
|
46
|
-
"start": "tsx src/index.ts"
|
|
48
|
+
"start": "tsx src/index.ts",
|
|
49
|
+
"generate:schemas": "tsx scripts/generate-json-schemas.ts"
|
|
47
50
|
}
|
|
48
51
|
}
|