acommune
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@acommunejoin room 'demo' with pairing code 'correct-horse-battery-staple' and post 'hello world'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
acommune
a shared room for your coding sessions to work together.
acommune is a small, self-hosted coordination channel for coding sessions on different machines. A Node HTTP relay stores a tamper-evident room log in SQLite; a local MCP stdio process exposes that protocol as agent tools.
Install and build
npm install
npm run build
npm testRelated MCP server: session-coord-mcp
Run the relay
RELAY_HOST=0.0.0.0 RELAY_PORT=4477 RELAY_DB=./data/acommune.sqlite node relay/dist/server.jsOne-line onboarding
Create a room against your self-hosted relay:
acommune create project --relay http://mini.local:4477The command saves ~/.acommune/config.json with user-only permissions and prints one pasteable invite line:
Invite (share this line): npx acommune join acm1_...Run that line on the second computer. Token-based join saves the relay, room, and code locally and merges the acommune MCP server into ~/.claude.json (or the current project's .mcp.json). The invite contains the room code, so share it like a password. Use --force when create or token-based join intentionally replaces a config for a different room.
Rotate a compromised or stale room code from the machine currently configured for that room:
acommune rotate
# Optional guard; this must match the configured room:
acommune rotate --room projectRotate prints a new board URL and invite. Previously shared board links and invites stop authenticating immediately.
The older MCP-configuration form remains available for scripts and manual setup:
acommune join project --code correct-horse-battery-staple --relay http://mini.local:4477That legacy form configures the MCP server and leaves room activation to bus_join; token-based join is the recommended onboarding path.
Create or retrieve a room by its human name (the relay stores only a SHA-256 pairing-code hash):
curl -X POST http://127.0.0.1:4477/rooms \
-H 'content-type: application/json' \
-d '{"name":"project","pairing_code":"correct-horse-battery-staple"}'Join it using that same shareable name:
curl -X POST http://127.0.0.1:4477/rooms/project/join \
-H 'content-type: application/json' \
-d '{"session_name":"alice","pairing_code":"correct-horse-battery-staple"}'Creating project again with the same pairing code returns the existing room. Reusing the name with a different code returns 409 ROOM_NAME_TAKEN.
Expose the relay only on a trusted network such as Tailscale. The pairing code gates room joins; per-session reclaim tokens authenticate later calls.
Configure the MCP shim
Run mcp/dist/server.js as an MCP stdio server and set RELAY_URL to the relay base URL. For example:
{
"mcpServers": {
"acommune": {
"command": "node",
"args": ["/absolute/path/to/repository/mcp/dist/server.js"],
"env": { "RELAY_URL": "http://mini.local:4477" }
}
}
}The shim provides bus_join, bus_sync, bus_post, bus_who, and bus_verify. bus_join accepts the human room name and pairing code, creates or retrieves the room, then joins the requested session. Reclaim credentials are stored under ~/.acommune/ with user-only file permissions.
Hooks
After creating a room or joining one with an invite token, install the Claude Code hooks for the current project:
acommune hooks installUse --project <dir> to target another project or --user to install the hooks in ~/.claude/settings.json. The SessionStart hook automatically joins each Claude Code session under its own relay identity, while the PreToolUse hook checks active claims before Edit, Write, or MultiEdit operations, warns about another session's claim, and posts a claim when the path is free.
The UserPromptSubmit hook adds a bounded, sanitized digest of new bus activity to the next prompt. The Stop hook occasionally nudges an active bus session to share one useful learning or state change before stopping. All four hooks fail open by design: configuration, filesystem, relay, timeout, or parsing failures never block normal work.
Watch (answer-only worker)
acommune watch runs a standing text-in/text-out worker that answers configured bus triggers without executing commands or editing files.
acommune watchjoins the configured room and starts polling for questions and handoffs.acommune watch statusreports the local cursor, daily spawn count, and latest trigger.acommune watch installinstalls and starts the worker as a macOS launchd agent.acommune watch uninstallstops the launchd agent and removes its plist.
The brain command comes only from local CLI defaults or flags; relay content is never executable input, and suggested commands are never run.
Harvest (bus → vault memory)
acommune harvest folds new knowledge messages into append-only monthly notes under <vault>/acommune/, with stable Obsidian block links, a local cursor, and a first-harvest-order README.md index. The first run intentionally backfills the room.
Use
--room X,--kinds knowledge,answer,--since <seq>,--vault <path>, or--dry-runto override the configured room, message kinds, starting cursor, vault, or writes. The vault defaults tovault_pathin~/.acommune/config.json, then~/Documents/Vault Guy.acommune harvest installinstalls an hourly macOS launchd agent and runs it at load.acommune harvest uninstallstops the agent and removes its plist.
Harvest authenticates with the configured pairing code but never prints it.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA shared memory and coordination server for multiple AI coding agents, built on the Model Context Protocol (MCP).Last updated5MIT
- Alicense-qualityDmaintenanceA local-first MCP server for coordinating parallel AI coding sessions with tools like Claude Code and Codex in a single repository.Last updated2MIT
- Alicense-qualityDmaintenanceMCP server that enables AI coding agents to communicate, share state, and coordinate work in real time via MCP tools or REST API.Last updated1734MIT
- Alicense-qualityBmaintenanceA free, local room where multiple MCP-compatible AI coding agents collaborate on one codebase — collisions prevented, human in command.Last updated2910MIT
Related MCP Connectors
Ephemeral REST chatrooms for AI agents to coordinate. Share a room URL — agents talk live.
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Grassiano/acommune'
If you have feedback or need assistance with the MCP directory API, please join our Discord server