@zswarm/mcp 0.1.2 → 0.1.4

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
 
@@ -1,9 +1,11 @@
1
1
  #!/usr/bin/env node
2
+ import { createRequire } from "node:module";
2
3
  import { Server } from "@modelcontextprotocol/sdk/server/index.js";
3
4
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
4
5
  import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
5
6
  import { dispatchZswarm, mcpInputSchema, MCP_TOOL_DESCRIPTION, } from "@zswarm/core";
6
- const server = new Server({ name: "zswarm", version: "0.1.0" }, { capabilities: { tools: {} } });
7
+ const { version } = createRequire(import.meta.url)("../package.json");
8
+ const server = new Server({ name: "zswarm", version }, { capabilities: { tools: {} } });
7
9
  server.setRequestHandler(ListToolsRequestSchema, async () => ({
8
10
  tools: [
9
11
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zswarm/mcp",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
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.2"
11
+ "@zswarm/core": "0.1.4"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@types/node": "22.14.1",