pkm-mcp-server 1.3.1 → 1.3.2
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/CHANGELOG.md +5 -0
- package/README.md +4 -4
- package/init.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [1.3.2] - 2026-03-21
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
- Fix `claude mcp add` argument ordering — the `-e` flag is variadic and was greedily consuming the server name. Moved `--` separator before the server name to terminate option parsing.
|
|
13
|
+
|
|
9
14
|
## [1.3.1] - 2026-03-21
|
|
10
15
|
|
|
11
16
|
### Fixed
|
package/README.md
CHANGED
|
@@ -114,13 +114,13 @@ node cli.js init
|
|
|
114
114
|
If you prefer to skip the wizard, register directly with the Claude CLI:
|
|
115
115
|
|
|
116
116
|
```bash
|
|
117
|
-
claude mcp add -s user -e VAULT_PATH=/absolute/path/to/your/vault obsidian-pkm
|
|
117
|
+
claude mcp add -s user -e VAULT_PATH=/absolute/path/to/your/vault -- obsidian-pkm npx -y pkm-mcp-server
|
|
118
118
|
```
|
|
119
119
|
|
|
120
120
|
For a source install:
|
|
121
121
|
|
|
122
122
|
```bash
|
|
123
|
-
claude mcp add -s user -e VAULT_PATH=/absolute/path/to/your/vault obsidian-pkm
|
|
123
|
+
claude mcp add -s user -e VAULT_PATH=/absolute/path/to/your/vault -- obsidian-pkm node /absolute/path/to/cli.js
|
|
124
124
|
```
|
|
125
125
|
|
|
126
126
|
Verify with `claude mcp list` — you should see `obsidian-pkm: ... - Connected`.
|
|
@@ -134,7 +134,7 @@ claude mcp remove obsidian-pkm
|
|
|
134
134
|
claude mcp add -s user \
|
|
135
135
|
-e VAULT_PATH=/absolute/path/to/your/vault \
|
|
136
136
|
-e OPENAI_API_KEY=sk-... \
|
|
137
|
-
obsidian-pkm
|
|
137
|
+
-- obsidian-pkm npx -y pkm-mcp-server
|
|
138
138
|
```
|
|
139
139
|
|
|
140
140
|
This enables `vault_semantic_search` and `vault_suggest_links`. Uses `text-embedding-3-large` with a SQLite + sqlite-vec index stored at `.obsidian/semantic-index.db`. The index rebuilds automatically — delete the DB file to force a full re-embed.
|
|
@@ -280,7 +280,7 @@ All paths passed to tools are relative to vault root. The server includes path s
|
|
|
280
280
|
You need C++ build tools. See [Prerequisites](#prerequisites) for your platform. On Linux, `sudo apt install build-essential python3` usually fixes it.
|
|
281
281
|
|
|
282
282
|
**Server starts but all tool calls fail with ENOENT**
|
|
283
|
-
Your `VAULT_PATH` is wrong or missing. The server validates this at startup and exits with a clear error. Re-register with the correct path: `claude mcp remove obsidian-pkm && claude mcp add -s user -e VAULT_PATH=/correct/path obsidian-pkm
|
|
283
|
+
Your `VAULT_PATH` is wrong or missing. The server validates this at startup and exits with a clear error. Re-register with the correct path: `claude mcp remove obsidian-pkm && claude mcp add -s user -e VAULT_PATH=/correct/path -- obsidian-pkm npx -y pkm-mcp-server`
|
|
284
284
|
|
|
285
285
|
**`vault_write` says "no templates available"**
|
|
286
286
|
Run `pkm-mcp-server init` to install templates, or copy the `templates/` files from this repo into your vault's `05-Templates/` directory. The server loads templates from there at startup.
|
package/init.js
CHANGED
|
@@ -133,7 +133,7 @@ export function buildMcpAddArgs({ vaultPath, openaiKey, installType }) {
|
|
|
133
133
|
if (openaiKey) {
|
|
134
134
|
args.push("-e", `OPENAI_API_KEY=${openaiKey}`);
|
|
135
135
|
}
|
|
136
|
-
args.push("
|
|
136
|
+
args.push("--", "obsidian-pkm", installType.command, ...installType.args);
|
|
137
137
|
return args;
|
|
138
138
|
}
|
|
139
139
|
|
|
@@ -318,7 +318,7 @@ Nothing is written until you confirm each step. Press Ctrl+C at any time to canc
|
|
|
318
318
|
const hasClaude = await checkClaudeCli();
|
|
319
319
|
if (!hasClaude) {
|
|
320
320
|
const installType = detectInstallType();
|
|
321
|
-
const manualCmd = `claude mcp add -s user -e VAULT_PATH=${vaultPath} obsidian-pkm
|
|
321
|
+
const manualCmd = `claude mcp add -s user -e VAULT_PATH=${vaultPath} -- obsidian-pkm ${installType.command} ${installType.args.join(" ")}`;
|
|
322
322
|
console.log(`
|
|
323
323
|
Claude Code CLI not found on PATH. To register manually, run:
|
|
324
324
|
|