Skip to content

Cross Tool Setup

Eduards Čemis edited this page Nov 25, 2026 · 1 revision

Cross-Tool Setup Guide

1. Auto-Configure Installed AI Editors

npx -y @cemised/cognitive-memory setup

Auto-detects and registers the MCP server in Antigravity, Claude Code, Claude Desktop, Cursor, Windsurf, GitHub Copilot, and OpenCode.

2. Scopes & Profiles

  • Scopes (scope):
    • local (default): project-specific database (./memory.sqlite or MEMORY_DB_PATH).
    • global: user-wide database (~/.cognitive-memory/global-memory.sqlite or MEMORY_GLOBAL_DB_PATH).
    • all: searches both and merges results cleanly.
  • Profiles (profile):
    • user (default): preferences, communication style, recurring workflows.
    • working: active debugging notes and temporary task context.
    • agent_core: invariant architecture rules and infrastructure pointers.

3. Zero-Copy Markdown Grounding

Attach pointers to raw Obsidian/Markdown files so agents can read authoritative source sections without lossy summarization:

{
  "text": "Deployment runtime uses Node 24 with SQLite WAL",
  "profile": "agent_core",
  "metadata": {
    "ref": {
      "vault_path": "docs/ARCHITECTURE_V2.md",
      "wikilink": "[[ARCHITECTURE_V2#pillar-1]]",
      "section": "Pillar 1"
    }
  }
}

4. Hardened Local HTTP/SSE & Docker Mode

  • Localhost-only by default (MCP_HOST=127.0.0.1, loopback CORS).
  • Non-loopback binding requires MCP_AUTH_TOKEN (verified with timing-safe Bearer comparison):
MCP_AUTH_TOKEN="replace-with-strong-token" docker compose up -d