Skip to content

Self-hosted MCP server + dashboard giving Claude Code, Cursor & Hermes agents shared long-term memory over a git-backed markdown vault. Agent-native, Obsidian-compatible second brain — markdown RAG, no vector DB.

docs(.env.example): document the OAuth callback/redirect URIs to register

Ronalds Palacisd9593a472447
diff --git a/.env.example b/.env.example
index e935f07..9ede75b 100644
--- a/.env.example
+++ b/.env.example
@@ -11,6 +11,14 @@
AUTH_SECRET="" # openssl rand -base64 32 (or Railway "Generate"). Empty => dashboard OPEN — local only.
APP_URL="" # public base URL, e.g. https://your-app.up.railway.app (Google OAuth redirect base). On Railway: https://${{RAILWAY_PUBLIC_DOMAIN}}
ALLOWED_EMAILS="" # comma-separated Google emails allowed to sign in
+
+# Google OAuth client (Cloud Console → Credentials → Create OAuth client ID → Web application).
+# Register these two, substituting your APP_URL (no trailing slash):
+# Authorized redirect URI: <APP_URL>/api/auth/callback
+# Authorized JavaScript origin: <APP_URL>
+# e.g. with APP_URL=https://engram.up.railway.app →
+# redirect URI: https://engram.up.railway.app/api/auth/callback
+# JS origin: https://engram.up.railway.app
GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET=""
@@ -30,7 +38,7 @@ ENGRAM_DATA_DIR="/data"
# GIT_AUTHOR_NAME="Engram"
# GIT_AUTHOR_EMAIL="[email protected]"
# GITHUB_CLIENT_ID="" # "Connect GitHub" repo flow (URL+token path needs no OAuth app)
-# GITHUB_CLIENT_SECRET=""
+# GITHUB_CLIENT_SECRET="" # OAuth app "Authorization callback URL": <APP_URL>/api/github/callback
# HARNESS_ENABLED="false" # brain_capture auto-filing (costs Anthropic tokens)
# ANTHROPIC_API_KEY=""
# CAPTURE_MODEL="claude-haiku-4-5-20251001"