@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.
Files changed (37) hide show
  1. package/dist/index.d.ts +12 -0
  2. package/dist/index.js +98 -47
  3. package/dist/schema-query/index.d.ts +29 -0
  4. package/dist/schema-query/index.js +149 -0
  5. package/dist/schemas/account_operation.schema.json +255 -0
  6. package/dist/schemas/guard2file.schema.json +71 -0
  7. package/dist/schemas/index.json +139 -0
  8. package/dist/schemas/local_info_operation.schema.json +142 -0
  9. package/dist/schemas/local_mark_operation.schema.json +119 -0
  10. package/dist/schemas/machineNode2file.schema.json +71 -0
  11. package/dist/schemas/messenger_operation.schema.json +1393 -0
  12. package/dist/schemas/onchain_events.schema.json +113 -0
  13. package/dist/schemas/onchain_operations.schema.json +376 -0
  14. package/dist/schemas/onchain_operations_allocation.schema.json +914 -0
  15. package/dist/schemas/onchain_operations_arbitration.schema.json +1166 -0
  16. package/dist/schemas/onchain_operations_contact.schema.json +853 -0
  17. package/dist/schemas/onchain_operations_demand.schema.json +984 -0
  18. package/dist/schemas/onchain_operations_gen_passport.schema.json +1141 -0
  19. package/dist/schemas/onchain_operations_guard.schema.json +713 -0
  20. package/dist/schemas/onchain_operations_machine.schema.json +1347 -0
  21. package/dist/schemas/onchain_operations_order.schema.json +830 -0
  22. package/dist/schemas/onchain_operations_payment.schema.json +717 -0
  23. package/dist/schemas/onchain_operations_permission.schema.json +1088 -0
  24. package/dist/schemas/onchain_operations_personal.schema.json +1282 -0
  25. package/dist/schemas/onchain_operations_progress.schema.json +751 -0
  26. package/dist/schemas/onchain_operations_repository.schema.json +1572 -0
  27. package/dist/schemas/onchain_operations_reward.schema.json +955 -0
  28. package/dist/schemas/onchain_operations_service.schema.json +1411 -0
  29. package/dist/schemas/onchain_operations_treasury.schema.json +1155 -0
  30. package/dist/schemas/onchain_table_data.schema.json +35 -0
  31. package/dist/schemas/operations/guard.json +163 -0
  32. package/dist/schemas/operations/permission.json +22 -0
  33. package/dist/schemas/query_toolkit.schema.json +32 -0
  34. package/dist/schemas/schema_query.schema.json +33 -0
  35. package/dist/schemas/wip_file.schema.json +27 -0
  36. package/dist/schemas/wowok_buildin_info.schema.json +487 -0
  37. package/package.json +8 -5
@@ -0,0 +1,255 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://wowok.net/schemas/account_operation.json",
4
+ "title": "Account Operations",
5
+ "description": "Manage WoWok accounts locally: generate, suspend, resume, faucet-test, operate assets, sign data",
6
+ "$ref": "#/definitions/account_operation",
7
+ "definitions": {
8
+ "account_operation": {
9
+ "type": "object",
10
+ "properties": {
11
+ "gen": {
12
+ "type": "object",
13
+ "properties": {
14
+ "name": {
15
+ "type": "string",
16
+ "description": "Account name (max 64 characters). Use empty string '' or omit for the default account."
17
+ },
18
+ "replaceExistName": {
19
+ "type": "boolean",
20
+ "description": "If true, existing account with the same name will lose the name; if false (default), throw error when name exists"
21
+ },
22
+ "m": {
23
+ "anyOf": [
24
+ {
25
+ "$ref": "#/definitions/account_operation/properties/gen/properties/name"
26
+ },
27
+ {
28
+ "type": "null"
29
+ }
30
+ ],
31
+ "description": "Messenger name to enable messenger for this account (max 64 characters). If null, disable messenger. Omit to leave messenger unchanged."
32
+ }
33
+ },
34
+ "additionalProperties": false,
35
+ "description": "Generate new account"
36
+ },
37
+ "faucet": {
38
+ "type": "object",
39
+ "properties": {
40
+ "name_or_address": {
41
+ "type": "string",
42
+ "description": "Account name or address. Use empty string '' for the default account. Defaults to '' if omitted."
43
+ },
44
+ "network": {
45
+ "type": "string",
46
+ "enum": [
47
+ "localnet",
48
+ "testnet"
49
+ ],
50
+ "description": "Network entrypoint for Faucet: Specifies which network the operation occurs on"
51
+ }
52
+ },
53
+ "required": [
54
+ "network"
55
+ ],
56
+ "additionalProperties": false,
57
+ "description": "Distribute test coins from faucet to the specified account"
58
+ },
59
+ "suspend": {
60
+ "type": "object",
61
+ "properties": {
62
+ "name_or_address": {
63
+ "$ref": "#/definitions/account_operation/properties/faucet/properties/name_or_address",
64
+ "description": "Account name or address. Use empty string '' for the default account. Defaults to '' if omitted."
65
+ }
66
+ },
67
+ "additionalProperties": false,
68
+ "description": "Remove account from active account list (cannot sign transactions), and delete its name"
69
+ },
70
+ "resume": {
71
+ "type": "object",
72
+ "properties": {
73
+ "address": {
74
+ "type": "string",
75
+ "description": "Valid ID: 0x prefix + 64 hex characters, or builtin ID (0x5-0x9, @0xaaa, @0xaab, @0x403, @0xacc, @0xc)"
76
+ },
77
+ "name": {
78
+ "$ref": "#/definitions/account_operation/properties/gen/properties/name",
79
+ "description": "New name for the resumed account. Omit to leave unnamed."
80
+ }
81
+ },
82
+ "required": [
83
+ "address"
84
+ ],
85
+ "additionalProperties": false,
86
+ "description": "Add account back to active account list"
87
+ },
88
+ "rename": {
89
+ "type": "object",
90
+ "properties": {
91
+ "name_or_address": {
92
+ "$ref": "#/definitions/account_operation/properties/faucet/properties/name_or_address",
93
+ "description": "Source account name or address. Use empty string '' for the default account. Defaults to '' if omitted. Can be a name or address."
94
+ },
95
+ "new_name": {
96
+ "$ref": "#/definitions/account_operation/properties/gen/properties/name",
97
+ "description": "New account name (max 64 characters). Must be a name (not an address)."
98
+ }
99
+ },
100
+ "required": [
101
+ "new_name"
102
+ ],
103
+ "additionalProperties": false,
104
+ "description": "Rename account. name_or_address can be name or address, new_name must be a name."
105
+ },
106
+ "swap_name": {
107
+ "type": "object",
108
+ "properties": {
109
+ "name1": {
110
+ "$ref": "#/definitions/account_operation/properties/gen/properties/name",
111
+ "description": "First account name. Use empty string '' for the default account."
112
+ },
113
+ "name2": {
114
+ "$ref": "#/definitions/account_operation/properties/gen/properties/name",
115
+ "description": "Second account name. Use empty string '' for the default account."
116
+ }
117
+ },
118
+ "additionalProperties": false,
119
+ "description": "Swap the names of two accounts"
120
+ },
121
+ "transfer": {
122
+ "type": "object",
123
+ "properties": {
124
+ "name_or_address_from": {
125
+ "$ref": "#/definitions/account_operation/properties/faucet/properties/name_or_address",
126
+ "description": "Sender account name or address. Use empty string '' for the default account."
127
+ },
128
+ "name_or_address_to": {
129
+ "$ref": "#/definitions/account_operation/properties/faucet/properties/name_or_address",
130
+ "description": "Recipient account name or address. Use empty string '' for the default account."
131
+ },
132
+ "amount": {
133
+ "type": [
134
+ "number",
135
+ "string"
136
+ ],
137
+ "description": "Amount of tokens to transfer"
138
+ },
139
+ "token_type": {
140
+ "type": "string",
141
+ "description": "Token type; default token type is 0x2::wow::WOW"
142
+ },
143
+ "network": {
144
+ "type": "string",
145
+ "enum": [
146
+ "localnet",
147
+ "testnet"
148
+ ],
149
+ "description": "Network entrypoint: Specifies which network the operation occurs on"
150
+ }
151
+ },
152
+ "required": [
153
+ "amount"
154
+ ],
155
+ "additionalProperties": false,
156
+ "description": "Transfer tokens from one account to another"
157
+ },
158
+ "get": {
159
+ "type": "object",
160
+ "properties": {
161
+ "name_or_address": {
162
+ "$ref": "#/definitions/account_operation/properties/faucet/properties/name_or_address",
163
+ "description": "Account name or address. Use empty string '' for the default account."
164
+ },
165
+ "balance_required": {
166
+ "type": [
167
+ "string",
168
+ "number"
169
+ ],
170
+ "description": "Required balance amount"
171
+ },
172
+ "token_type": {
173
+ "type": "string",
174
+ "description": "Token type; default token type is 0x2::wow::WOW"
175
+ },
176
+ "network": {
177
+ "$ref": "#/definitions/account_operation/properties/transfer/properties/network",
178
+ "description": "Network entrypoint: Specifies which network the operation occurs on"
179
+ }
180
+ },
181
+ "required": [
182
+ "balance_required"
183
+ ],
184
+ "additionalProperties": false,
185
+ "description": "Generate new coin object ID from account by required amount and return"
186
+ },
187
+ "signData": {
188
+ "type": "object",
189
+ "properties": {
190
+ "name_or_address": {
191
+ "$ref": "#/definitions/account_operation/properties/faucet/properties/name_or_address",
192
+ "description": "Account name or address. Use empty string '' for the default account."
193
+ },
194
+ "data": {
195
+ "type": "string",
196
+ "description": "Data to sign. If data_encoding is not specified, treated as UTF-8 string."
197
+ },
198
+ "data_encoding": {
199
+ "anyOf": [
200
+ {
201
+ "type": "string",
202
+ "const": "utf8",
203
+ "description": "Data is UTF-8 encoded string"
204
+ },
205
+ {
206
+ "type": "string",
207
+ "const": "base64",
208
+ "description": "Data is base64 encoded bytes"
209
+ },
210
+ {
211
+ "type": "string",
212
+ "const": "hex",
213
+ "description": "Data is hex encoded bytes (with or without 0x prefix)"
214
+ }
215
+ ],
216
+ "description": "Encoding format of the data field. If not specified, defaults to utf8."
217
+ }
218
+ },
219
+ "required": [
220
+ "data"
221
+ ],
222
+ "additionalProperties": false,
223
+ "description": "Sign data with account's private key"
224
+ },
225
+ "messenger": {
226
+ "type": "object",
227
+ "properties": {
228
+ "name_or_account": {
229
+ "$ref": "#/definitions/account_operation/properties/faucet/properties/name_or_address",
230
+ "description": "Account name or address. Use empty string '' for the default account. Defaults to '' if omitted."
231
+ },
232
+ "m": {
233
+ "anyOf": [
234
+ {
235
+ "$ref": "#/definitions/account_operation/properties/gen/properties/name"
236
+ },
237
+ {
238
+ "type": "null"
239
+ }
240
+ ],
241
+ "description": "Messenger name to enable messenger for this account (max 64 characters). If null, disable messenger."
242
+ }
243
+ },
244
+ "required": [
245
+ "m"
246
+ ],
247
+ "additionalProperties": false,
248
+ "description": "Enable or disable messenger for an account"
249
+ }
250
+ },
251
+ "additionalProperties": false,
252
+ "description": "Account operations"
253
+ }
254
+ }
255
+ }
@@ -0,0 +1,71 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://wowok.net/schemas/guard2file.json",
4
+ "title": "Guard to File",
5
+ "description": "Export Guard definition to JSON/Markdown file",
6
+ "$ref": "#/definitions/guard2file",
7
+ "definitions": {
8
+ "guard2file": {
9
+ "type": "object",
10
+ "properties": {
11
+ "guard": {
12
+ "type": "string",
13
+ "description": "Guard object ID or name to export"
14
+ },
15
+ "file_path": {
16
+ "type": "string",
17
+ "description": "Output file path (absolute or relative)"
18
+ },
19
+ "format": {
20
+ "type": "string",
21
+ "enum": [
22
+ "json",
23
+ "markdown"
24
+ ],
25
+ "description": "Output format: 'json' (default) or 'markdown'"
26
+ },
27
+ "env": {
28
+ "type": "object",
29
+ "properties": {
30
+ "account": {
31
+ "$ref": "#/definitions/guard2file/properties/guard",
32
+ "description": "Account/Object name or ID. If specifying an account, use empty string '' for the default account. If it starts with '0x', it will be treated as an ID. Otherwise, it will be treated as a name (max 64 bcs characters).",
33
+ "default": ""
34
+ },
35
+ "permission_guard": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "string"
39
+ },
40
+ "description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object)."
41
+ },
42
+ "no_cache": {
43
+ "type": "boolean",
44
+ "description": "Whether to disable caching."
45
+ },
46
+ "network": {
47
+ "type": "string",
48
+ "enum": [
49
+ "localnet",
50
+ "testnet"
51
+ ],
52
+ "description": "Network entrypoint: Specifies which network the operation occurs on"
53
+ },
54
+ "referrer": {
55
+ "$ref": "#/definitions/guard2file/properties/env/properties/account",
56
+ "description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
57
+ }
58
+ },
59
+ "additionalProperties": false,
60
+ "description": "IMPORTANT: Execution environment includes: account for signing operations, network selection ([object Object]), additional Guard permissions, and more. Used to specify context information during the call. If account is not specified, the default account (\"\") will be used."
61
+ }
62
+ },
63
+ "required": [
64
+ "guard",
65
+ "file_path"
66
+ ],
67
+ "additionalProperties": false,
68
+ "description": "Query a Guard object from the blockchain and export its definition to a JSON or Markdown file. The exported file can be edited and used to create new Guard objects."
69
+ }
70
+ }
71
+ }
@@ -0,0 +1,139 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "WoWok MCP Schema Index",
4
+ "description": "Index of all available JSON schemas for WoWok MCP tools",
5
+ "generatedAt": "2026-05-19T05:26:18.541Z",
6
+ "tools": [
7
+ {
8
+ "name": "onchain_operations",
9
+ "title": "On-chain Operations",
10
+ "path": "./onchain_operations.schema.json"
11
+ },
12
+ {
13
+ "name": "account_operation",
14
+ "title": "Account Operations",
15
+ "path": "./account_operation.schema.json"
16
+ },
17
+ {
18
+ "name": "local_mark_operation",
19
+ "title": "Local Mark Operations",
20
+ "path": "./local_mark_operation.schema.json"
21
+ },
22
+ {
23
+ "name": "local_info_operation",
24
+ "title": "Local Info Operations",
25
+ "path": "./local_info_operation.schema.json"
26
+ },
27
+ {
28
+ "name": "wip_file",
29
+ "title": "WIP File Operations",
30
+ "path": "./wip_file.schema.json"
31
+ },
32
+ {
33
+ "name": "messenger_operation",
34
+ "title": "Messenger Operations",
35
+ "path": "./messenger_operation.schema.json"
36
+ },
37
+ {
38
+ "name": "guard2file",
39
+ "title": "Guard to File",
40
+ "path": "./guard2file.schema.json"
41
+ },
42
+ {
43
+ "name": "machineNode2file",
44
+ "title": "Machine Node to File",
45
+ "path": "./machineNode2file.schema.json"
46
+ },
47
+ {
48
+ "name": "query_toolkit",
49
+ "title": "Data Query Toolkit",
50
+ "path": "./query_toolkit.schema.json"
51
+ },
52
+ {
53
+ "name": "onchain_table_data",
54
+ "title": "On-chain Table Data Query",
55
+ "path": "./onchain_table_data.schema.json"
56
+ },
57
+ {
58
+ "name": "onchain_events",
59
+ "title": "On-chain Events",
60
+ "path": "./onchain_events.schema.json"
61
+ },
62
+ {
63
+ "name": "wowok_buildin_info",
64
+ "title": "WoWok Build-in Information",
65
+ "path": "./wowok_buildin_info.schema.json"
66
+ },
67
+ {
68
+ "name": "schema_query",
69
+ "title": "Schema Query",
70
+ "path": "./schema_query.schema.json"
71
+ }
72
+ ],
73
+ "operations": [
74
+ {
75
+ "name": "onchain_operations_permission",
76
+ "path": "./onchain_operations_permission.schema.json"
77
+ },
78
+ {
79
+ "name": "onchain_operations_service",
80
+ "path": "./onchain_operations_service.schema.json"
81
+ },
82
+ {
83
+ "name": "onchain_operations_machine",
84
+ "path": "./onchain_operations_machine.schema.json"
85
+ },
86
+ {
87
+ "name": "onchain_operations_progress",
88
+ "path": "./onchain_operations_progress.schema.json"
89
+ },
90
+ {
91
+ "name": "onchain_operations_guard",
92
+ "path": "./onchain_operations_guard.schema.json"
93
+ },
94
+ {
95
+ "name": "onchain_operations_arbitration",
96
+ "path": "./onchain_operations_arbitration.schema.json"
97
+ },
98
+ {
99
+ "name": "onchain_operations_repository",
100
+ "path": "./onchain_operations_repository.schema.json"
101
+ },
102
+ {
103
+ "name": "onchain_operations_contact",
104
+ "path": "./onchain_operations_contact.schema.json"
105
+ },
106
+ {
107
+ "name": "onchain_operations_treasury",
108
+ "path": "./onchain_operations_treasury.schema.json"
109
+ },
110
+ {
111
+ "name": "onchain_operations_reward",
112
+ "path": "./onchain_operations_reward.schema.json"
113
+ },
114
+ {
115
+ "name": "onchain_operations_allocation",
116
+ "path": "./onchain_operations_allocation.schema.json"
117
+ },
118
+ {
119
+ "name": "onchain_operations_personal",
120
+ "path": "./onchain_operations_personal.schema.json"
121
+ },
122
+ {
123
+ "name": "onchain_operations_payment",
124
+ "path": "./onchain_operations_payment.schema.json"
125
+ },
126
+ {
127
+ "name": "onchain_operations_demand",
128
+ "path": "./onchain_operations_demand.schema.json"
129
+ },
130
+ {
131
+ "name": "onchain_operations_order",
132
+ "path": "./onchain_operations_order.schema.json"
133
+ },
134
+ {
135
+ "name": "onchain_operations_gen_passport",
136
+ "path": "./onchain_operations_gen_passport.schema.json"
137
+ }
138
+ ]
139
+ }
@@ -0,0 +1,142 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://wowok.net/schemas/local_info_operation.json",
4
+ "title": "Local Info Operations",
5
+ "description": "Manage sensitive personal information locally",
6
+ "$ref": "#/definitions/local_info_operation",
7
+ "definitions": {
8
+ "local_info_operation": {
9
+ "type": "object",
10
+ "properties": {
11
+ "add": {
12
+ "type": "object",
13
+ "properties": {
14
+ "op": {
15
+ "type": "string",
16
+ "const": "add",
17
+ "description": "Operation type: add info"
18
+ },
19
+ "data": {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "object",
23
+ "properties": {
24
+ "default": {
25
+ "type": "string",
26
+ "maxLength": 300,
27
+ "description": "Primary/default value for this info (max 300 bcs characters)"
28
+ },
29
+ "contents": {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "string",
33
+ "maxLength": 300
34
+ },
35
+ "maxItems": 50,
36
+ "description": "Additional content values (max 50 items, each max 300 bcs characters)"
37
+ },
38
+ "createdAt": {
39
+ "type": "number",
40
+ "description": "Unix timestamp (ms) when this info was created"
41
+ },
42
+ "updatedAt": {
43
+ "type": "number",
44
+ "description": "Unix timestamp (ms) when this info was last modified"
45
+ },
46
+ "name": {
47
+ "type": "string",
48
+ "maxLength": 64,
49
+ "description": "Unique identifier for this info entry (max 64 bcs characters)"
50
+ }
51
+ },
52
+ "required": [
53
+ "default",
54
+ "name"
55
+ ],
56
+ "additionalProperties": false,
57
+ "description": "LOCAL PRIVATE: Local info data structure for storing sensitive personal information like delivery addresses, phone numbers, etc. This data is stored ONLY on your device and NEVER published to the blockchain."
58
+ },
59
+ "minItems": 1,
60
+ "description": "Array of info data to add (at least 1 item)"
61
+ }
62
+ },
63
+ "required": [
64
+ "op",
65
+ "data"
66
+ ],
67
+ "additionalProperties": false,
68
+ "description": "Add one or more info entries"
69
+ },
70
+ "remove": {
71
+ "type": "object",
72
+ "properties": {
73
+ "op": {
74
+ "type": "string",
75
+ "const": "remove",
76
+ "description": "Operation type: remove info"
77
+ },
78
+ "data": {
79
+ "type": "array",
80
+ "items": {
81
+ "type": "string"
82
+ },
83
+ "minItems": 1,
84
+ "description": "Array of info names to remove"
85
+ }
86
+ },
87
+ "required": [
88
+ "op",
89
+ "data"
90
+ ],
91
+ "additionalProperties": false,
92
+ "description": "Remove info entries by name"
93
+ },
94
+ "reset": {
95
+ "type": "object",
96
+ "properties": {
97
+ "op": {
98
+ "type": "string",
99
+ "const": "reset",
100
+ "description": "Operation type: reset contents"
101
+ },
102
+ "name": {
103
+ "type": "string",
104
+ "description": "Name of info entry to reset"
105
+ },
106
+ "contents": {
107
+ "type": "array",
108
+ "items": {
109
+ "type": "string"
110
+ },
111
+ "description": "New content list to replace existing contents"
112
+ }
113
+ },
114
+ "required": [
115
+ "op",
116
+ "name",
117
+ "contents"
118
+ ],
119
+ "additionalProperties": false,
120
+ "description": "Reset the contents of an existing info entry"
121
+ },
122
+ "clear": {
123
+ "type": "object",
124
+ "properties": {
125
+ "op": {
126
+ "type": "string",
127
+ "const": "clear",
128
+ "description": "Operation type: clear all info"
129
+ }
130
+ },
131
+ "required": [
132
+ "op"
133
+ ],
134
+ "additionalProperties": false,
135
+ "description": "Remove all info entries"
136
+ }
137
+ },
138
+ "additionalProperties": false,
139
+ "description": "Local info operations. Exactly one operation type (add/remove/reset/clear) must be specified."
140
+ }
141
+ }
142
+ }