@wowok/agent-mcp 2.2.15 → 2.2.16

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 CHANGED
@@ -15693,7 +15693,7 @@ declare const WatchQueryOperationsSchema: z.ZodEffects<z.ZodUnion<[z.ZodDiscrimi
15693
15693
  name_or_address?: string | undefined;
15694
15694
  local_mark_first?: boolean | undefined;
15695
15695
  }>]>;
15696
- all_type: z.ZodOptional<z.ZodBoolean>;
15696
+ type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"CoinWrapper">, z.ZodNull]>>;
15697
15697
  cursor: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
15698
15698
  limit: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
15699
15699
  no_cache: z.ZodOptional<z.ZodBoolean>;
@@ -15704,9 +15704,9 @@ declare const WatchQueryOperationsSchema: z.ZodEffects<z.ZodUnion<[z.ZodDiscrimi
15704
15704
  local_mark_first?: boolean | undefined;
15705
15705
  };
15706
15706
  query_type: "onchain_received";
15707
+ type?: string | null | undefined;
15707
15708
  no_cache?: boolean | undefined;
15708
15709
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
15709
- all_type?: boolean | undefined;
15710
15710
  cursor?: string | null | undefined;
15711
15711
  limit?: number | null | undefined;
15712
15712
  }, {
@@ -15715,9 +15715,9 @@ declare const WatchQueryOperationsSchema: z.ZodEffects<z.ZodUnion<[z.ZodDiscrimi
15715
15715
  local_mark_first?: boolean | undefined;
15716
15716
  };
15717
15717
  query_type: "onchain_received";
15718
+ type?: string | null | undefined;
15718
15719
  no_cache?: boolean | undefined;
15719
15720
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
15720
- all_type?: boolean | undefined;
15721
15721
  cursor?: string | null | undefined;
15722
15722
  limit?: number | null | undefined;
15723
15723
  }>]>]>, {
@@ -15803,9 +15803,9 @@ declare const WatchQueryOperationsSchema: z.ZodEffects<z.ZodUnion<[z.ZodDiscrimi
15803
15803
  local_mark_first?: boolean | undefined;
15804
15804
  };
15805
15805
  query_type: "onchain_received";
15806
+ type?: string | null | undefined;
15806
15807
  no_cache?: boolean | undefined;
15807
15808
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
15808
- all_type?: boolean | undefined;
15809
15809
  cursor?: string | null | undefined;
15810
15810
  limit?: number | null | undefined;
15811
15811
  }, unknown>;
package/dist/index.js CHANGED
@@ -598,12 +598,15 @@ const WatchQueryOperationsSchema = z.preprocess((input) => {
598
598
  z.object({
599
599
  query_type: z.literal("onchain_received"),
600
600
  name_or_address: AccountOrMark_AddressAISchema.describe("Name or address of the object that received payments/items - can be a string (name/address) or full object"),
601
- all_type: z.boolean().optional().describe("Set to true to query all token types received; defaults to the object's Token type '0x2::payment::CoinWrapper<TOKEN>' (Coins wrapper sent via Payment object). If the object has no Token type, the call will fail."),
601
+ type: z.union([z.string(), z.literal("CoinWrapper"), z.null()]).optional().describe("Type filter for querying received objects. " +
602
+ "- If undefined or null: query all types (equivalent to the old all_type=true). " +
603
+ "- If 'CoinWrapper': query CoinWrapper type for the object's token (equivalent to the old all_type=false). " +
604
+ "- If string: query specific StructType (e.g., '0x2::payment::CoinWrapper<0x2::wow::WOW>')."),
602
605
  cursor: z.union([z.string(), z.null()]).optional().describe("Pagination cursor from previous page"),
603
606
  limit: z.union([z.number(), z.null()]).optional().describe("Max records per page"),
604
607
  no_cache: z.boolean().optional().describe("Set to true to bypass cache and fetch fresh on-chain data"),
605
608
  network: EntrypointSchema.optional(),
606
- }).describe("Query objects (Payments, Tokens, NFTs) received by a specific object. Use to track incoming payments or items sent to an on-chain object. Supports pagination and all_type filter. Returns: ReceivedBalance | ReceivedNormal[]"),
609
+ }).describe("Query objects (Payments, Tokens, NFTs) received by a specific object. Use to track incoming payments or items sent to an on-chain object. Supports pagination and type filter. Returns: ReceivedBalance | ReceivedNormal[]"),
607
610
  ]),
608
611
  ]));
609
612
  async function handleOnchainOperations(args) {
@@ -1040,7 +1043,7 @@ async function handleWatchQueryOperations(args) {
1040
1043
  case "onchain_received": {
1041
1044
  const queryResult = await query_received({
1042
1045
  name_or_address: normalizeAccountOrMark(validated.name_or_address),
1043
- all_type: validated.all_type,
1046
+ type: validated.type,
1044
1047
  cursor: validated.cursor,
1045
1048
  limit: validated.limit,
1046
1049
  no_cache: validated.no_cache,
@@ -1394,7 +1397,7 @@ async function main() {
1394
1397
  + "ONCHAIN (blockchain):\n"
1395
1398
  + "7. onchain_personal_profile — Query any user's PUBLIC on-chain profile: social links, reputation (likes/dislikes), personal info records, voting history, referrer.\n"
1396
1399
  + "8. onchain_objects — Batch query on-chain WOWOK objects by ID or name: supports Service, Machine, Order, Treasury, Reward, Arb, Personal, Contact, and more.\n"
1397
- + "9. onchain_received — Query objects (Payments, Tokens, NFTs) received by a specific object. Supports pagination and all_type filter.\n\n"
1400
+ + "9. onchain_received — Query objects (Payments, Tokens, NFTs) received by a specific object. Supports pagination and type filter.\n\n"
1398
1401
  + "For dynamic table data queries (pagination, table items), use the 'onchain_table_data' tool.",
1399
1402
  inputSchema: WatchQueryOperationsSchema,
1400
1403
  outputSchema: z.object({
@@ -568,44 +568,6 @@ export declare const QueryEnvSchema: z.ZodObject<{
568
568
  no_cache?: boolean | undefined;
569
569
  network?: ENTRYPOINT | undefined;
570
570
  }>;
571
- export declare const QueryReceivedSchema: z.ZodObject<{
572
- no_cache: z.ZodOptional<z.ZodBoolean>;
573
- network: z.ZodOptional<z.ZodEnum<[ENTRYPOINT.Localnet, ENTRYPOINT.Testnet]>>;
574
- } & {
575
- name_or_address: z.ZodUnion<[z.ZodString, z.ZodObject<{
576
- name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
577
- local_mark_first: z.ZodOptional<z.ZodBoolean>;
578
- }, "strict", z.ZodTypeAny, {
579
- name_or_address?: string | undefined;
580
- local_mark_first?: boolean | undefined;
581
- }, {
582
- name_or_address?: string | undefined;
583
- local_mark_first?: boolean | undefined;
584
- }>]>;
585
- all_type: z.ZodOptional<z.ZodBoolean>;
586
- cursor: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
587
- limit: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
588
- }, "strict", z.ZodTypeAny, {
589
- name_or_address: string | {
590
- name_or_address?: string | undefined;
591
- local_mark_first?: boolean | undefined;
592
- };
593
- no_cache?: boolean | undefined;
594
- network?: ENTRYPOINT | undefined;
595
- all_type?: boolean | undefined;
596
- cursor?: string | null | undefined;
597
- limit?: number | null | undefined;
598
- }, {
599
- name_or_address: string | {
600
- name_or_address?: string | undefined;
601
- local_mark_first?: boolean | undefined;
602
- };
603
- no_cache?: boolean | undefined;
604
- network?: ENTRYPOINT | undefined;
605
- all_type?: boolean | undefined;
606
- cursor?: string | null | undefined;
607
- limit?: number | null | undefined;
608
- }>;
609
571
  export declare const ReceivedBalanceObjectSchema: z.ZodObject<{
610
572
  id: z.ZodString;
611
573
  balance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
@@ -837,7 +799,6 @@ export type GuardTableItem = z.infer<typeof GuardTableItemSchema>;
837
799
  export type Entrypoint = z.infer<typeof EntrypointSchema>;
838
800
  export type ObjectBase = z.infer<typeof ObjectBaseSchema>;
839
801
  export type QueryEnv = z.infer<typeof QueryEnvSchema>;
840
- export type QueryReceived = z.infer<typeof QueryReceivedSchema>;
841
802
  export type ReceivedBalance = z.infer<typeof ReceivedBalanceSchema>;
842
803
  export type ReceivedNormal = z.infer<typeof ReceivedNormalSchema>;
843
804
  export type QueryReceivedResult = z.infer<typeof QueryReceivedResultSchema>;
@@ -272,12 +272,6 @@ export const QueryEnvSchema = z.object({
272
272
  no_cache: z.boolean().optional().describe("Whether to disable cache"),
273
273
  network: EntrypointSchema.optional(),
274
274
  }).strict().describe("Query environment parameters");
275
- export const QueryReceivedSchema = QueryEnvSchema.extend({
276
- name_or_address: AccountOrMark_AddressAISchema,
277
- all_type: z.boolean().optional().describe("Whether to query all types of received objects"),
278
- cursor: z.union([z.string(), z.null()]).optional().describe("Pagination cursor"),
279
- limit: z.union([z.number(), z.null()]).optional().describe("Number of records returned per page"),
280
- }).strict().describe("Request parameters for querying object's received objects");
281
275
  export const ReceivedBalanceObjectSchema = z.object({
282
276
  id: z.string().describe("Received CoinWrapper object ID"),
283
277
  balance: BalanceTypeSchema,
@@ -496,8 +496,8 @@ export declare const MessageFilterSchema: z.ZodObject<{
496
496
  skipAutoMarkViewed: z.ZodOptional<z.ZodBoolean>;
497
497
  }, "strip", z.ZodTypeAny, {
498
498
  status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
499
- limit?: number | undefined;
500
499
  account?: string | undefined;
500
+ limit?: number | undefined;
501
501
  contentType?: "text" | "wip" | "zip" | "wts" | undefined;
502
502
  direction?: "received" | "sent" | undefined;
503
503
  msgType?: 1 | 3 | undefined;
@@ -538,8 +538,8 @@ export declare const MessageFilterSchema: z.ZodObject<{
538
538
  viewedAtEnd?: number | undefined;
539
539
  }, {
540
540
  status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
541
- limit?: number | undefined;
542
541
  account?: string | undefined;
542
+ limit?: number | undefined;
543
543
  contentType?: "text" | "wip" | "zip" | "wts" | undefined;
544
544
  direction?: "received" | "sent" | undefined;
545
545
  msgType?: 1 | 3 | undefined;
@@ -1645,8 +1645,8 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1645
1645
  skipAutoMarkViewed: z.ZodOptional<z.ZodBoolean>;
1646
1646
  }, "strip", z.ZodTypeAny, {
1647
1647
  status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1648
- limit?: number | undefined;
1649
1648
  account?: string | undefined;
1649
+ limit?: number | undefined;
1650
1650
  contentType?: "text" | "wip" | "zip" | "wts" | undefined;
1651
1651
  direction?: "received" | "sent" | undefined;
1652
1652
  msgType?: 1 | 3 | undefined;
@@ -1687,8 +1687,8 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1687
1687
  viewedAtEnd?: number | undefined;
1688
1688
  }, {
1689
1689
  status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1690
- limit?: number | undefined;
1691
1690
  account?: string | undefined;
1691
+ limit?: number | undefined;
1692
1692
  contentType?: "text" | "wip" | "zip" | "wts" | undefined;
1693
1693
  direction?: "received" | "sent" | undefined;
1694
1694
  msgType?: 1 | 3 | undefined;
@@ -1732,8 +1732,8 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1732
1732
  operation: "watch_messages";
1733
1733
  filter?: {
1734
1734
  status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1735
- limit?: number | undefined;
1736
1735
  account?: string | undefined;
1736
+ limit?: number | undefined;
1737
1737
  contentType?: "text" | "wip" | "zip" | "wts" | undefined;
1738
1738
  direction?: "received" | "sent" | undefined;
1739
1739
  msgType?: 1 | 3 | undefined;
@@ -1777,8 +1777,8 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1777
1777
  operation: "watch_messages";
1778
1778
  filter?: {
1779
1779
  status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1780
- limit?: number | undefined;
1781
1780
  account?: string | undefined;
1781
+ limit?: number | undefined;
1782
1782
  contentType?: "text" | "wip" | "zip" | "wts" | undefined;
1783
1783
  direction?: "received" | "sent" | undefined;
1784
1784
  msgType?: 1 | 3 | undefined;
@@ -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-05-20T11:48:42.252Z",
5
+ "generatedAt": "2026-05-20T13:29:28.773Z",
6
6
  "tools": [
7
7
  {
8
8
  "name": "onchain_operations",
package/package.json CHANGED
@@ -1,11 +1,16 @@
1
1
  {
2
2
  "name": "@wowok/agent-mcp",
3
- "version": "2.2.15",
3
+ "version": "2.2.16",
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",
7
7
  "module": "node",
8
8
  "type": "module",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/wowok-ai/agent.git"
12
+ },
13
+ "homepage": "https://wowok.net",
9
14
  "files": [
10
15
  "dist",
11
16
  "docs",
@@ -31,7 +36,7 @@
31
36
  "license": "Apache-2.0",
32
37
  "dependencies": {
33
38
  "@modelcontextprotocol/sdk": "^1.29.0",
34
- "@wowok/wowok": "2.2.13",
39
+ "@wowok/wowok": "2.2.14",
35
40
  "lodash": "^4.18.1",
36
41
  "zod": "^3.25.76"
37
42
  },