vault-cortex 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/docker.js +1 -1
- package/dist/env.js +21 -1
- package/package.json +4 -1
- package/templates/local/docker-compose.yml +2 -1
- package/templates/remote/docker-compose.yml +3 -1
package/README.md
CHANGED
|
@@ -8,7 +8,8 @@ npx vault-cortex@latest init
|
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
Vault Cortex is a standalone, remote-capable MCP server for Obsidian vaults —
|
|
11
|
-
|
|
11
|
+
26 tools for hybrid search (FTS5 + vector + cross-encoder reranking), notes, frontmatter, links, daily notes,
|
|
12
|
+
task queries (Tasks-plugin emoji + Dataview inline-field formats), and
|
|
12
13
|
a structured memory layer, plus 3 guided prompts (orientation, memory review,
|
|
13
14
|
daily review). It runs as a Docker container; this CLI scaffolds the config so
|
|
14
15
|
you don't have to.
|
package/dist/docker.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { spawnSync } from "node:child_process";
|
|
2
2
|
/** The image whose `get-token` entrypoint issues Obsidian Sync auth tokens. */
|
|
3
|
-
export const OBSIDIAN_SYNC_IMAGE = "ghcr.io/
|
|
3
|
+
export const OBSIDIAN_SYNC_IMAGE = "ghcr.io/belphemur/obsidian-headless-sync-docker:latest";
|
|
4
4
|
export const createDockerRunner = () => ({
|
|
5
5
|
isComposeAvailable: () => spawnSync("docker", ["compose", "version"]).status === 0,
|
|
6
6
|
isDaemonRunning: () => spawnSync("docker", ["info"], { timeout: 5_000 }).status === 0,
|
package/dist/env.js
CHANGED
|
@@ -17,6 +17,13 @@ const LOCAL_OPTIONAL_BLOCK = `# Optional ─────────────
|
|
|
17
17
|
# Set to false to disable model download and use FTS5 search only.
|
|
18
18
|
# EMBEDDING_ENABLED=true
|
|
19
19
|
|
|
20
|
+
# Reranking mode for hybrid search results (default: blended).
|
|
21
|
+
# "blended" uses a cross-encoder to refine result ordering with
|
|
22
|
+
# position-aware score blending (~200ms added latency).
|
|
23
|
+
# "none" skips reranking for lower latency.
|
|
24
|
+
# Only takes effect when EMBEDDING_ENABLED=true.
|
|
25
|
+
# RERANK_MODE=blended
|
|
26
|
+
|
|
20
27
|
# Enable or disable the memory layer (default: true).
|
|
21
28
|
# Set to false to hide memory tools and skip About Me/ creation.
|
|
22
29
|
# MEMORY_ENABLED=true
|
|
@@ -36,6 +43,12 @@ const LOCAL_OPTIONAL_BLOCK = `# Optional ─────────────
|
|
|
36
43
|
|
|
37
44
|
# Days to retain persistent log files before cleanup (default: 30).
|
|
38
45
|
# LOG_RETENTION_DAYS=30
|
|
46
|
+
|
|
47
|
+
# Windows users: set this to true. Makes a vault stored on a C: drive work
|
|
48
|
+
# through Docker Desktop (switches the file watcher to polling and note moves
|
|
49
|
+
# to rename-based writes). Only strictly needed when your vault is on a C:
|
|
50
|
+
# drive rather than inside WSL2, but harmless to enable for any Windows setup.
|
|
51
|
+
# WINDOWS_MODE=true
|
|
39
52
|
`;
|
|
40
53
|
const REMOTE_OPTIONAL_BLOCK = `# Optional ──────────────────────────────────────────────────
|
|
41
54
|
# To override a setting: uncomment it, set a value, then apply with
|
|
@@ -52,6 +65,13 @@ const REMOTE_OPTIONAL_BLOCK = `# Optional ────────────
|
|
|
52
65
|
# Set to false to disable model download and use FTS5 search only.
|
|
53
66
|
# EMBEDDING_ENABLED=true
|
|
54
67
|
|
|
68
|
+
# Reranking mode for hybrid search results (default: blended).
|
|
69
|
+
# "blended" uses a cross-encoder to refine result ordering with
|
|
70
|
+
# position-aware score blending (~200ms added latency).
|
|
71
|
+
# "none" skips reranking for lower latency.
|
|
72
|
+
# Only takes effect when EMBEDDING_ENABLED=true.
|
|
73
|
+
# RERANK_MODE=blended
|
|
74
|
+
|
|
55
75
|
# Enable or disable the memory layer (default: true).
|
|
56
76
|
# Set to false to hide memory tools and skip About Me/ creation.
|
|
57
77
|
# MEMORY_ENABLED=true
|
|
@@ -107,7 +127,7 @@ VAULT_PASSWORD=${answers.vaultPassword}`;
|
|
|
107
127
|
? `# Obsidian Sync auth token — FILL THIS IN before docker compose up.
|
|
108
128
|
# Generate once with:
|
|
109
129
|
# docker run --rm -it --entrypoint get-token \\
|
|
110
|
-
# ghcr.io/
|
|
130
|
+
# ghcr.io/belphemur/obsidian-headless-sync-docker:latest`
|
|
111
131
|
: `# Obsidian Sync auth token.`;
|
|
112
132
|
return `# vault-cortex — remote quickstart (Obsidian Sync)
|
|
113
133
|
# Generated by \`npx vault-cortex init\`. Full option reference:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vault-cortex",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Set up a Vault Cortex MCP server for your Obsidian vault in one command: npx vault-cortex init",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -37,7 +37,10 @@
|
|
|
37
37
|
"note-taking",
|
|
38
38
|
"second-brain",
|
|
39
39
|
"hybrid-search",
|
|
40
|
+
"task-management",
|
|
40
41
|
"semantic-search",
|
|
42
|
+
"cross-encoder",
|
|
43
|
+
"reranking",
|
|
41
44
|
"cli"
|
|
42
45
|
],
|
|
43
46
|
"dependencies": {
|
|
@@ -26,6 +26,7 @@ services:
|
|
|
26
26
|
MCP_AUTH_TOKEN: "${MCP_AUTH_TOKEN:?Set MCP_AUTH_TOKEN in .env — see .env.example}"
|
|
27
27
|
PUBLIC_URL: ${PUBLIC_URL:-http://localhost:8000}
|
|
28
28
|
EMBEDDING_ENABLED: ${EMBEDDING_ENABLED:-true}
|
|
29
|
+
RERANK_MODE: ${RERANK_MODE:-blended}
|
|
29
30
|
MEMORY_ENABLED: ${MEMORY_ENABLED:-true}
|
|
30
31
|
MEMORY_DIR: ${MEMORY_DIR:-About Me}
|
|
31
32
|
LOG_LEVEL: ${LOG_LEVEL:-info}
|
|
@@ -34,7 +35,7 @@ services:
|
|
|
34
35
|
TZ: ${TZ:-UTC}
|
|
35
36
|
# Windows: set WINDOWS_MODE=true in .env when your vault is on a C: drive
|
|
36
37
|
# (polling watcher + rename-based moves across the Docker Desktop/WSL2 bridge).
|
|
37
|
-
WINDOWS_MODE: ${WINDOWS_MODE:-}
|
|
38
|
+
WINDOWS_MODE: ${WINDOWS_MODE:-false}
|
|
38
39
|
# Optional overrides. When unset, the server applies smart defaults
|
|
39
40
|
# (<MEMORY_DIR> below is the resolved MEMORY_DIR value, default "About Me"):
|
|
40
41
|
# PROTECTED_PATHS default: "<MEMORY_DIR>, Daily Notes" (blocked from vault_delete_note)
|
|
@@ -13,8 +13,9 @@ name: vault-cortex
|
|
|
13
13
|
|
|
14
14
|
services:
|
|
15
15
|
obsidian-sync:
|
|
16
|
-
image: ghcr.io/
|
|
16
|
+
image: ghcr.io/belphemur/obsidian-headless-sync-docker:latest
|
|
17
17
|
container_name: obsidian-sync
|
|
18
|
+
hostname: ${DEVICE_NAME:-vault-cortex}
|
|
18
19
|
restart: unless-stopped
|
|
19
20
|
environment:
|
|
20
21
|
OBSIDIAN_AUTH_TOKEN: "${OBSIDIAN_AUTH_TOKEN:?Set OBSIDIAN_AUTH_TOKEN — see .env.example}"
|
|
@@ -54,6 +55,7 @@ services:
|
|
|
54
55
|
MCP_AUTH_TOKEN: "${MCP_AUTH_TOKEN:?Set MCP_AUTH_TOKEN in .env — see .env.example}"
|
|
55
56
|
PUBLIC_URL: "${PUBLIC_URL:?Set PUBLIC_URL to your server's public URL}"
|
|
56
57
|
EMBEDDING_ENABLED: ${EMBEDDING_ENABLED:-true}
|
|
58
|
+
RERANK_MODE: ${RERANK_MODE:-blended}
|
|
57
59
|
MEMORY_ENABLED: ${MEMORY_ENABLED:-true}
|
|
58
60
|
MEMORY_DIR: ${MEMORY_DIR:-About Me}
|
|
59
61
|
LOG_LEVEL: ${LOG_LEVEL:-info}
|