@foxitsoftware/mcp-server-foxit-cloudapi
Advanced tools
@@ -9,3 +9,2 @@ "use strict"; | ||
| exports.requestTask = requestTask; | ||
| exports.requestProjectAll = requestProjectAll; | ||
| exports.saveFile = saveFile; | ||
@@ -145,23 +144,2 @@ exports.requestCombine = requestCombine; | ||
| } | ||
| async function requestProjectAll(params) { | ||
| (0, util_1.logToFile)('==>', 'post', `/api/client/sn`, params); | ||
| // const cacheManager = getApp().get(CACHE_MANAGER) as Cache; | ||
| // const keys = Object.keys(params).sort(); | ||
| // let cacheKey = 'sn_'; | ||
| // for (const k of keys) { | ||
| // cacheKey += `${k}_${params[k]}_`; | ||
| // } | ||
| // const cacheValue = await cacheManager.get(cacheKey); | ||
| // if (cacheValue) { | ||
| // const res = { code: 0, data: { sn: cacheValue } }; | ||
| // logToFile('<== axios.response.cache', res); | ||
| // return res; | ||
| // } | ||
| const { data: res } = await axios_1.default.post(`${constant_1.SERVICE_API_BASE}/api/project/all`, params); | ||
| (0, util_1.logToFile)('<==', res); | ||
| // if (res.data?.sn) { | ||
| // await cacheManager.set(cacheKey, res.data.sn, 60 * 60 * 24); | ||
| // } | ||
| return res; | ||
| } | ||
| async function saveFile(params, env) { | ||
@@ -168,0 +146,0 @@ (0, util_1.logToFile)('saveFile params', params); |
+1
-1
| { | ||
| "name": "@foxitsoftware/mcp-server-foxit-cloudapi", | ||
| "version": "1.0.2", | ||
| "version": "1.0.3", | ||
| "description": "MCP server for using the Foxit Cloud API", | ||
@@ -5,0 +5,0 @@ "author": "Foxit Software Inc.", |
+2
-1
| # MCP server for using the Foxit Cloud API | ||
| ## Requirements | ||
| - Node.js >= 18.0.0 | ||
| - 本地需要安装[Node.js](https://nodejs.org/)且版本大于等于18.0.0 | ||
| ## Features | ||
@@ -7,0 +8,0 @@ - PDF创建和转换:支持从其他文件格式创建PDF文件,并将PDF转换为其他格式,如HTML、Word等。 |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
231
0.43%76836
-35.97%1186
-1.82%