gm-mcp 1.1.33 → 1.1.35

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,13 +70,16 @@ exports.server.tool("statistic_salary_x3_in_range", "Get statistic salary x3 wit
70
70
  sendMessageToLark: (0, env_1.getEnv)().SEND_MESSAGE_TO_LARK === "true",
71
71
  });
72
72
  }));
73
- exports.server.tool("debt_collection", "The company's debt collection by year (optional) information, if year is not provided use this year (vietname time zone)", {
74
- company_name: zod_1.default.string({ description: "Company name to get data" }),
75
- year: zod_1.default
76
- .string({
77
- description: "Year of company debt collection, if year is not provided use this year (vietname time zone)",
78
- })
79
- .optional(),
73
+ exports.server.registerTool("debt_collection", {
74
+ description: "The company's debt collection by year (optional) information, if year is not provided use this year (vietname time zone)",
75
+ inputSchema: {
76
+ company_name: zod_1.default.string({ description: "Company name to get data" }),
77
+ year: zod_1.default
78
+ .string({
79
+ description: "Year of company debt collection, if year is not provided use this year (vietname time zone)",
80
+ })
81
+ .optional(),
82
+ },
80
83
  }, (args) => __awaiter(void 0, void 0, void 0, function* () {
81
84
  const { company_name } = args;
82
85
  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.33",
3
+ "version": "1.1.35",
4
4
  "description": "Mcp server for Gm",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -25,7 +25,7 @@
25
25
  "dependencies": {
26
26
  "@dotenvx/dotenvx": "^1.44.2",
27
27
  "@larksuiteoapi/node-sdk": "^1.29.0",
28
- "@modelcontextprotocol/sdk": "^1.8.0",
28
+ "@modelcontextprotocol/sdk": "^1.25.1",
29
29
  "currency-formatter": "^1.5.9",
30
30
  "date-fns": "^2.30.0",
31
31
  "date-fns-tz": "^2.0.1",
package/src/index.ts CHANGED
@@ -90,16 +90,19 @@ server.tool(
90
90
  }
91
91
  );
92
92
 
93
- server.tool(
93
+ server.registerTool(
94
94
  "debt_collection",
95
- "The company's debt collection by year (optional) information, if year is not provided use this year (vietname time zone)",
96
95
  {
97
- company_name: z.string({ description: "Company name to get data" }),
98
- year: z
99
- .string({
100
- description: "Year of company debt collection, if year is not provided use this year (vietname time zone)",
101
- })
102
- .optional(),
96
+ description:
97
+ "The company's debt collection by year (optional) information, if year is not provided use this year (vietname time zone)",
98
+ inputSchema: {
99
+ company_name: z.string({ description: "Company name to get data" }),
100
+ year: z
101
+ .string({
102
+ description: "Year of company debt collection, if year is not provided use this year (vietname time zone)",
103
+ })
104
+ .optional(),
105
+ },
103
106
  },
104
107
  async (args) => {
105
108
  const { company_name } = args;