Skip to content

Commit b131fcc

Browse files
spranabclaude
andcommitted
npm package name: swarmcode-mcp (swarmcode was too similar to swarm-code)
Brand is SwarmCode, npm package is swarmcode-mcp. All npx references updated. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e5cd49d commit b131fcc

7 files changed

Lines changed: 24 additions & 24 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Desktop (VS Code) Laptop (VS Code) Server
4141
### 1. Install
4242

4343
```bash
44-
npm install -g swarmcode
44+
npm install -g swarmcode-mcp
4545
```
4646

4747
### 2. Start Redis (or use an existing one)
@@ -53,7 +53,7 @@ docker run -d --name redis -p 6379:6379 redis:alpine
5353
### 3. Initialize a workspace
5454

5555
```bash
56-
swarmcode init my-workspace --redis redis://your-redis:6379
56+
swarmcode-mcp init my-workspace --redis redis://your-redis:6379
5757
```
5858

5959
That's it. Restart Claude Code. Your workspace is connected.

docs/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ <h1>The missing <span>networking layer</span> for Claude Code</h1>
112112
<svg width="18" height="18" viewBox="0 0 16 16" fill="currentColor"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path></svg>
113113
GitHub
114114
</a>
115-
<a href="https://www.npmjs.com/package/swarmcode" class="btn btn-secondary">
115+
<a href="https://www.npmjs.com/package/swarmcode-mcp" class="btn btn-secondary">
116116
npm &rarr;
117117
</a>
118118
</div>
@@ -125,10 +125,10 @@ <h1>The missing <span>networking layer</span> for Claude Code</h1>
125125
</div>
126126
<div class="terminal-body">
127127
<div class="comment"># Install</div>
128-
<div class="cmd">$ npm install -g swarmcode</div>
128+
<div class="cmd">$ npm install -g swarmcode-mcp</div>
129129
<br>
130130
<div class="comment"># Initialize any workspace (one command)</div>
131-
<div class="cmd">$ swarmcode init desktop-api --redis redis://your-host:6379</div>
131+
<div class="cmd">$ swarmcode-mcp init desktop-api --redis redis://your-host:6379</div>
132132
<div class="output">&#10003; .mcp.json &mdash; workspace_id: "desktop-api"</div>
133133
<div class="output">&#10003; .claude/settings.json &mdash; hook: UserPromptSubmit</div>
134134
<div class="output">&#10003; Registered &mdash; 3 other workspace(s) online</div>
@@ -181,7 +181,7 @@ <h3>Web Dashboard</h3>
181181
<div class="feature-card">
182182
<div class="feature-icon">&#x1f680;</div>
183183
<h3>One Command Setup</h3>
184-
<p>npx swarmcode init my-workspace --redis redis://host:6379. Creates config, sets up hooks, registers. Done.</p>
184+
<p>npx swarmcode-mcp init my-workspace --redis redis://host:6379. Creates config, sets up hooks, registers. Done.</p>
185185
</div>
186186
</div>
187187
</div>
@@ -310,14 +310,14 @@ <h3>Listener restarts &rarr; loop continues</h3>
310310
<div class="cta">
311311
<h2>Get started in 30 seconds</h2>
312312
<p>All you need is Node.js and a Redis instance.</p>
313-
<div class="install-box">npm install -g swarmcode</div>
313+
<div class="install-box">npm install -g swarmcode-mcp</div>
314314
<div style="margin-top: 24px;">
315315
<a href="https://github.com/spranab/swarmcode" class="btn btn-primary">View on GitHub</a>
316316
</div>
317317
</div>
318318

319319
<footer>
320-
Built by <a href="https://github.com/spranab">Pranab Sarkar</a> &middot; MIT License &middot; <a href="https://github.com/spranab/swarmcode">GitHub</a> &middot; <a href="https://www.npmjs.com/package/swarmcode">npm</a>
320+
Built by <a href="https://github.com/spranab">Pranab Sarkar</a> &middot; MIT License &middot; <a href="https://github.com/spranab/swarmcode">GitHub</a> &middot; <a href="https://www.npmjs.com/package/swarmcode-mcp">npm</a>
321321
</footer>
322322

323323
</body>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "swarmcode",
2+
"name": "swarmcode-mcp",
33
"version": "1.0.0",
44
"description": "SwarmCode — real-time networking between Claude Code instances. Your AI agents talk to each other across machines, workspaces, and conversations.",
55
"type": "module",

src/channel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Your workspace_id is "${WORKSPACE_ID}".
106106
## CRITICAL: Do BOTH of these at the start of every conversation:
107107
108108
### 1. Start the background listener (real-time push):
109-
Bash(run_in_background=true, timeout=600000): SWARMCODE_REDIS_URL=${REDIS_URL} SWARMCODE_WORKSPACE_ID=${WORKSPACE_ID} npx -y swarmcode listen
109+
Bash(run_in_background=true, timeout=600000): SWARMCODE_REDIS_URL=${REDIS_URL} SWARMCODE_WORKSPACE_ID=${WORKSPACE_ID} npx -y swarmcode-mcp listen
110110
111111
### 2. Set up a cron to check every 5 minutes (backup polling):
112112
CronCreate(cron="*/5 * * * *", prompt="Check swarmcode inbox. Call swarm_receive from swarmcode. If there are messages, process them — reply to questions with swarm_send, acknowledge info, act on requests.")

src/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ delete mcpConfig.mcpServers["agent-bridge-channel"];
4141
// SwarmCode MCP server
4242
mcpConfig.mcpServers["swarmcode"] = {
4343
command: "npx",
44-
args: ["-y", "swarmcode", "channel"],
44+
args: ["-y", "swarmcode-mcp", "channel"],
4545
env: {
4646
SWARMCODE_REDIS_URL: redisUrl,
4747
SWARMCODE_WORKSPACE_ID: workspaceId,
@@ -66,7 +66,7 @@ if (existsSync(settingsPath)) {
6666

6767
const hookEntry = {
6868
matcher: "",
69-
hooks: [{ type: "command", command: `SWARMCODE_REDIS_URL=${redisUrl} SWARMCODE_WORKSPACE_ID=${workspaceId} npx -y swarmcode check`, timeout: 5000 }],
69+
hooks: [{ type: "command", command: `SWARMCODE_REDIS_URL=${redisUrl} SWARMCODE_WORKSPACE_ID=${workspaceId} npx -y swarmcode-mcp check`, timeout: 5000 }],
7070
};
7171

7272
settings.hooks = settings.hooks || {};

src/listener.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ sub.on("message", async (_ch, raw) => {
5050
console.log(`\nYou MUST do ALL of these in order:`);
5151
console.log(`1. Call swarm_receive() to mark as read`);
5252
console.log(`2. Reply with swarm_send(to: "${msg.from}", type: "answer", content: "your reply")`);
53-
console.log(`3. IMMEDIATELY run: Bash(run_in_background=true, timeout=600000): npx -y swarmcode listen`);
53+
console.log(`3. IMMEDIATELY run: Bash(run_in_background=true, timeout=600000): npx -y swarmcode-mcp listen`);
5454
} catch {}
5555

5656
await sub.quit();
5757
process.exit(0);
5858
});
5959

6060
setTimeout(async () => {
61-
console.log("Listener timeout — no messages. Restart with: Bash(run_in_background=true, timeout=600000): npx -y swarmcode listen");
61+
console.log("Listener timeout — no messages. Restart with: Bash(run_in_background=true, timeout=600000): npx -y swarmcode-mcp listen");
6262
await sub.quit();
6363
process.exit(0);
6464
}, 10 * 60 * 1000);

src/server.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
* SwarmCode CLI entry point.
55
*
66
* Usage:
7-
* swarmcode init <workspace-id> [--redis <redis-url>]
8-
* swarmcode channel (starts the MCP server — normally spawned by Claude Code)
9-
* swarmcode listen (starts the one-shot Redis listener — background task)
10-
* swarmcode check (quick inbox check — used by hooks)
7+
* swarmcode-mcp init <workspace-id> [--redis <redis-url>]
8+
* swarmcode-mcp channel (starts the MCP server — normally spawned by Claude Code)
9+
* swarmcode-mcp listen (starts the one-shot Redis listener — background task)
10+
* swarmcode-mcp check (quick inbox check — used by hooks)
1111
*/
1212

1313
const cmd = process.argv[2];
@@ -23,11 +23,11 @@ if (cmd === "init") {
2323
} else {
2424
console.log("SwarmCode — real-time networking between Claude Code instances\n");
2525
console.log("Usage:");
26-
console.log(" swarmcode init <workspace-id> --redis <redis-url>");
27-
console.log(" swarmcode channel (MCP server — spawned by Claude Code)");
28-
console.log(" swarmcode listen (background Redis listener)");
29-
console.log(" swarmcode check (quick inbox check for hooks)\n");
26+
console.log(" swarmcode-mcp init <workspace-id> --redis <redis-url>");
27+
console.log(" swarmcode-mcp channel (MCP server — spawned by Claude Code)");
28+
console.log(" swarmcode-mcp listen (background Redis listener)");
29+
console.log(" swarmcode-mcp check (quick inbox check for hooks)\n");
3030
console.log("Quick start:");
31-
console.log(" npm install -g swarmcode");
32-
console.log(" swarmcode init my-workspace --redis redis://your-redis:6379");
31+
console.log(" npm install -g swarmcode-mcp");
32+
console.log(" swarmcode-mcp init my-workspace --redis redis://your-redis:6379");
3333
}

0 commit comments

Comments
 (0)