mcp-adder-simple 1.1.5 → 1.1.7

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 CHANGED
@@ -30,7 +30,7 @@ async function handleToolCall(params) {
30
30
  case 'sup8_query_code':
31
31
  return sup8QueryCode(args.code, args.enterpriseNo);
32
32
 
33
- case 'query_enterprise_no':
33
+ case 'sup8_query_enterprise_no':
34
34
  return queryEnterpriseNo(args.enter);
35
35
 
36
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-adder-simple",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "main": "mcp-adder.js",
5
5
  "bin": {
6
6
  "mcp-adder-simple": "./bin/mcp-adder-simple.cmd"
package/tools/index.js CHANGED
@@ -32,7 +32,7 @@ function handleToolsList() {
32
32
  },
33
33
  {
34
34
  name: 'sup8_decode',
35
- description: '解码(带10分钟缓存)',
35
+ description: '解码',
36
36
  inputSchema: {
37
37
  type: 'object',
38
38
  properties: {
@@ -44,7 +44,7 @@ function handleToolsList() {
44
44
  },
45
45
  {
46
46
  name: 'sup8_query_code',
47
- description: '查询数码信息(带10分钟缓存)',
47
+ description: '查询数码信息',
48
48
  inputSchema: {
49
49
  type: 'object',
50
50
  properties: {
@@ -53,18 +53,17 @@ 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
+ }
56
66
  }
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
- // }
68
67
 
69
68
  ]
70
69
  };
package/tools/sup8.js CHANGED
@@ -75,13 +75,13 @@ async function sup8QueryCode(code, enterpriseNo) {
75
75
  };
76
76
  }
77
77
 
78
- async function queryEnterpriseNo(enter) {
78
+ async function queryEnterpriseNo(enterpriseNo) {
79
79
 
80
80
  const sql = 'SELECT * FROM t_sup8_cc_enterprisenumber';
81
81
  const params = [];
82
82
 
83
- if (enter && enter.trim()) {
84
- params.push(`%${enter}%`, `%${enter}%`);
83
+ if (enterpriseNo && enterpriseNo.trim()) {
84
+ params.push(`%${enterpriseNo}%`, `%${enterpriseNo}%`);
85
85
  const finalSql = sql + ' WHERE name LIKE ? OR enterpriseno LIKE ? ';
86
86
  const rows = await db.query(finalSql, params);
87
87
  return formatMCPResponse(rows);