mcp-adder-simple 1.1.7 → 1.1.9

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
@@ -31,7 +31,7 @@ async function handleToolCall(params) {
31
31
  return sup8QueryCode(args.code, args.enterpriseNo);
32
32
 
33
33
  case 'sup8_query_enterprise_no':
34
- return queryEnterpriseNo(args.enter);
34
+ return queryEnterpriseNo(args.enterpriseNo);
35
35
 
36
36
 
37
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-adder-simple",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "main": "mcp-adder.js",
5
5
  "bin": {
6
6
  "mcp-adder-simple": "./bin/mcp-adder-simple.cmd"
package/tools/sup8.js CHANGED
@@ -17,7 +17,7 @@ async function sup8Decode(code, enterpriseNo) {
17
17
  if (typeof code !== 'string' || typeof enterpriseNo !== 'string') {
18
18
  throw new Error('参数必须是字符串');
19
19
  }
20
- const url = `${sup8Host}/digit/v1/decode/decode?digit=${encodeURIComponent(code)}&enterpriseNo=${encodeURIComponent(enterpriseNo)}`;
20
+ const url = `${sup8OpenHost}/digit/v1/decode/decode?digit=${encodeURIComponent(code)}&enterpriseNo=${encodeURIComponent(enterpriseNo)}`;
21
21
 
22
22
  const result = await get(url);
23
23
 
@@ -44,7 +44,7 @@ async function sup8QueryCode(code, enterpriseNo) {
44
44
 
45
45
  // 构建缓存键和 URL
46
46
  const cacheKey = `query:${code}:${enterpriseNo}`;
47
- const url = `${sup8Host}/digit/v2/digit/get-digit-info?code=${encodeURIComponent(code)}&enterpriseNo=${encodeURIComponent(enterpriseNo)}`;
47
+ const url = `${sup8OpenHost}/digit/v2/digit/get-digit-info?code=${encodeURIComponent(code)}&enterpriseNo=${encodeURIComponent(enterpriseNo)}`;
48
48
 
49
49
  // 先尝试从缓存获取
50
50
  const cachedData = getCache(cacheKey);