
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@opitacode/dark-memory-mcp
Advanced tools
dark-memory-mcp cross-platform wrapper  installs the right binary for your OS via optionalDependencies. Persistent memory + vibe-loop engine + agent governance for AI agents (MCP server).
Cross-platform npm wrapper for the dark-memory-mcp MCP server.
This package is a shim. It does not contain the dark-memory-mcp binary itself. Instead, it ships a tiny Node.js script that detects your OS + CPU architecture, then loads the matching platform-specific sub-package (which does contain the real Go binary).
This pattern is the same one used by the official Microsoft MCP server and by npm install itself for native binaries. It lets you install one package name everywhere and let npm pick the right binary for your platform.
For Claude Code / Cursor / VS Code / opencode etc., add this to your MCP host config (~/.config/opencode/opencode.jsonc, ~/Library/Application Support/Claude/claude_desktop_config.json, etc.):
{
"mcpServers": {
"dark-memory": {
"command": "npx",
"args": ["-y", "@opitacode/dark-memory-mcp"]
}
}
}
That's it. The first invocation downloads the wrapper + your platform's binary; subsequent invocations use the npm cache.
npx -y @opitacode/dark-memory-mcp
|
v
node wrapper/index.js <-- this package
| (detects platform + resolves @opitacode/dark-memory-mcp-{platform}-{arch})
v
spawn node platform-package/index.js <-- sub-package
| (locates bin/dark-mem-mcp[.exe])
v
spawn dark-mem-mcp[.exe] <-- real Go MCP server, stdio MCP protocol
All three layers inherit stdio so the JSON-RPC stream from your AI client reaches the Go binary unchanged.
| OS | Arch | Package |
|---|---|---|
| macOS | x64 | @opitacode/dark-memory-mcp-darwin-x64 |
| macOS | arm64 | @opitacode/dark-memory-mcp-darwin-arm64 |
| Linux | x64 | @opitacode/dark-memory-mcp-linux-x64 |
| Linux | arm64 | @opitacode/dark-memory-mcp-linux-arm64 |
| Windows | x64 | @opitacode/dark-memory-mcp-win32-x64 |
| Windows | arm64 | @opitacode/dark-memory-mcp-win32-arm64 |
On Windows, some MCP hosts have trouble invoking npx directly. If you see "command not found" or PATH issues, use the cmd /c wrapper:
{
"mcpServers": {
"dark-memory": {
"command": "cmd",
"args": ["/c", "npx", "-y", "@opitacode/dark-memory-mcp"]
}
}
}
The wrapper passes through all CLI args to the underlying binary. You can also set environment variables:
| Variable | Default | Purpose |
|---|---|---|
DARK_DB | platform user data dir | Where the SQLite DB lives |
SDD_LLM_BASE_URL | (empty) | Base URL for Anthropic-compatible LLM endpoint (e.g. MiniMax) |
ANTHROPIC_API_KEY | (empty) | API key for Anthropic-compatible LLM (drift_judge, mindset) |
OPENAI_API_KEY | (empty) | OpenAI API key (for drift_judge) |
GEMINI_API_KEY | (empty) | Gemini API key (for drift_judge) |
DARK_DRIFT_JUDGE_DAEMON_URL | (empty) | Drift judge daemon endpoint (virtual-key pool) |
Set them in your MCP host config under env:
{
"mcpServers": {
"dark-memory": {
"command": "npx",
"args": ["-y", "@opitacode/dark-memory-mcp"],
"env": {
"DARK_DB": "C:\\Users\\you\\dark-memory.db",
"ANTHROPIC_API_KEY": "sk-ant-..."
}
}
}
}
MIT  same as dark-memory-mcp itself. See LICENSE.
io.github.Opita-Code/dark-memory-mcpFAQs
dark-memory-mcp cross-platform wrapper  installs the right binary for your OS via optionalDependencies. Persistent memory + vibe-loop engine + agent governance for AI agents (MCP server).
We found that @opitacode/dark-memory-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.