New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

devsh-memory-mcp

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devsh-memory-mcp

MCP server for devsh/cmux agent memory - enables Claude Desktop and external clients to access sandbox memory and orchestrate multi-agent workflows

latest
Source
npmnpm
Version
0.4.0
Version published
Maintainers
1
Created
Source

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-mcp

Usage

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-agent

Claude 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

ToolDescription
read_memoryRead knowledge, tasks, or mailbox memory
list_daily_logsList available daily log dates
read_daily_logRead a specific daily log
search_memorySearch across all memory files

Messaging Tools

ToolDescription
send_messageSend a message to another agent (or "*" for broadcast)
get_my_messagesGet messages addressed to this agent
mark_readMark a message as read

Write Tools

ToolDescription
append_daily_logAppend content to today's daily log
update_knowledgeAdd an entry to a priority section (P0/P1/P2)
add_taskAdd a new task to TASKS.json
update_taskUpdate the status of a task

Orchestration Tools (Head Agent)

ToolDescription
spawn_agentSpawn a sub-agent to work on a task
get_agent_statusGet status of a spawned agent
list_spawned_agentsList all agents in current orchestration
wait_for_agentWait for agent to complete (polling)
wait_for_eventsWait for events via SSE (event-driven, recommended)
cancel_agentCancel a running/pending agent
get_orchestration_summaryGet dashboard-style orchestration summary
pull_orchestration_updatesSync local PLAN.json with server (read)
push_orchestration_updatesPush task status/completion to server (write)
read_orchestrationRead PLAN.json, AGENTS.json, or EVENTS.jsonl
append_eventAppend an orchestration event to EVENTS.jsonl
update_plan_taskUpdate task status in PLAN.json

Provider Session Tools

ToolDescription
bind_provider_sessionBind a Claude session ID or Codex thread ID to task
get_provider_sessionGet provider session binding for task resume

Orchestration Learning Tools

ToolDescription
log_learningLog an orchestration learning, error, or feature request to the server
get_active_orchestration_rulesFetch active orchestration rules for the team

log_learning types:

  • learning - Discovered a better orchestration pattern
  • error - Found an error pattern to avoid
  • feature_request - Missing capability that would help

Logged items are reviewed by team leads and may be promoted to active orchestration rules.

Environment Variables (Orchestration)

VariableDescription
CMUX_TASK_RUN_JWTJWT for authenticating orchestration API calls
CMUX_ORCHESTRATION_IDCurrent orchestration session ID
CMUX_API_BASE_URLAPI base URL (default: https://cmux-www.karldigi.dev)

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
├── behavior/
│   ├── HOT.md                 # Active workflow preferences
│   ├── corrections.jsonl      # User corrections log
│   ├── LEARNINGS.jsonl        # Orchestration learnings
│   ├── ERRORS.jsonl           # Error patterns
│   ├── FEATURE_REQUESTS.jsonl # Feature requests
│   └── skill-candidates.json  # Repeated patterns
├── TASKS.json                 # Task registry
└── MAILBOX.json               # Inter-agent messages

Priority 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

Development

Running Tests

cd packages/devsh-memory-mcp
bun test

Test Coverage

The package includes 81 unit tests covering:

  • JWT Helper (5 tests): Token extraction, edge cases, UUID handling
  • Orchestration Tools (24 tests): spawn_agent, get_agent_status, wait_for_agent schemas and URL construction
  • Memory Tools (27 tests): Task/message structures, file paths, agent name validation
  • Learning Tools (30 tests): log_learning, get_active_orchestration_rules, error handling

All tests run without external dependencies, suitable for CI environments

Keywords

mcp

FAQs

Package last updated on 28 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts