/** * Auto-detect the current project identifier. * * Resolution order: * 1. CLAUDE_PROJECT_DIR env (set by Claude Code for spawned subprocesses; * points at the actual project root regardless of MCP server spawn cwd) * 2. process.cwd() * * From the resolved directory: try `git remote get-url origin` first * (e.g., "user/repo"), then fall back to the directory basename. * * Cached per-directory. Re-keying by directory means the same long-lived * MCP server instance correctly tags memories when reused across projects. */ export declare function detectProjectId(): string;