@bpmnkit/cli 0.0.24 → 0.0.25

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.
@@ -1,3 +1,5 @@
1
+ import { spawn } from "node:child_process";
2
+ import { fileURLToPath } from "node:url";
1
3
  import { startServer } from "@bpmnkit/proxy";
2
4
  const startCmd = {
3
5
  name: "start",
@@ -18,16 +20,42 @@ const startCmd = {
18
20
  const port = ctx.flags.port ?? 3033;
19
21
  ctx.output.info(`Starting BPMN Kit proxy server on port ${port}...`);
20
22
  startServer(port);
21
- // Keep the CLI alive until the user presses Ctrl+C
22
23
  await new Promise((resolve) => {
23
24
  process.once("SIGINT", resolve);
24
25
  process.once("SIGTERM", resolve);
25
26
  });
26
27
  },
27
28
  };
29
+ const mcpCmd = {
30
+ name: "mcp",
31
+ description: "Start the BPMNKit AIKit MCP server (stdio transport for Claude Code)",
32
+ examples: [
33
+ {
34
+ description: "Start MCP server (used by Claude Code plugin)",
35
+ command: "casen proxy mcp",
36
+ },
37
+ ],
38
+ async run(_ctx) {
39
+ const aitKitMcpUrl = import.meta.resolve("@bpmnkit/proxy/dist/aikit-mcp.js");
40
+ const aitKitMcpPath = fileURLToPath(aitKitMcpUrl);
41
+ await new Promise((resolve, reject) => {
42
+ const child = spawn(process.execPath, [aitKitMcpPath], {
43
+ stdio: "inherit",
44
+ env: process.env,
45
+ });
46
+ child.on("error", reject);
47
+ child.on("close", (code) => {
48
+ if (code === 0 || code === null)
49
+ resolve();
50
+ else
51
+ reject(new Error(`aikit-mcp exited with code ${code}`));
52
+ });
53
+ });
54
+ },
55
+ };
28
56
  export const proxyGroup = {
29
57
  name: "proxy",
30
58
  description: "Start the local AI bridge and Camunda API proxy server",
31
- commands: [startCmd],
59
+ commands: [startCmd, mcpCmd],
32
60
  };
33
61
  //# sourceMappingURL=proxy.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmnkit/cli",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "description": "Command-line interface for Camunda 8 — deploy, manage, and monitor processes from the terminal",
5
5
  "type": "module",
6
6
  "bin": {
@@ -16,13 +16,13 @@
16
16
  "node": ">=20"
17
17
  },
18
18
  "dependencies": {
19
- "@bpmnkit/api": "0.0.17",
20
- "@bpmnkit/ascii": "0.0.21",
21
19
  "@bpmnkit/connector-gen": "0.0.12",
22
20
  "@bpmnkit/core": "0.0.21",
21
+ "@bpmnkit/ascii": "0.0.21",
23
22
  "@bpmnkit/engine": "0.1.20",
23
+ "@bpmnkit/api": "0.0.17",
24
24
  "@bpmnkit/profiles": "0.0.15",
25
- "@bpmnkit/proxy": "0.0.22"
25
+ "@bpmnkit/proxy": "0.0.23"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"