@zswarm/mcp 0.1.1 → 0.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 +2 -1
- package/dist/mcp-server.js +3 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -38,7 +38,8 @@ 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`.
|
|
41
|
+
`ZSWARM_SESSION`. `ZSWARM_SSH` or `ZSWARM_SERVE` routes the same tool at a
|
|
42
|
+
remote crew. Details: the [zswarm README](../../README.md).
|
|
42
43
|
|
|
43
44
|
## License
|
|
44
45
|
|
package/dist/mcp-server.js
CHANGED
|
@@ -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
|
|
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.
|
|
3
|
+
"version": "0.1.3",
|
|
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.
|
|
11
|
+
"@zswarm/core": "0.1.3"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@types/node": "22.14.1",
|