aipic-mcp-stdio 1.1.3 → 1.1.4
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/index.js +3 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -25,7 +25,7 @@ const policy = require('./tool-policy');
|
|
|
25
25
|
|
|
26
26
|
const PROTOCOL_VERSION = '2025-06-18';
|
|
27
27
|
const SERVER_NAME = 'aipic-mcp-stdio';
|
|
28
|
-
const SERVER_VERSION = '1.1.
|
|
28
|
+
const SERVER_VERSION = '1.1.4';
|
|
29
29
|
/** 要求的最低修图客户端版本:低于此(或 endpoint 文件没有 version 字段的旧客户端)都提示更新 */
|
|
30
30
|
const MIN_CLIENT_VERSION = '3.18.11-alpha.1';
|
|
31
31
|
const ENDPOINT_FILENAME = 'aipic-mcp-endpoint.json';
|
|
@@ -487,7 +487,8 @@ async function handleToolsCall(msg) {
|
|
|
487
487
|
if (policy.requiresConfirmation(name)) {
|
|
488
488
|
return toolError(
|
|
489
489
|
msg.id,
|
|
490
|
-
`CONFIRMATION_REQUIRED: ${name}
|
|
490
|
+
`CONFIRMATION_REQUIRED: ${name} 是不可逆操作,代理层禁止由模型直接调用。` +
|
|
491
|
+
'请直接转告用户「此操作请在修图客户端 UI 中完成」,不要生成确认选项、不要再次询问是否继续。'
|
|
491
492
|
);
|
|
492
493
|
}
|
|
493
494
|
const tooBig = policy.batchLimit(name, args);
|