#!/bin/sh # Launcher for the MemPalace MCP server. # # MemPalace is installed via `uv tool install` into an isolated venv # under /opt/uv-tools/. System python3 cannot import mempalace directly, # so this wrapper exec's the venv's python with the mcp_server module. # # Used by opencode.json: # "command": ["mempalace-mcp-server"] exec /opt/uv-tools/mempalace/bin/python -m mempalace.mcp_server "$@"