obsidian-sync-mcp 0.8.0 → 0.9.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 +4 -2
- package/dist/main.js +8 -4
- package/dist/main.js.map +1 -1
- package/dist/{vault-IAH37QM4.js → vault-6H64Y46A.js} +2749 -658
- package/dist/vault-6H64Y46A.js.map +1 -0
- package/package.json +2 -2
- package/dist/vault-IAH37QM4.js.map +0 -1
package/README.md
CHANGED
|
@@ -63,7 +63,7 @@ docker run -p 8787:8787 \
|
|
|
63
63
|
ghcr.io/es617/obsidian-sync-mcp:latest
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
Set `COUCHDB_PASSPHRASE` if you use E2E encryption in LiveSync. Set `COUCHDB_OBFUSCATE_PROPERTIES=true` if "Obfuscate Properties" is also enabled in your LiveSync settings. For an existing vault the server detects the actual setting from the database at startup and corrects a mismatch with a warning; only for a brand-new empty database does the value need to match your LiveSync settings. Set `BASE_URL` to your public URL (required for OAuth callbacks when agents connect over HTTPS).
|
|
66
|
+
Set `COUCHDB_PASSPHRASE` if you use E2E encryption in LiveSync. Set `COUCHDB_OBFUSCATE_PROPERTIES=true` if "Obfuscate Properties" is also enabled in your LiveSync settings. For an existing vault the server detects the actual setting from the database at startup and corrects a mismatch with a warning; only for a brand-new empty database does the value need to match your LiveSync settings. If the vault was created with LiveSync 1.0.33+ and path obfuscation, also set `COUCHDB_ID_DERIVATION_KEY` to your LiveSync recovery code (`sls-id-v1:...`, from "Show current recovery code") so the server can resolve note paths. Set `BASE_URL` to your public URL (required for OAuth callbacks when agents connect over HTTPS).
|
|
67
67
|
|
|
68
68
|
Your MCP endpoint is `https://your-app.fly.dev/mcp` (Fly.io) or `https://your-server:8787/mcp` (Docker behind HTTPS).
|
|
69
69
|
|
|
@@ -170,7 +170,7 @@ VAULT_NAME=MyVault \
|
|
|
170
170
|
npx obsidian-sync-mcp
|
|
171
171
|
```
|
|
172
172
|
|
|
173
|
-
Omit `COUCHDB_PASSPHRASE` if you don't use E2E encryption in LiveSync. Set `COUCHDB_OBFUSCATE_PROPERTIES=true` if "Obfuscate Properties" is also enabled in your LiveSync settings. For an existing vault the server detects the actual setting from the database at startup and corrects a mismatch with a warning; only for a brand-new empty database does the value need to match your LiveSync settings.
|
|
173
|
+
Omit `COUCHDB_PASSPHRASE` if you don't use E2E encryption in LiveSync. Set `COUCHDB_OBFUSCATE_PROPERTIES=true` if "Obfuscate Properties" is also enabled in your LiveSync settings. For an existing vault the server detects the actual setting from the database at startup and corrects a mismatch with a warning; only for a brand-new empty database does the value need to match your LiveSync settings. If the vault was created with LiveSync 1.0.33+ and path obfuscation, also set `COUCHDB_ID_DERIVATION_KEY` to your LiveSync recovery code (`sls-id-v1:...`) so the server can resolve note paths.
|
|
174
174
|
|
|
175
175
|
**Or with Docker:**
|
|
176
176
|
|
|
@@ -250,6 +250,8 @@ Without `MCP_AUTH_TOKEN`, the server runs without authentication — suitable fo
|
|
|
250
250
|
| `COUCHDB_DATABASE` | CouchDB mode | `obsidian` | CouchDB database name. The server never creates it: if it doesn't exist, startup fails with an error |
|
|
251
251
|
| `COUCHDB_PASSPHRASE` | CouchDB mode | — | LiveSync E2E encryption passphrase (must match plugin setting) |
|
|
252
252
|
| `COUCHDB_OBFUSCATE_PROPERTIES` | CouchDB mode | `false` | Set to `true` if "Obfuscate Properties" is enabled in LiveSync (obfuscates file paths, sizes, dates in the database). For existing vaults the actual setting is auto-detected at startup; this value only decides the format for a brand-new empty database |
|
|
253
|
+
| `COUCHDB_ID_DERIVATION_KEY` | CouchDB mode | — | LiveSync "independent ID derivation" recovery code (`sls-id-v1:...`). Needed to read and write notes on vaults created with LiveSync 1.0.33+ that use path obfuscation; leave unset for older (passphrase-derived) vaults. Get it from LiveSync's "Show current recovery code" |
|
|
254
|
+
| `COUCHDB_CASE_SENSITIVE` | CouchDB mode | `false` | Set to `true` only if your LiveSync vault has "Handle filenames as case-sensitive" enabled. It must match the vault, or obfuscated document IDs won't resolve (the server fails to start with a clear message). Leave unset otherwise |
|
|
253
255
|
| `VAULT_NAME` | Both | `MyVault` | Vault name (used for deep links and index storage) |
|
|
254
256
|
| `MCP_AUTH_TOKEN` | Optional | — | Password for authentication |
|
|
255
257
|
| `BASE_URL` | Optional | `http://localhost:PORT` | Public URL (for OAuth callbacks when using a tunnel) |
|
package/dist/main.js
CHANGED
|
@@ -1346,6 +1346,8 @@ var COUCHDB_PASSWORD = process.env.COUCHDB_PASSWORD;
|
|
|
1346
1346
|
var COUCHDB_DATABASE = process.env.COUCHDB_DATABASE ?? "obsidian";
|
|
1347
1347
|
var COUCHDB_PASSPHRASE = process.env.COUCHDB_PASSPHRASE || void 0;
|
|
1348
1348
|
var COUCHDB_OBFUSCATE_PROPERTIES = process.env.COUCHDB_OBFUSCATE_PROPERTIES === "true";
|
|
1349
|
+
var COUCHDB_ID_DERIVATION_KEY = process.env.COUCHDB_ID_DERIVATION_KEY || void 0;
|
|
1350
|
+
var COUCHDB_CASE_SENSITIVE = process.env.COUCHDB_CASE_SENSITIVE === "true";
|
|
1349
1351
|
var VAULT_NAME = process.env.VAULT_NAME ?? "MyVault";
|
|
1350
1352
|
var PORT = parseInt(process.env.PORT ?? "8787");
|
|
1351
1353
|
var BASE_URL = process.env.BASE_URL ?? `http://localhost:${PORT}`;
|
|
@@ -1383,14 +1385,16 @@ if (VAULT_PATH) {
|
|
|
1383
1385
|
console.error("COUCHDB_PASSWORD is required in remote mode.");
|
|
1384
1386
|
process.exit(1);
|
|
1385
1387
|
}
|
|
1386
|
-
const { Vault } = await import("./vault-
|
|
1388
|
+
const { Vault } = await import("./vault-6H64Y46A.js");
|
|
1387
1389
|
vault = new Vault({
|
|
1388
1390
|
couchdbUrl: COUCHDB_URL,
|
|
1389
1391
|
couchdbUser: COUCHDB_USER,
|
|
1390
1392
|
couchdbPassword: COUCHDB_PASSWORD,
|
|
1391
1393
|
database: COUCHDB_DATABASE,
|
|
1392
1394
|
passphrase: COUCHDB_PASSPHRASE,
|
|
1393
|
-
obfuscatePaths: COUCHDB_OBFUSCATE_PROPERTIES
|
|
1395
|
+
obfuscatePaths: COUCHDB_OBFUSCATE_PROPERTIES,
|
|
1396
|
+
idDerivationKey: COUCHDB_ID_DERIVATION_KEY,
|
|
1397
|
+
caseSensitive: COUCHDB_CASE_SENSITIVE
|
|
1394
1398
|
});
|
|
1395
1399
|
console.log(`Remote mode: ${redactCredentials(COUCHDB_URL)}`);
|
|
1396
1400
|
} else {
|
|
@@ -1548,7 +1552,7 @@ if (VAULT_PATH) {
|
|
|
1548
1552
|
var BASE_INSTRUCTIONS = "Access and manage an Obsidian vault. You can read, write, list, search, move, and delete markdown notes. Every tool response includes an Obsidian deep link. Always show this link to the user using the format [obsidian://open?vault=...&file=...](obsidian://open?vault=...&file=...) so it is both clickable and visible as a URL.";
|
|
1549
1553
|
var serverOptions = {
|
|
1550
1554
|
name: "obsidian-sync-mcp",
|
|
1551
|
-
version: "0.
|
|
1555
|
+
version: "0.9.0",
|
|
1552
1556
|
instructions: MCP_EXTRA_INSTRUCTIONS ? `${BASE_INSTRUCTIONS}
|
|
1553
1557
|
|
|
1554
1558
|
${MCP_EXTRA_INSTRUCTIONS}` : BASE_INSTRUCTIONS
|
|
@@ -1615,7 +1619,7 @@ server.start({
|
|
|
1615
1619
|
transportType: "httpStream",
|
|
1616
1620
|
httpStream: { port: PORT, endpoint: "/mcp", host: process.env.HOST ?? "0.0.0.0" }
|
|
1617
1621
|
});
|
|
1618
|
-
console.log(`obsidian-sync-mcp v${"0.
|
|
1622
|
+
console.log(`obsidian-sync-mcp v${"0.9.0"} listening on port ${PORT}`);
|
|
1619
1623
|
process.on("unhandledRejection", (err) => {
|
|
1620
1624
|
console.error(`Unhandled rejection: ${describeError(err, debugLogging2)}`);
|
|
1621
1625
|
});
|