@swarmify/agents-mcp 0.2.9 → 0.2.10

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.
Files changed (2) hide show
  1. package/README.md +110 -14
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,19 +4,62 @@
4
4
  [![License](https://img.shields.io/badge/License-MIT-yellow)](./LICENSE)
5
5
  [![Node](https://img.shields.io/badge/Node-%3E%3D18.17-green)](https://nodejs.org)
6
6
 
7
- **Turn any agent into a tech lead.** Spawn sub-agents from Claude, Codex, Gemini, or any MCP client.
7
+ **SubAgents and Swarms for any MCP client.** Spawn parallel agents from Claude, Codex, Gemini, or any tool that speaks MCP.
8
8
 
9
9
  Part of [Swarmify](https://github.com/muqsitnawaz/swarmify) - multi-agent coding in your IDE.
10
10
 
11
11
  [Homepage](https://swarmify.co/#agents-mcp) | [NPM](https://www.npmjs.com/package/@swarmify/agents-mcp) | [VS Code Extension](https://marketplace.visualstudio.com/items?itemName=swarmify.swarm-ext) | [Demo Video](https://www.youtube.com/watch?v=rbeoKhDxK8E)
12
12
 
13
- ## You don't need one agent. You need a team.
13
+ ## Cross-Platform Agent Orchestration
14
14
 
15
- A single agent handles one thing at a time. Add this MCP server, and your agent becomes a tech lead: it can spawn sub-agents, assign them specific files, give them project context, and synthesize their results. Claude researches while Codex implements while Cursor debugs - in parallel.
15
+ ```
16
+ MCP Protocol
17
+ |
18
+ +---------------------+---------------------+
19
+ | | |
20
+ Claude Code Codex Gemini CLI
21
+ (MCP Client) (MCP Client) (MCP Client)
22
+ | | |
23
+ +---------------------+---------------------+
24
+ |
25
+ +-------------------+
26
+ | agents-mcp |
27
+ | (MCP Server) |
28
+ +-------------------+
29
+ |
30
+ +---------------------+---------------------+
31
+ | | |
32
+ claude CLI codex CLI gemini CLI
33
+ (SubAgent) (SubAgent) (SubAgent)
34
+ ```
35
+
36
+ **Any client can spawn any agent.** Claude can spawn Codex. Gemini can spawn Claude. Cursor can spawn all three. The MCP protocol is the universal interface that makes this interoperability possible.
37
+
38
+ ## SubAgents and Swarms
39
+
40
+ This server enables two multi-agent patterns:
41
+
42
+ **SubAgents** - Hierarchical delegation where an orchestrator spawns specialized agents for specific tasks. Each agent works in isolation and reports back to the parent.
43
+
44
+ **Swarms** - Multiple agents working in parallel on different parts of a problem. The orchestrator coordinates, assigns non-overlapping files, and synthesizes results.
45
+
46
+ Both patterns use the same four tools. The orchestrator decides the pattern.
47
+
48
+ ### Why Cross-Platform Matters
49
+
50
+ Without this server, each agent is siloed:
51
+ - Claude Code has built-in subagents, but only Claude
52
+ - Codex has no native subagent support
53
+ - Gemini CLI has no native subagent support
54
+
55
+ With this server, every MCP client gets the same capabilities:
56
+ - Spawn agents from any provider (Anthropic, OpenAI, Google)
57
+ - Mix and match: Claude for research, Codex for speed, Gemini for breadth
58
+ - Use each agent's strengths for different parts of a task
16
59
 
17
60
  **4 tools:** `Spawn`, `Status`, `Stop`, `Tasks`
18
61
  **3 modes:** `plan` (read-only), `edit` (can write), `ralph` (autonomous)
19
- **Background processes:** Sub-agents run headless, survive IDE restarts
62
+ **Background processes:** Agents run headless, survive IDE restarts
20
63
 
21
64
  ## Quick Start
22
65
 
@@ -35,21 +78,42 @@ opencode mcp add
35
78
  # Name: Swarm, Command: npx -y @swarmify/agents-mcp
36
79
  ```
37
80
 
38
- The server auto-discovers which agent CLIs you have installed.
81
+ The server auto-discovers which agent CLIs you have installed. Once connected, your agent gains the ability to spawn and coordinate other agents.
39
82
 
40
83
  ## What It Costs
41
84
 
42
85
  This server is free and open source.
43
86
 
44
- Each sub-agent uses your own API keys. Spawning 3 Claude agents means 3x your normal Claude API cost. No hidden fees.
87
+ Each agent uses your own API keys. Spawning 3 Claude agents means 3x your normal Claude API cost. No hidden fees.
45
88
 
46
- ## Try It
89
+ ## Example: Swarm in Action
47
90
 
48
- After installing, try this in Claude:
91
+ After installing, try this in Claude Code:
49
92
 
50
93
  > Spawn a codex agent to add input validation to src/api/users.ts, and a claude agent to review the security implications
51
94
 
52
- The orchestrating agent will use `Spawn` and `Status` to coordinate both sub-agents.
95
+ The orchestrating agent spawns both agents in parallel:
96
+
97
+ ```
98
+ Claude Code (Orchestrator)
99
+ |
100
+ +-- Spawn(codex, "add input validation to src/api/users.ts")
101
+ | |
102
+ | v
103
+ | Codex Agent -----> modifies src/api/users.ts
104
+ |
105
+ +-- Spawn(claude, "review security implications")
106
+ |
107
+ v
108
+ Claude Agent -----> analyzes changes, reports findings
109
+ |
110
+ +-- Status(task_name) -----> polls for completion
111
+ |
112
+ v
113
+ Synthesizes results from both agents
114
+ ```
115
+
116
+ The orchestrator decides when to spawn, what to assign, and how to combine results. The MCP server just provides the tools.
53
117
 
54
118
  ![Swarm Dashboard](docs/swarm-1.png)
55
119
 
@@ -160,7 +224,43 @@ The server is a tool. Your orchestrating agent (Claude, etc.) decides how to use
160
224
 
161
225
  ## Under the Hood
162
226
 
163
- Sub-agents run as detached background processes. Output streams to `~/.agents/agents/{id}/stdout.log`.
227
+ ### How Agents Communicate
228
+
229
+ Agents communicate through the filesystem, not shared memory:
230
+
231
+ ```
232
+ Orchestrator SubAgent
233
+ | |
234
+ +-- Spawn ------------------> |
235
+ | |
236
+ | writes to stdout
237
+ | |
238
+ | ~/.agents/agents/{id}/stdout.log
239
+ | |
240
+ +-- Status -----------------> reads log, parses events
241
+ | |
242
+ <-- files changed, messages ---+
243
+ | |
244
+ +-- (repeat until done) -------+
245
+ ```
246
+
247
+ Each agent writes to its own log file (`stdout.log`). The Status tool reads these logs, normalizes events across different agent formats, and returns a summary. This design means:
248
+
249
+ - **Persistence**: Agents survive IDE restarts. Reconnect via Status/Tasks.
250
+ - **Debugging**: Full logs available at `~/.agents/agents/{id}/`
251
+ - **No shared state**: Agents don't talk to each other directly. The orchestrator coordinates.
252
+
253
+ ### Storage
254
+
255
+ Data lives at `~/.agents/`:
256
+ ```
257
+ ~/.agents/
258
+ config.json # Agent configuration
259
+ agents/
260
+ {agent-id}/
261
+ metadata.json # task, type, mode, status
262
+ stdout.log # Raw agent output
263
+ ```
164
264
 
165
265
  **Plan mode** is read-only:
166
266
  - Claude: `--permission-mode plan`
@@ -189,10 +289,6 @@ Config lives at `~/.agents/config.json`. See [AGENTS.md](./AGENTS.md) for full c
189
289
 
190
290
  This MCP server works standalone with any MCP client. For the best experience - full-screen agent terminals, session persistence, fast navigation - install the [Agents extension](https://marketplace.visualstudio.com/items?itemName=swarmify.swarm-ext) for VS Code/Cursor.
191
291
 
192
- ## Storage
193
-
194
- Data at `~/.agents/`. Requires Node.js >= 18.17.
195
-
196
292
  ## License
197
293
 
198
294
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swarmify/agents-mcp",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "description": "True multi-agent coding in your IDE. Spawn Claude, Codex, Gemini, and Cursor agents from a single MCP server.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",