gm-mcp 1.0.7 → 1.0.9

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
@@ -36,8 +36,8 @@ exports.server.tool("statistic_salary_x3_yesterday", "Get statistic salary x3 ye
36
36
  exports.server.tool("statistic_salary_x3_this_week", "Get statistic salary x3 this week", {}, (args) => __awaiter(void 0, void 0, void 0, function* () {
37
37
  return (0, tools_1.statisticX3WeekTool)({ sendMessageToLark: (0, env_1.getEnv)().SEND_MESSAGE_TO_LARK });
38
38
  }));
39
- exports.server.tool("statistic_salary_x3_month", `Get statistic salary x3 with month (include), month must be represented with format MM/yyyy, if year is not provided, ask user again "what is year you are mentioning ?"`, {
40
- month: zod_1.default.string().describe("Month to statistic, month must be represented with format MM/yyyy"),
39
+ exports.server.tool("statistic_salary_x3_month", `Get statistic salary x3 with month (include),month must be represented with format MM/yyyy or M/yyyy (exp: 06/2025,6/2025...). If user provides incorrect format (exp: 01,1,2,3...),ask user again,`, {
40
+ month: zod_1.default.string().describe("Month to statistic"),
41
41
  }, (args) => __awaiter(void 0, void 0, void 0, function* () {
42
42
  return (0, tools_1.statisticX3MonthTool)({ sendMessageToLark: (0, env_1.getEnv)().SEND_MESSAGE_TO_LARK, month: args.month });
43
43
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-mcp",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Mcp server",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -39,9 +39,9 @@ server.tool("statistic_salary_x3_this_week", "Get statistic salary x3 this week"
39
39
 
40
40
  server.tool(
41
41
  "statistic_salary_x3_month",
42
- `Get statistic salary x3 with month (include), month must be represented with format MM/yyyy, if year is not provided, ask user again "what is year you are mentioning ?"`,
42
+ `Get statistic salary x3 with month (include),month must be represented with format MM/yyyy or M/yyyy (exp: 06/2025,6/2025...). If user provides incorrect format (exp: 01,1,2,3...),ask user again,`,
43
43
  {
44
- month: z.string().describe("Month to statistic, month must be represented with format MM/yyyy"),
44
+ month: z.string().describe("Month to statistic"),
45
45
  },
46
46
  async (args) => {
47
47
  return statisticX3MonthTool({ sendMessageToLark: getEnv().SEND_MESSAGE_TO_LARK, month: args.month });