@aalis/plugin-mcp-client 0.15.0 → 0.15.2

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/README.md CHANGED
@@ -38,7 +38,7 @@ plugins:
38
38
 
39
39
  ## 注意
40
40
 
41
- - `env` 声明了 `secret: true`:每个 server 的整份 `env` 算一个密钥,Node 宿主把它移进家目录的 `secrets.yaml`,配置文件里只留引用;WebUI 不回显,要改就整份重填。token 放进 `env`,不要写进 `args`(连接成功时的日志会写出全部 `args`)
41
+ - `env` 声明了 `secret: true`:每个 server 的整份 `env` 算一个密钥,Node 宿主把它移进数据目录的 `secrets.yaml`,配置文件里只留引用;WebUI 不回显,要改就整份重填。token 放进 `env`,不要写进 `args`(连接成功时的日志会写出全部 `args`)
42
42
  - `args` 必须是字符串数组、`env` 必须是映射;缺省时分别补 `[]` / `{}`。显式形态错误或任一成员不能转为字符串时,该 server 记录警告且不启动,其他 server 不受影响;合法的空字符串参数会原样传递
43
43
  - 缺少 `id` 或 `command` 的条目记录警告并跳过,其它 server 不受影响
44
44
  - `enabled` 不是布尔值、`visibility` 不在四档选项中时,同样跳过该 server
package/dist/index.d.ts CHANGED
@@ -106,7 +106,7 @@ interface ToolMeta {
106
106
  };
107
107
  }
108
108
  /**
109
- * 从 MCP 工具注解推导默认档位(用户裁定 2026-08-23:按"是否可能破坏"分档):
109
+ * 从 MCP 工具注解推导默认档位,按"是否可能破坏"分档:
110
110
  * - 自称只读且无破坏提示 → `risk:'sensitive'`(等级 1,挡 level-0);
111
111
  * - 有破坏提示或未声明 → `visibility:'restricted'`(等级 2)——未知按可破坏算,失败关闭。
112
112
  *
package/dist/index.js CHANGED
@@ -84,7 +84,7 @@ const configSchema = defineConfig({
84
84
  },
85
85
  });
86
86
  /**
87
- * 从 MCP 工具注解推导默认档位(用户裁定 2026-08-23:按"是否可能破坏"分档):
87
+ * 从 MCP 工具注解推导默认档位,按"是否可能破坏"分档:
88
88
  * - 自称只读且无破坏提示 → `risk:'sensitive'`(等级 1,挡 level-0);
89
89
  * - 有破坏提示或未声明 → `visibility:'restricted'`(等级 2)——未知按可破坏算,失败关闭。
90
90
  *
@@ -9,11 +9,11 @@ declare const _default: {
9
9
  readonly argsLabel: "Command arguments";
10
10
  readonly argsDescription: "Arguments passed to the command in order, one per item (may contain spaces). Write file paths in arguments as absolute paths.";
11
11
  readonly envLabel: "Environment variables";
12
- readonly envDescription: "Extra environment variables passed to the child process (KEY → VALUE). The whole map is stored in secrets.yaml as one secret; the WebUI does not show it back, and changing it means re-entering all of it. Put credentials such as tokens here, not in the command arguments (arguments are written to the logs).";
12
+ readonly envDescription: "Extra environment variables passed to the server process (KEY → VALUE), stored as one secret; changing it means re-entering all of it. Put credentials such as tokens here, not in the command arguments.";
13
13
  readonly enabledLabel: "Enabled";
14
14
  readonly enabledDescription: "Turn off to skip this server for now without deleting the whole entry.";
15
15
  readonly visibilityLabel: "Tool level";
16
- readonly visibilityDescription: "Level of all tools of this server. auto = by tool annotations: self-declared read-only → sensitive (level 1), destructive hints or nothing declared → restricted (level 2). public restores level 0, open to everyone (the old 0.x default).";
16
+ readonly visibilityDescription: "Level of all tools of this server. auto follows the annotations the tools declare: read-only ones are sensitive (level 1), the rest restricted (level 2).";
17
17
  readonly visibilityAuto: "auto (by annotations)";
18
18
  readonly visibilityPublic: "public (level 0, open to everyone)";
19
19
  readonly visibilitySensitive: "sensitive (level 1)";
@@ -10,11 +10,11 @@ export default defineLocale()({
10
10
  argsLabel: 'Command arguments',
11
11
  argsDescription: 'Arguments passed to the command in order, one per item (may contain spaces). Write file paths in arguments as absolute paths.',
12
12
  envLabel: 'Environment variables',
13
- envDescription: 'Extra environment variables passed to the child process (KEY → VALUE). The whole map is stored in secrets.yaml as one secret; the WebUI does not show it back, and changing it means re-entering all of it. Put credentials such as tokens here, not in the command arguments (arguments are written to the logs).',
13
+ envDescription: 'Extra environment variables passed to the server process (KEY → VALUE), stored as one secret; changing it means re-entering all of it. Put credentials such as tokens here, not in the command arguments.',
14
14
  enabledLabel: 'Enabled',
15
15
  enabledDescription: 'Turn off to skip this server for now without deleting the whole entry.',
16
16
  visibilityLabel: 'Tool level',
17
- visibilityDescription: 'Level of all tools of this server. auto = by tool annotations: self-declared read-only → sensitive (level 1), destructive hints or nothing declared → restricted (level 2). public restores level 0, open to everyone (the old 0.x default).',
17
+ visibilityDescription: 'Level of all tools of this server. auto follows the annotations the tools declare: read-only ones are sensitive (level 1), the rest restricted (level 2).',
18
18
  visibilityAuto: 'auto (by annotations)',
19
19
  visibilityPublic: 'public (level 0, open to everyone)',
20
20
  visibilitySensitive: 'sensitive (level 1)',
@@ -1 +1 @@
1
- {"version":3,"file":"en.js","sourceRoot":"","sources":["../../src/locales/en.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,eAAe,YAAY,EAAU,CAAC;IACpC,WAAW,EAAE,YAAY;IACzB,YAAY,EAAE,aAAa;IAC3B,kBAAkB,EAChB,kHAAkH;IACpH,OAAO,EAAE,WAAW;IACpB,aAAa,EACX,wIAAwI;IAC1I,YAAY,EAAE,oBAAoB;IAClC,kBAAkB,EAAE,sFAAsF;IAC1G,SAAS,EAAE,mBAAmB;IAC9B,eAAe,EACb,+HAA+H;IACjI,QAAQ,EAAE,uBAAuB;IACjC,cAAc,EACZ,oTAAoT;IACtT,YAAY,EAAE,SAAS;IACvB,kBAAkB,EAAE,wEAAwE;IAC5F,eAAe,EAAE,YAAY;IAC7B,qBAAqB,EACnB,8OAA8O;IAChP,cAAc,EAAE,uBAAuB;IACvC,gBAAgB,EAAE,oCAAoC;IACtD,mBAAmB,EAAE,qBAAqB;IAC1C,oBAAoB,EAAE,sBAAsB;IAC5C,kBAAkB,EAAE,qCAAqC;IACzD,mBAAmB,EACjB,4JAA4J;IAC9J,kBAAkB,EAAE,uDAAuD;IAC3E,SAAS,EAAE,gBAAgB;IAC3B,gBAAgB,EACd,wGAAwG;CAC3G,CAAC,CAAC"}
1
+ {"version":3,"file":"en.js","sourceRoot":"","sources":["../../src/locales/en.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,eAAe,YAAY,EAAU,CAAC;IACpC,WAAW,EAAE,YAAY;IACzB,YAAY,EAAE,aAAa;IAC3B,kBAAkB,EAChB,kHAAkH;IACpH,OAAO,EAAE,WAAW;IACpB,aAAa,EACX,wIAAwI;IAC1I,YAAY,EAAE,oBAAoB;IAClC,kBAAkB,EAAE,sFAAsF;IAC1G,SAAS,EAAE,mBAAmB;IAC9B,eAAe,EACb,+HAA+H;IACjI,QAAQ,EAAE,uBAAuB;IACjC,cAAc,EACZ,2MAA2M;IAC7M,YAAY,EAAE,SAAS;IACvB,kBAAkB,EAAE,wEAAwE;IAC5F,eAAe,EAAE,YAAY;IAC7B,qBAAqB,EACnB,2JAA2J;IAC7J,cAAc,EAAE,uBAAuB;IACvC,gBAAgB,EAAE,oCAAoC;IACtD,mBAAmB,EAAE,qBAAqB;IAC1C,oBAAoB,EAAE,sBAAsB;IAC5C,kBAAkB,EAAE,qCAAqC;IACzD,mBAAmB,EACjB,4JAA4J;IAC9J,kBAAkB,EAAE,uDAAuD;IAC3E,SAAS,EAAE,gBAAgB;IAC3B,gBAAgB,EACd,wGAAwG;CAC3G,CAAC,CAAC"}
package/dist/texts.d.ts CHANGED
@@ -9,11 +9,11 @@ declare const SOURCE: {
9
9
  readonly argsLabel: "命令参数";
10
10
  readonly argsDescription: "按顺序传给命令的参数列表,每项一个参数(可含空格)。参数里的文件路径请写绝对路径。";
11
11
  readonly envLabel: "环境变量";
12
- readonly envDescription: "额外传给子进程的环境变量(KEY → VALUE)。整份作为一个密钥存进 secrets.yaml,WebUI 不回显,改时整份重填。token 等凭据放这里,不要放进命令参数(参数会写进日志)。";
12
+ readonly envDescription: "额外传给服务器进程的环境变量(KEY → VALUE),整份作为一个密钥保存,改时整份重填。token 等凭据放这里,不要放进命令参数。";
13
13
  readonly enabledLabel: "启用";
14
14
  readonly enabledDescription: "关闭可临时跳过该 server 而不删除整条配置。";
15
15
  readonly visibilityLabel: "工具档位";
16
- readonly visibilityDescription: "该 server 全部工具的档位。auto=按工具注解分档:自称只读→sensitive(等级 1),有破坏提示或未声明→restricted(等级 2)。public 恢复等级 0 全开(0.x 旧默认)。";
16
+ readonly visibilityDescription: "这个服务器全部工具的档位。auto 按工具自报的注解定:只读的为 sensitive(等级 1),其余为 restricted(等级 2)。";
17
17
  readonly visibilityAuto: "auto(按注解分档)";
18
18
  readonly visibilityPublic: "public(等级 0 全开)";
19
19
  readonly visibilitySensitive: "sensitive(等级 1)";
@@ -36,11 +36,11 @@ export declare const t: import("@aalis/schema-i18n").TextFactory<{
36
36
  readonly argsLabel: "命令参数";
37
37
  readonly argsDescription: "按顺序传给命令的参数列表,每项一个参数(可含空格)。参数里的文件路径请写绝对路径。";
38
38
  readonly envLabel: "环境变量";
39
- readonly envDescription: "额外传给子进程的环境变量(KEY → VALUE)。整份作为一个密钥存进 secrets.yaml,WebUI 不回显,改时整份重填。token 等凭据放这里,不要放进命令参数(参数会写进日志)。";
39
+ readonly envDescription: "额外传给服务器进程的环境变量(KEY → VALUE),整份作为一个密钥保存,改时整份重填。token 等凭据放这里,不要放进命令参数。";
40
40
  readonly enabledLabel: "启用";
41
41
  readonly enabledDescription: "关闭可临时跳过该 server 而不删除整条配置。";
42
42
  readonly visibilityLabel: "工具档位";
43
- readonly visibilityDescription: "该 server 全部工具的档位。auto=按工具注解分档:自称只读→sensitive(等级 1),有破坏提示或未声明→restricted(等级 2)。public 恢复等级 0 全开(0.x 旧默认)。";
43
+ readonly visibilityDescription: "这个服务器全部工具的档位。auto 按工具自报的注解定:只读的为 sensitive(等级 1),其余为 restricted(等级 2)。";
44
44
  readonly visibilityAuto: "auto(按注解分档)";
45
45
  readonly visibilityPublic: "public(等级 0 全开)";
46
46
  readonly visibilitySensitive: "sensitive(等级 1)";
package/dist/texts.js CHANGED
@@ -12,11 +12,11 @@ const SOURCE = {
12
12
  argsLabel: '命令参数',
13
13
  argsDescription: '按顺序传给命令的参数列表,每项一个参数(可含空格)。参数里的文件路径请写绝对路径。',
14
14
  envLabel: '环境变量',
15
- envDescription: '额外传给子进程的环境变量(KEY → VALUE)。整份作为一个密钥存进 secrets.yaml,WebUI 不回显,改时整份重填。token 等凭据放这里,不要放进命令参数(参数会写进日志)。',
15
+ envDescription: '额外传给服务器进程的环境变量(KEY → VALUE),整份作为一个密钥保存,改时整份重填。token 等凭据放这里,不要放进命令参数。',
16
16
  enabledLabel: '启用',
17
17
  enabledDescription: '关闭可临时跳过该 server 而不删除整条配置。',
18
18
  visibilityLabel: '工具档位',
19
- visibilityDescription: '该 server 全部工具的档位。auto=按工具注解分档:自称只读→sensitive(等级 1),有破坏提示或未声明→restricted(等级 2)。public 恢复等级 0 全开(0.x 旧默认)。',
19
+ visibilityDescription: '这个服务器全部工具的档位。auto 按工具自报的注解定:只读的为 sensitive(等级 1),其余为 restricted(等级 2)。',
20
20
  visibilityAuto: 'auto(按注解分档)',
21
21
  visibilityPublic: 'public(等级 0 全开)',
22
22
  visibilitySensitive: 'sensitive(等级 1)',
package/dist/texts.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"texts.js","sourceRoot":"","sources":["../src/texts.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAEjC,MAAM,MAAM,GAAG;IACb,WAAW,EAAE,SAAS;IACtB,YAAY,EAAE,WAAW;IACzB,kBAAkB,EAAE,qDAAqD;IACzE,OAAO,EAAE,OAAO;IAChB,aAAa,EAAE,mDAAmD;IAClE,YAAY,EAAE,OAAO;IACrB,kBAAkB,EAAE,4CAA4C;IAChE,SAAS,EAAE,MAAM;IACjB,eAAe,EAAE,2CAA2C;IAC5D,QAAQ,EAAE,MAAM;IAChB,cAAc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AAiB;IACtC,oBAAoB,EAAE,kBAAkB;IACxC,kBAAkB,EAAE,kBAAkB;IACtC,mBAAmB,EAAE,6DAA6D;IAClF,kBAAkB,EAAE,2CAA2C;IAC/D,SAAS,EAAE,WAAW;IACtB,gBAAgB,EAAE,sCAAsC;CAChD,CAAC;AAGX,MAAM,CAAC,MAAM,CAAC,GAAG,WAAW,CAAC;IAC3B,EAAE,EAAE,0BAA0B;IAC9B,QAAQ,EAAE,OAAO;IACjB,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,EAAE,EAAE,EAAE;CAChB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aalis/plugin-mcp-client",
3
- "version": "0.15.0",
3
+ "version": "0.15.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,7 +34,7 @@
34
34
  "devDependencies": {
35
35
  "@types/node": "^22.0.0",
36
36
  "typescript": "^5.7.0",
37
- "@aalis/core": "0.21.0"
37
+ "@aalis/core": "0.21.1"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@aalis/core": ">=0.21.0 <1.0.0"