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