@actiondock/mcp 2.16.0 → 2.17.0

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/dist/adapter.js CHANGED
@@ -111,6 +111,7 @@ export async function createActionDockMcpServer(options = {}) {
111
111
  const result = await service.execution.run(action.id, input, {
112
112
  signal,
113
113
  timeoutMs: effectiveTimeoutMs,
114
+ origin: options.origin,
114
115
  });
115
116
  return toMcpResult(result);
116
117
  });
package/dist/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { ActionDockService } from "@actiondock/core";
2
2
  import type { ActionDockHost, ServerTlsOptions } from "@actiondock/core/server";
3
3
  import type { PackageRuntime, RuntimePlatform, RuntimeStorage } from "@actiondock/core/package";
4
- import type { ActionDefinition } from "@actiondock/sdk";
4
+ import type { ActionDefinition, RunOrigin } from "@actiondock/sdk";
5
5
  /**
6
6
  * ActionDock MCP 适配层初始化选项。
7
7
  * 统一以 service(及可选 host, runtime)为核心。
@@ -59,6 +59,10 @@ export interface ActionDockMcpOptions {
59
59
  * 仅在调用方自行持有实例并需要一次 close 同时释放 service 时置 true。
60
60
  */
61
61
  cascadeServiceClose?: boolean;
62
+ /**
63
+ * 运行来源追踪快照(若由受信任的服务端执行绑定)。
64
+ */
65
+ origin?: RunOrigin;
62
66
  }
63
67
  /**
64
68
  * HTTP 传输协议安全配置项。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@actiondock/mcp",
3
- "version": "2.16.0",
3
+ "version": "2.17.0",
4
4
  "description": "ActionDock MCP Adapter for exposing Actions as Model Context Protocol (MCP) Tools",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -29,8 +29,8 @@
29
29
  "test": "node ../../scripts/run-tests.ts"
30
30
  },
31
31
  "dependencies": {
32
- "@actiondock/core": "^2.16.0",
33
- "@actiondock/sdk": "^2.16.0",
32
+ "@actiondock/core": "^2.17.0",
33
+ "@actiondock/sdk": "^2.17.0",
34
34
  "@modelcontextprotocol/server": "^2.0.0"
35
35
  },
36
36
  "devDependencies": {