mcp-swarm 1.0.5 → 1.0.6

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
@@ -599,11 +599,7 @@ curl "https://api.telegram.org/botYOUR_TOKEN/setWebhook?url=https://mcp-swarm-te
599
599
 
600
600
  ### Step 4: Configure Your IDE
601
601
 
602
- **Option A: Remote (recommended)**
603
-
604
- ```bash
605
- npm install -g mcp-swarm
606
- ```
602
+ **Option A: Remote (recommended) — v1.0.5**
607
603
 
608
604
  ```json
609
605
  {
@@ -611,17 +607,36 @@ npm install -g mcp-swarm
611
607
  "mcp-swarm": {
612
608
  "command": "npx",
613
609
  "args": [
614
- "-y",
615
- "-p", "mcp-swarm",
610
+ "-y", "-p", "mcp-swarm",
616
611
  "mcp-swarm-remote",
617
- "--url", "https://mcp-swarm-server.YOUR-SUBDOMAIN.workers.dev/mcp",
618
- "--telegram-user-id", "YOUR_TELEGRAM_ID"
619
- ]
612
+ "--url", "https://mcp-swarm-server.YOUR-SUBDOMAIN.workers.dev/mcp"
613
+ ],
614
+ "env": {
615
+ "SWARM_HUB_URL": "wss://mcp-swarm-hub.YOUR-SUBDOMAIN.workers.dev/ws"
616
+ }
620
617
  }
621
618
  }
622
619
  }
623
620
  ```
624
621
 
622
+ > 💡 `npx -y -p mcp-swarm` automatically downloads the **latest version** from npm (currently 1.0.5).
623
+
624
+ **What happens when Remote starts:**
625
+
626
+ ```
627
+ 1. npx downloads mcp-swarm@latest from npm
628
+ 2. mcp-swarm-remote starts → checks if companion is running
629
+ 3. If not → starts companion with:
630
+ • MCP_SERVER_URL (from --url) → Bridge auto-connects to your Worker
631
+ • SWARM_HUB_URL (from env) → WebSocket to Hub for coordination
632
+ 4. Companion starts:
633
+ • Bridge → WebSocket → MCP Server Worker (executes 26 tools locally)
634
+ • Hub → WebSocket → Hub Worker (real-time agent sync)
635
+ 5. All 26 smart tools work! ✅
636
+ ```
637
+
638
+ ---
639
+
625
640
  **Option B: Local with Hub**
626
641
 
627
642
  ```json
@@ -639,14 +654,26 @@ npm install -g mcp-swarm
639
654
  }
640
655
  ```
641
656
 
657
+ **What happens when Local starts:**
658
+
659
+ ```
660
+ 1. Node.js runs serverSmart.js directly (no npm download)
661
+ 2. MCP server starts as stdio process → IDE connects via stdin/stdout
662
+ 3. All 26 tools execute locally — no bridge needed
663
+ 4. Hub connection (optional) → real-time sync between agents
664
+ ```
665
+
666
+ ---
667
+
642
668
  ### 🔄 Comparison
643
669
 
644
- | Feature | Remote | Local+Hub |
645
- |---------|--------|-----------|
646
- | Setup | `npm i -g mcp-swarm` | `git clone && npm build` |
647
- | Config | Short | Longer |
648
- | Data | Your Worker | Local |
649
- | Offline | | (with Hub fallback) |
670
+ | Feature | Remote (A) | Local (B) |
671
+ |---------|------------|-----------|
672
+ | Install | `npx` auto-downloads latest | `git clone && npm build` |
673
+ | Tools | 26 via Bridge | 26 directly |
674
+ | Multi-PC | Works from any machine | Only where installed |
675
+ | Updates | Auto (npx latest) | Manual (`git pull && build`) |
676
+ | Offline | ❌ Needs internet | ✅ Works offline |
650
677
  | Latency | ~50–100ms | <10ms |
651
678
 
652
679
  ### ❓ What is YOUR-SUBDOMAIN?
@@ -0,0 +1,75 @@
1
+ ## 🌉 v1.0.5 — Full Bridge Coverage (All 26 Smart Tools via Remote)
2
+
3
+ ### Fixed
4
+ - **Critical: Bridge auto-start** — `mcp-swarm-remote` now passes `MCP_SERVER_URL` to companion daemon. Previously the companion couldn't know where to connect, so all remote tool calls returned `{ bridgeConnected: false }`.
5
+
6
+ ### Changed
7
+ - **Universal bridge delegation** — `bridge.ts` now imports `allSmartTools` handlers and delegates ALL tool calls (was only 3 tools with limited actions).
8
+ - **Simplified tool routing** — `toolNeedsBridge()` simplified to `toolName.startsWith("swarm_")` — routes ALL swarm tools through bridge.
9
+
10
+ ### Configuration
11
+
12
+ **Option A: Remote (recommended)**
13
+
14
+ ```json
15
+ {
16
+ "mcpServers": {
17
+ "mcp-swarm": {
18
+ "command": "npx",
19
+ "args": [
20
+ "-y", "-p", "mcp-swarm",
21
+ "mcp-swarm-remote",
22
+ "--url", "https://mcp-swarm-server.YOUR-SUBDOMAIN.workers.dev/mcp"
23
+ ],
24
+ "env": {
25
+ "SWARM_HUB_URL": "wss://mcp-swarm-hub.YOUR-SUBDOMAIN.workers.dev/ws"
26
+ }
27
+ }
28
+ }
29
+ }
30
+ ```
31
+
32
+ **Option B: Local with Hub**
33
+
34
+ ```json
35
+ {
36
+ "mcpServers": {
37
+ "mcp-swarm": {
38
+ "command": "node",
39
+ "args": ["C:/path/to/Swarm_MCP/dist/serverSmart.js"],
40
+ "env": {
41
+ "SWARM_HUB_URL": "wss://mcp-swarm-hub.YOUR-SUBDOMAIN.workers.dev/ws"
42
+ }
43
+ }
44
+ }
45
+ }
46
+ ```
47
+
48
+ ### What Happens at Startup (Remote)
49
+
50
+ ```
51
+ 1. npx downloads mcp-swarm@latest from npm (currently 1.0.5)
52
+ 2. mcp-swarm-remote starts → checks if companion is running
53
+ 3. If not → starts companion with:
54
+ • MCP_SERVER_URL (from --url) → Bridge auto-connects to your Worker
55
+ • SWARM_HUB_URL (from env) → WebSocket to Hub for coordination
56
+ 4. Companion starts:
57
+ • Bridge → WebSocket → MCP Server Worker (executes 26 tools locally)
58
+ • Hub → WebSocket → Hub Worker (real-time agent sync)
59
+ 5. All 26 smart tools work! ✅
60
+ ```
61
+
62
+ ### Stats
63
+
64
+ | Metric | v1.0.4 | v1.0.5 |
65
+ |--------|--------|--------|
66
+ | Tools via bridge | 3 | **26** |
67
+ | Bridge auto-start | ❌ | ✅ |
68
+ | `executeLocalTool()` | 82 lines | **40 lines** |
69
+ | `toolNeedsBridge()` | 21 lines | **4 lines** |
70
+
71
+ ### Upgrade
72
+
73
+ ```bash
74
+ npm install -g mcp-swarm@latest
75
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-swarm",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Universal AI agent coordination platform with 26 consolidated smart tools, 21 AI models (Kimi K2.5, GPT-5.3, Opus 4.6), EWC++ self-learning, semantic caching, and Q-Learning routing",