gm-mcp 1.1.18 → 1.1.19

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
@@ -70,12 +70,21 @@ exports.server.tool("statistic_salary_x3_in_range", "Get statistic salary x3 wit
70
70
  });
71
71
  }));
72
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
+ }, {}, (args) => __awaiter(void 0, void 0, void 0, function* () {
75
+ const { company_name } = args;
76
+ return (0, lark_tool_1.debtCollectionRateTool)({
77
+ sendMessageToLark: (0, env_1.getEnv)().SEND_MESSAGE_TO_LARK === "true",
78
+ // monthDate: month || "",
79
+ companyName: company_name,
80
+ });
81
+ }));
82
+ exports.server.tool("debt_collection_with_month", "The company's debt collection information with month", {
73
83
  month: zod_1.default
74
84
  .string()
75
- .default("")
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"),
85
+ .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"),
77
86
  company_name: zod_1.default.string({ description: "Company name to get data" }),
78
- }, (args) => __awaiter(void 0, void 0, void 0, function* () {
87
+ }, {}, (args) => __awaiter(void 0, void 0, void 0, function* () {
79
88
  const { month, company_name } = args;
80
89
  return (0, lark_tool_1.debtCollectionRateTool)({
81
90
  sendMessageToLark: (0, env_1.getEnv)().SEND_MESSAGE_TO_LARK === "true",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-mcp",
3
- "version": "1.1.18",
3
+ "version": "1.1.19",
4
4
  "description": "Mcp server for Gm",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -92,15 +92,32 @@ server.tool(
92
92
  server.tool(
93
93
  "debt_collection",
94
94
  "The company's debt collection information",
95
+ {
96
+ company_name: z.string({ description: "Company name to get data" }),
97
+ },
98
+ {},
99
+ async (args) => {
100
+ const { company_name } = args;
101
+ return debtCollectionRateTool({
102
+ sendMessageToLark: getEnv().SEND_MESSAGE_TO_LARK === "true",
103
+ // monthDate: month || "",
104
+ companyName: company_name,
105
+ });
106
+ }
107
+ );
108
+
109
+ server.tool(
110
+ "debt_collection_with_month",
111
+ "The company's debt collection information with month",
95
112
  {
96
113
  month: z
97
114
  .string()
98
- .default("")
99
115
  .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"
116
+ "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"
101
117
  ),
102
118
  company_name: z.string({ description: "Company name to get data" }),
103
119
  },
120
+ {},
104
121
  async (args) => {
105
122
  const { month, company_name } = args;
106
123
  return debtCollectionRateTool({