@akasha-book/mcp 1.1.1 → 1.1.3

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
@@ -58,3 +58,10 @@ node selftest.test.mjs
58
58
  | 独立安全审计 / 公开分发(E5) | **unverified** | 未做独立审计 |
59
59
 
60
60
  **下一道门(next gate)**:① 在 DSH 上测 streamable-http 传输(若需要);② 若上游暴露公开的注入/工具服务接缝,评估改回"借官方服务"以省掉自研客户端;③ 补图片内容投影。
61
+
62
+
63
+ ## 源与许可(Source & License)
64
+
65
+ - 源仓库:https://github.com/Ersith/akasha-book
66
+ - 本版本固定提交(pinned commit):`5a55099586cfae4e7511ba433eaf202455d81c30`
67
+ - 许可证:MIT(见仓库根 LICENSE)
package/cordis.patch.yml CHANGED
@@ -1,11 +1,10 @@
1
1
  - insert:
2
2
  - id: mcp-akasha
3
- name: '@akasha-book/mcp'
3
+ name: '@local/mcp-akasha'
4
4
  config:
5
5
  serverName: akasha
6
6
  transport: stdio
7
- # node 可执行文件 + 本仓 core/mcp.mjs 的绝对路径(或用 PATH 中的 node)
8
- command: 'node'
9
- args: ['<AKASHA_DIR>/mcp.mjs']
7
+ command: 'F:\h\all\Nodejs\node.exe'
8
+ args: ['H:\Harness\akasha\mcp.mjs']
10
9
  toolCallTimeoutMs: 600000
11
10
  failOnStartupError: false
package/index.js CHANGED
@@ -214,6 +214,13 @@ export function createToolDefinition(client, { serverName, tool, toolCallTimeout
214
214
  }
215
215
 
216
216
  export async function apply(ctx, config = {}) {
217
+
218
+ // A/B 实验开关(2026-10-10 用户解冻,见 docs/ab-experiment-design.md §6):
219
+ // abOff=true ⇒ **关闭臂**——本插件不注册任何守卫/注入/工具,只记一行观测;库文件与日志照旧(便于事后复盘)。
220
+ if (config.abOff === true) {
221
+ try { (ctx.logger?.info ?? (() => {}))('mcp: abOff=true(A/B 关闭臂)——本插件不注册任何面'); } catch { /* 静默 */ }
222
+ return;
223
+ }
217
224
  const cfg = { ...DEFAULTS, ...(config ?? {}) };
218
225
  const log = (message) => { try { ctx.logger?.info?.(`mcp-akasha(${cfg.serverName}): ${message}`); } catch { /* 日志失败不影响主流程 */ } };
219
226
  const logError = (message) => { try { ctx.logger?.error?.(`mcp-akasha(${cfg.serverName}): ${message}`); } catch { /* 同上 */ } };
package/package.json CHANGED
@@ -1,25 +1,37 @@
1
1
  {
2
2
  "name": "@akasha-book/mcp",
3
- "version": "1.1.1",
4
- "repository": { "type": "git", "url": "https://github.com/Ersith/akasha-book.git", "directory": "plugins/mcp-akasha" },
5
- "engines": { "node": ">=22.15.0" },
6
- "license": "MIT",
3
+ "version": "1.1.3",
4
+ "engines": {
5
+ "node": ">=22.15.0"
6
+ },
7
7
  "type": "module",
8
- "description": "阿卡夏之书 MCP 注册桥:自带 stdio 客户端,把外置大脑(akasha)的工具以 mcp__akasha__* 暴露给模型(不引用任何 @deepseek-ai/* 包)",
8
+ "description": "阿卡夏之书 MCP 注册桥(自带 stdio 客户端;不引用任何 @deepseek-ai/* 包)",
9
9
  "main": "index.js",
10
- "exports": { ".": "./index.js" },
11
- "files": ["index.js", "cordis.patch.yml", "README.md"],
12
- "scripts": { "test": "node selftest.test.mjs" },
10
+ "exports": {
11
+ ".": "./index.js"
12
+ },
13
+ "files": [
14
+ "index.js",
15
+ "cordis.patch.yml",
16
+ "README.md"
17
+ ],
13
18
  "dsh": {
14
19
  "bundle": {
15
20
  "patch": "./cordis.patch.yml"
16
- },
17
- "compatibility": {
18
- "dshReleases": {
19
- "0.2.0-rc.2": "compatible",
20
- "0.2.1-alpha.1": "compatible",
21
- "0.2.1-alpha.2": "compatible"
22
- }
23
21
  }
22
+ },
23
+ "peerDependencies": {
24
+ "@deepseek-ai/dsh": "^0.2.0-rc.2",
25
+ "@deepseek-ai/cordis": "^4.0.4"
26
+ },
27
+ "license": "MIT",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/Ersith/akasha-book.git",
31
+ "directory": "dsh-mcp-akasha"
32
+ },
33
+ "scripts": {
34
+ "test": "node selftest.test.mjs",
35
+ "check": "node --check lib/index.js"
24
36
  }
25
37
  }