gm-mcp 1.1.15 → 1.1.17

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
@@ -72,12 +72,9 @@ exports.server.tool("statistic_salary_x3_in_range", "Get statistic salary x3 wit
72
72
  exports.server.tool("debt_collection", "The company's debt collection information", {
73
73
  month: zod_1.default
74
74
  .string()
75
- .optional()
75
+ .default("")
76
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"),
77
77
  company_name: zod_1.default.string({ description: "Company name to get data" }),
78
- }, {
79
- // ONLY 'title' is mandatory
80
- required: ["company_name"],
81
78
  }, (args) => __awaiter(void 0, void 0, void 0, function* () {
82
79
  const { month, company_name } = args;
83
80
  return (0, lark_tool_1.debtCollectionRateTool)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-mcp",
3
- "version": "1.1.15",
3
+ "version": "1.1.17",
4
4
  "description": "Mcp server for Gm",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -95,16 +95,12 @@ server.tool(
95
95
  {
96
96
  month: z
97
97
  .string()
98
- .optional()
98
+ .default("")
99
99
  .describe(
100
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
101
  ),
102
102
  company_name: z.string({ description: "Company name to get data" }),
103
103
  },
104
- {
105
- // ONLY 'title' is mandatory
106
- required: ["company_name"],
107
- },
108
104
  async (args) => {
109
105
  const { month, company_name } = args;
110
106
  return debtCollectionRateTool({