gm-mcp 1.3.19 → 1.3.20

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
@@ -91,31 +91,21 @@ exports.server.registerTool("debt_collection", {
91
91
  `,
92
92
  inputSchema: v4_1.default.object({
93
93
  company_name: v4_1.default.string().describe("Company name to get data"),
94
- year: v4_1.default.string().describe("Year to get company debt collection").default("2025").optional(),
94
+ year: v4_1.default.string().nullable().describe("Year to get company debt collection"),
95
95
  product_type: v4_1.default
96
96
  .string()
97
97
  .nullable()
98
98
  .describe("Product type to get data one of follow values EWA 02 - 03 | EWA 04 | Lương X3 | Lương X3 - EVF "),
99
- month: v4_1.default.string().nullable().describe("Month to get company debt collection").default("").optional(),
100
- }),
101
- outputSchema: v4_1.default.object({
102
- company_name: v4_1.default.string().describe("Company name to get data"),
103
- year: v4_1.default.string().describe("Year to get company debt collection").default("2025").optional(),
104
- product_type: v4_1.default
105
- .string()
106
- .describe("Product type to get data one of follow values EWA 02 - 03 | EWA 04 | Lương X3 | Lương X3 - EVF ")
107
- .default(product_type_1.PRODUCT_TYPE.EWA_02_03)
108
- .optional(),
109
- month: v4_1.default.string().nullable().describe("Month to get company debt collection").default("").optional(),
99
+ month: v4_1.default.string().nullable().describe("Month to get company debt collection"),
110
100
  }),
111
101
  }, (args) => __awaiter(void 0, void 0, void 0, function* () {
112
102
  const { company_name, product_type, month, year } = args;
113
103
  return (0, lark_tool_1.debtCollectionRateTool)({
114
104
  sendMessageToLark: (0, env_1.getEnv)().SEND_MESSAGE_TO_LARK === "true",
115
105
  companyName: company_name || "",
116
- productType: product_type || "",
106
+ productType: product_type || product_type_1.PRODUCT_TYPE.EWA_02_03,
117
107
  month: month || "",
118
- year,
108
+ year: year || "",
119
109
  });
120
110
  }));
121
111
  // server.tool(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-mcp",
3
- "version": "1.3.19",
3
+ "version": "1.3.20",
4
4
  "description": "Mcp server for Gm",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -103,22 +103,12 @@ server.registerTool(
103
103
  `,
104
104
  inputSchema: z.object({
105
105
  company_name: z.string().describe("Company name to get data"),
106
- year: z.string().describe("Year to get company debt collection").default("2025").optional(),
106
+ year: z.string().nullable().describe("Year to get company debt collection"),
107
107
  product_type: z
108
108
  .string()
109
109
  .nullable()
110
110
  .describe("Product type to get data one of follow values EWA 02 - 03 | EWA 04 | Lương X3 | Lương X3 - EVF "),
111
- month: z.string().nullable().describe("Month to get company debt collection").default("").optional(),
112
- }),
113
- outputSchema: z.object({
114
- company_name: z.string().describe("Company name to get data"),
115
- year: z.string().describe("Year to get company debt collection").default("2025").optional(),
116
- product_type: z
117
- .string()
118
- .describe("Product type to get data one of follow values EWA 02 - 03 | EWA 04 | Lương X3 | Lương X3 - EVF ")
119
- .default(PRODUCT_TYPE.EWA_02_03)
120
- .optional(),
121
- month: z.string().nullable().describe("Month to get company debt collection").default("").optional(),
111
+ month: z.string().nullable().describe("Month to get company debt collection"),
122
112
  }),
123
113
  },
124
114
  async (args) => {
@@ -126,9 +116,9 @@ server.registerTool(
126
116
  return debtCollectionRateTool({
127
117
  sendMessageToLark: getEnv().SEND_MESSAGE_TO_LARK === "true",
128
118
  companyName: company_name || "",
129
- productType: product_type || "",
119
+ productType: product_type || PRODUCT_TYPE.EWA_02_03,
130
120
  month: month || "",
131
- year,
121
+ year: year || "",
132
122
  });
133
123
  }
134
124
  );