devsh-memory-mcp
v0.2.1
Published
MCP server for devsh/cmux agent memory - enables Claude Desktop and external clients to access sandbox memory and orchestrate multi-agent workflows
Maintainers
Readme
devsh-memory-mcp
MCP server for devsh/cmux agent memory - enables Claude Desktop, Cursor, and other MCP clients to access sandbox agent memory and orchestrate multi-agent workflows.
Installation
npm install -g devsh-memory-mcp
# or
npx devsh-memory-mcpUsage
CLI
# Use default memory directory (/root/lifecycle/memory)
devsh-memory-mcp
# Specify custom directory
devsh-memory-mcp --dir /path/to/memory
# Set agent name for messaging
devsh-memory-mcp --agent my-agentClaude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"devsh-memory": {
"command": "npx",
"args": ["devsh-memory-mcp"]
}
}
}With custom options:
{
"mcpServers": {
"devsh-memory": {
"command": "npx",
"args": ["devsh-memory-mcp", "--dir", "/path/to/memory", "--agent", "claude-desktop"]
}
}
}Available Tools
Read Tools
| Tool | Description |
|------|-------------|
| read_memory | Read knowledge, tasks, or mailbox memory |
| list_daily_logs | List available daily log dates |
| read_daily_log | Read a specific daily log |
| search_memory | Search across all memory files |
Messaging Tools
| Tool | Description |
|------|-------------|
| send_message | Send a message to another agent (or "*" for broadcast) |
| get_my_messages | Get messages addressed to this agent |
| mark_read | Mark a message as read |
Write Tools
| Tool | Description |
|------|-------------|
| append_daily_log | Append content to today's daily log |
| update_knowledge | Add an entry to a priority section (P0/P1/P2) |
| add_task | Add a new task to TASKS.json |
| update_task | Update the status of a task |
Orchestration Tools (Head Agent)
| Tool | Description |
|------|-------------|
| spawn_agent | Spawn a sub-agent to work on a task |
| get_agent_status | Get status of a spawned agent |
| list_spawned_agents | List all agents in current orchestration |
| wait_for_agent | Wait for agent to complete (blocking) |
| cancel_agent | Cancel a running/pending agent |
| get_orchestration_summary | Get dashboard-style orchestration summary |
| pull_orchestration_updates | Sync local PLAN.json with server |
| read_orchestration | Read PLAN.json, AGENTS.json, or EVENTS.jsonl |
| append_event | Append an orchestration event to EVENTS.jsonl |
| update_plan_task | Update task status in PLAN.json |
Environment Variables (Orchestration)
| Variable | Description |
|----------|-------------|
| CMUX_TASK_RUN_JWT | JWT for authenticating orchestration API calls |
| CMUX_ORCHESTRATION_ID | Current orchestration session ID |
| CMUX_API_BASE_URL | API base URL (default: https://cmux.sh) |
Memory Directory Structure
/root/lifecycle/memory/
├── knowledge/
│ └── MEMORY.md # Long-term insights (P0/P1/P2 sections)
├── daily/
│ └── {date}.md # Daily session logs
├── orchestration/
│ ├── PLAN.json # Orchestration task plan
│ ├── AGENTS.json # Agent registry
│ └── EVENTS.jsonl # Orchestration event log
├── TASKS.json # Task registry
└── MAILBOX.json # Inter-agent messagesPriority Tiers (MEMORY.md)
- P0 - Core: Never expires. Project fundamentals, invariants.
- P1 - Active: 90-day TTL. Ongoing work, current strategies.
- P2 - Reference: 30-day TTL. Temporary findings, debug notes.
Format: - [YYYY-MM-DD] Your insight here
