gm-mcp 1.1.25 → 1.1.27
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 +9 -6
- package/dist/test.js +5 -1
- package/package.json +1 -1
- package/src/index.ts +11 -9
- package/src/test.ts +7 -1
package/dist/index.js
CHANGED
|
@@ -69,12 +69,15 @@ exports.server.tool("statistic_salary_x3_in_range", "Get statistic salary x3 wit
|
|
|
69
69
|
sendMessageToLark: (0, env_1.getEnv)().SEND_MESSAGE_TO_LARK === "true",
|
|
70
70
|
});
|
|
71
71
|
}));
|
|
72
|
-
exports.server.
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
.string()
|
|
76
|
-
.
|
|
77
|
-
|
|
72
|
+
exports.server.registerTool("debt_collection", {
|
|
73
|
+
description: "The company's debt collection information",
|
|
74
|
+
inputSchema: {
|
|
75
|
+
company_name: zod_1.default.string({ description: "Company name to get data" }),
|
|
76
|
+
month: zod_1.default
|
|
77
|
+
.string()
|
|
78
|
+
.optional()
|
|
79
|
+
.describe("Month to get data,if year is not provided, please use current year (in Vietnam timezone) instead of, month is represented with format MM/yyyy"),
|
|
80
|
+
},
|
|
78
81
|
}, (args) => __awaiter(void 0, void 0, void 0, function* () {
|
|
79
82
|
const { company_name } = args;
|
|
80
83
|
return (0, lark_tool_1.debtCollectionRateTool)({
|
package/dist/test.js
CHANGED
|
@@ -20,7 +20,11 @@ function setupTest() {
|
|
|
20
20
|
(0, env_1.ensureEnvVariables)();
|
|
21
21
|
const mySchema = v3_1.default
|
|
22
22
|
.object({
|
|
23
|
-
myString: v3_1.default.string().min(5)
|
|
23
|
+
myString: v3_1.default.string().min(5),
|
|
24
|
+
month: v3_1.default
|
|
25
|
+
.string()
|
|
26
|
+
.optional()
|
|
27
|
+
.describe("Month to get data,if year is not provided, please use current year (in Vietnam timezone) instead of, month is represented with format MM/yyyy"),
|
|
24
28
|
})
|
|
25
29
|
.describe("My neat object schema");
|
|
26
30
|
const res1 = (0, zod_to_json_schema_1.zodToJsonSchema)(mySchema);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -89,17 +89,19 @@ server.tool(
|
|
|
89
89
|
}
|
|
90
90
|
);
|
|
91
91
|
|
|
92
|
-
server.
|
|
92
|
+
server.registerTool(
|
|
93
93
|
"debt_collection",
|
|
94
|
-
"The company's debt collection information",
|
|
95
94
|
{
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
.string()
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
95
|
+
description: "The company's debt collection information",
|
|
96
|
+
inputSchema: {
|
|
97
|
+
company_name: z.string({ description: "Company name to get data" }),
|
|
98
|
+
month: z
|
|
99
|
+
.string()
|
|
100
|
+
.optional()
|
|
101
|
+
.describe(
|
|
102
|
+
"Month to get data,if year is not provided, please use current year (in Vietnam timezone) instead of, month is represented with format MM/yyyy"
|
|
103
|
+
),
|
|
104
|
+
},
|
|
103
105
|
},
|
|
104
106
|
async (args) => {
|
|
105
107
|
const { company_name } = args;
|
package/src/test.ts
CHANGED
|
@@ -19,7 +19,13 @@ async function setupTest() {
|
|
|
19
19
|
|
|
20
20
|
const mySchema = z
|
|
21
21
|
.object({
|
|
22
|
-
myString: z.string().min(5)
|
|
22
|
+
myString: z.string().min(5),
|
|
23
|
+
month: z
|
|
24
|
+
.string()
|
|
25
|
+
.optional()
|
|
26
|
+
.describe(
|
|
27
|
+
"Month to get data,if year is not provided, please use current year (in Vietnam timezone) instead of, month is represented with format MM/yyyy"
|
|
28
|
+
),
|
|
23
29
|
})
|
|
24
30
|
.describe("My neat object schema");
|
|
25
31
|
|