gm-mcp 1.1.11 → 1.1.12

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.js CHANGED
@@ -69,10 +69,11 @@ exports.server.tool("statistic_salary_x3_in_range", "Get statistic salary x3 wit
69
69
  sendMessageToLark: (0, env_1.getEnv)().SEND_MESSAGE_TO_LARK === "true",
70
70
  });
71
71
  }));
72
- exports.server.tool("debt_collection", "The company's debt collection information (month is optional)", {
73
- month: zod_1.default.optional(zod_1.default.string({
74
- description: "Month (optional) to get data,if year is not provided, please use current year (in Vietnam timezone) instead of, month is represented with format MM/yyyy",
75
- })),
72
+ exports.server.tool("debt_collection", "The company's debt collection information", {
73
+ month: zod_1.default
74
+ .string()
75
+ .optional()
76
+ .describe("Month (optional) ,if year is not provided, please use current year (in Vietnam timezone) instead of, month is represented with format MM/yyyy"),
76
77
  company_name: zod_1.default.string({ description: "Company name to get data" }),
77
78
  }, (args) => __awaiter(void 0, void 0, void 0, function* () {
78
79
  const { month, company_name } = args;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-mcp",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "Mcp server for Gm",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -91,14 +91,14 @@ server.tool(
91
91
 
92
92
  server.tool(
93
93
  "debt_collection",
94
- "The company's debt collection information (month is optional)",
94
+ "The company's debt collection information",
95
95
  {
96
- month: z.optional(
97
- z.string({
98
- description:
99
- "Month (optional) to get data,if year is not provided, please use current year (in Vietnam timezone) instead of, month is represented with format MM/yyyy",
100
- })
101
- ),
96
+ month: z
97
+ .string()
98
+ .optional()
99
+ .describe(
100
+ "Month (optional) ,if year is not provided, please use current year (in Vietnam timezone) instead of, month is represented with format MM/yyyy"
101
+ ),
102
102
  company_name: z.string({ description: "Company name to get data" }),
103
103
  },
104
104
  async (args) => {