mcp-adder-simple 1.1.3 → 1.1.5
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/handlers/tools.js +1 -5
- package/package.json +1 -1
- package/tools/index.js +11 -10
package/handlers/tools.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
const { addNumbers, multiplyNumbers } = require('../tools/calculator');
|
|
7
7
|
const { sup8Decode, sup8QueryCode, queryEnterpriseNo } = require('../tools/sup8');
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* 处理工具调用请求
|
|
@@ -33,11 +33,7 @@ async function handleToolCall(params) {
|
|
|
33
33
|
case 'query_enterprise_no':
|
|
34
34
|
return queryEnterpriseNo(args.enter);
|
|
35
35
|
|
|
36
|
-
case 'query_enterprise_no_db':
|
|
37
|
-
return queryEnterpriseDB(args.name);
|
|
38
36
|
|
|
39
|
-
case 'query_by_enterprise_no':
|
|
40
|
-
return queryByEnterpriseNo(args.enterpriseNo);
|
|
41
37
|
|
|
42
38
|
default:
|
|
43
39
|
throw new Error(`未知工具: ${name}`);
|
package/package.json
CHANGED
package/tools/index.js
CHANGED
|
@@ -53,17 +53,18 @@ function handleToolsList() {
|
|
|
53
53
|
},
|
|
54
54
|
required: ['code', 'enterpriseNo']
|
|
55
55
|
}
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
name: 'sup8_query_enterprise_no',
|
|
59
|
-
description: '查询企业号信息',
|
|
60
|
-
inputSchema: {
|
|
61
|
-
type: 'object',
|
|
62
|
-
properties: {
|
|
63
|
-
enterpriseNo: { type: 'string', description: '企业号或企业名称' }
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
56
|
}
|
|
57
|
+
//,
|
|
58
|
+
// {
|
|
59
|
+
// name: 'sup8_query_enterprise_no',
|
|
60
|
+
// description: '查询企业号信息',
|
|
61
|
+
// inputSchema: {
|
|
62
|
+
// type: 'object',
|
|
63
|
+
// properties: {
|
|
64
|
+
// enterpriseNo: { type: 'string', description: '企业号或企业名称' }
|
|
65
|
+
// }
|
|
66
|
+
// }
|
|
67
|
+
// }
|
|
67
68
|
|
|
68
69
|
]
|
|
69
70
|
};
|