Initial commit: Fresh start with current state
This commit is contained in:
23
.claude/tools/start-memory.ps1
Normal file
23
.claude/tools/start-memory.ps1
Normal file
@@ -0,0 +1,23 @@
|
||||
# start-memory.ps1
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
# Get the directory where this script is located
|
||||
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
|
||||
# Navigate to project root (two levels up from .claude\tools\)
|
||||
$ProjectRoot = Split-Path -Parent (Split-Path -Parent $ScriptDir)
|
||||
|
||||
# Create the data directory if it doesn't exist (using absolute path relative to project root)
|
||||
$DataDir = Join-Path $ProjectRoot ".memory-mcp"
|
||||
if (-not (Test-Path $DataDir)) {
|
||||
New-Item -ItemType Directory -Path $DataDir -Force | Out-Null
|
||||
}
|
||||
|
||||
# Set the memory file path as ABSOLUTE path (must be a file, not directory)
|
||||
$env:MEMORY_FILE_PATH = Join-Path $DataDir "knowledge_graph.json"
|
||||
|
||||
# Change to script directory
|
||||
Set-Location $ScriptDir
|
||||
|
||||
# Run the memory MCP server
|
||||
npx -y @modelcontextprotocol/server-memory
|
||||
Reference in New Issue
Block a user