claude-mem-copilot
v0.1.0
Published
VS Code Copilot MCP server and hooks for Claude-Mem project memory.
Maintainers
Readme
claude-mem-copilot
VS Code Copilot MCP server and hook bridge for Claude-Mem project memory.
This package lets Copilot query Claude-Mem through MCP tools and, when VS Code Copilot hooks are enabled, capture useful session/tool events back into Claude-Mem.
VS Code Copilot hooks are currently preview functionality. Keep this package on
0.xuntil the hook contract is stable.
Requirements
- Node.js 20 or newer.
- Claude-Mem installed and its worker running locally.
- Claude-Mem worker reachable at
http://127.0.0.1:37777or configured with environment variables.
Quickstart
npx claude-mem-copilot setup --adapter vscode-copilotThen restart or reload VS Code and check the MCP server/tools in Copilot Chat.
Run diagnostics:
npx claude-mem-copilot doctorManual MCP Setup
Add this to .vscode/mcp.json:
{
"servers": {
"claude-mem-copilot": {
"type": "stdio",
"command": "npx",
"args": ["-y", "claude-mem-copilot"]
}
}
}Manual Hook Setup
Add .github/hooks/claude-mem-copilot.json:
{
"hooks": {
"SessionStart": [
{ "type": "command", "command": "npx -y claude-mem-copilot hook vscode-copilot sessionstart" }
],
"PreToolUse": [
{ "type": "command", "command": "npx -y claude-mem-copilot hook vscode-copilot pretooluse" }
],
"PostToolUse": [
{ "type": "command", "command": "npx -y claude-mem-copilot hook vscode-copilot posttooluse" }
],
"PreCompact": [
{ "type": "command", "command": "npx -y claude-mem-copilot hook vscode-copilot precompact" }
]
}
}MCP Tools
cmem_statuscmem_projectscmem_searchcmem_timelinecmem_get_observationscmem_recent_contextcmem_start_project_sessioncmem_remembercmem_remember_decisioncmem_remember_changecmem_summarize_project_sessioncmem_complete_project_session
Configuration
Environment variables:
CLAUDE_MEM_WORKER_HOST, default127.0.0.1CLAUDE_MEM_WORKER_PORT, default37777CLAUDE_MEM_WORKER_URL, overrides host/portCLAUDE_MEM_TIMEOUT_MS, default10000
Development
npm install
npm run build
npm test
npm run dev -- doctorPrivacy
This bridge sends selected Copilot tool activity and explicit memory notes to the local Claude-Mem worker. Do not store secrets, tokens, credentials, or private personal data in memory.
License
MIT
