@zswarm/mcp 0.1.3 → 0.1.5

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,8 +38,10 @@ zswarm({ op: "send", to: "terminal_2", body: "ping" })
38
38
 
39
39
  Some MCP hosts spawn servers outside your shell and inherit neither PATH nor
40
40
  the Zellij environment. Give the interpreter an absolute path and set
41
- `ZSWARM_SESSION`. `ZSWARM_SSH` or `ZSWARM_SERVE` routes the same tool at a
42
- remote crew. Details: the [zswarm README](../../README.md).
41
+ `ZSWARM_SESSION`. Forward `ZELLIJ_PANE_ID` (or set `ZSWARM_FROM`) so send
42
+ labels `[zswarm from=…]` with the sending pane instead of `swarm`.
43
+ `ZSWARM_SSH` or `ZSWARM_SERVE` routes the same tool at a remote crew.
44
+ Details: the [zswarm README](../../README.md).
43
45
 
44
46
  ## License
45
47
 
@@ -15,7 +15,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => ({
15
15
  },
16
16
  ],
17
17
  }));
18
- server.setRequestHandler(CallToolRequestSchema, async (request) => {
18
+ server.setRequestHandler(CallToolRequestSchema, async (request, extra) => {
19
19
  const name = request.params.name;
20
20
  const args = (request.params.arguments ?? {});
21
21
  if (name !== "zswarm") {
@@ -32,7 +32,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
32
32
  isError: true,
33
33
  };
34
34
  }
35
- const result = await dispatchZswarm(args);
35
+ const result = await dispatchZswarm(args, undefined, { signal: extra.signal });
36
36
  return {
37
37
  content: [
38
38
  { type: "text", text: JSON.stringify(result, null, 2) },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zswarm/mcp",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "description": "zSwarm MCP server — Zellij pane coordination",
6
6
  "bin": {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "@modelcontextprotocol/sdk": "1.30.0",
11
- "@zswarm/core": "0.1.3"
11
+ "@zswarm/core": "0.1.5"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@types/node": "22.14.1",