gm-mcp 1.1.26 → 1.1.27

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,12 +69,15 @@ 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", {
73
- company_name: zod_1.default.string({ description: "Company name to get data" }),
74
- month: zod_1.default
75
- .string()
76
- .optional()
77
- .describe("Month to get data,if year is not provided, please use current year (in Vietnam timezone) instead of, month is represented with format MM/yyyy"),
72
+ exports.server.registerTool("debt_collection", {
73
+ description: "The company's debt collection information",
74
+ inputSchema: {
75
+ company_name: zod_1.default.string({ description: "Company name to get data" }),
76
+ month: zod_1.default
77
+ .string()
78
+ .optional()
79
+ .describe("Month to get data,if year is not provided, please use current year (in Vietnam timezone) instead of, month is represented with format MM/yyyy"),
80
+ },
78
81
  }, (args) => __awaiter(void 0, void 0, void 0, function* () {
79
82
  const { company_name } = args;
80
83
  return (0, lark_tool_1.debtCollectionRateTool)({
package/dist/test.js CHANGED
@@ -20,7 +20,11 @@ function setupTest() {
20
20
  (0, env_1.ensureEnvVariables)();
21
21
  const mySchema = v3_1.default
22
22
  .object({
23
- myString: v3_1.default.string().min(5).optional(),
23
+ myString: v3_1.default.string().min(5),
24
+ month: v3_1.default
25
+ .string()
26
+ .optional()
27
+ .describe("Month to get data,if year is not provided, please use current year (in Vietnam timezone) instead of, month is represented with format MM/yyyy"),
24
28
  })
25
29
  .describe("My neat object schema");
26
30
  const res1 = (0, zod_to_json_schema_1.zodToJsonSchema)(mySchema);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-mcp",
3
- "version": "1.1.26",
3
+ "version": "1.1.27",
4
4
  "description": "Mcp server for Gm",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -89,17 +89,19 @@ server.tool(
89
89
  }
90
90
  );
91
91
 
92
- server.tool(
92
+ server.registerTool(
93
93
  "debt_collection",
94
- "The company's debt collection information",
95
94
  {
96
- company_name: z.string({ description: "Company name to get data" }),
97
- month: z
98
- .string()
99
- .optional()
100
- .describe(
101
- "Month to get data,if year is not provided, please use current year (in Vietnam timezone) instead of, month is represented with format MM/yyyy"
102
- ),
95
+ description: "The company's debt collection information",
96
+ inputSchema: {
97
+ company_name: z.string({ description: "Company name to get data" }),
98
+ month: z
99
+ .string()
100
+ .optional()
101
+ .describe(
102
+ "Month to get data,if year is not provided, please use current year (in Vietnam timezone) instead of, month is represented with format MM/yyyy"
103
+ ),
104
+ },
103
105
  },
104
106
  async (args) => {
105
107
  const { company_name } = args;
package/src/test.ts CHANGED
@@ -19,7 +19,13 @@ async function setupTest() {
19
19
 
20
20
  const mySchema = z
21
21
  .object({
22
- myString: z.string().min(5).optional(),
22
+ myString: z.string().min(5),
23
+ month: z
24
+ .string()
25
+ .optional()
26
+ .describe(
27
+ "Month to get data,if year is not provided, please use current year (in Vietnam timezone) instead of, month is represented with format MM/yyyy"
28
+ ),
23
29
  })
24
30
  .describe("My neat object schema");
25
31