pkm-mcp-server 1.3.1 → 1.3.3

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 CHANGED
@@ -6,6 +6,16 @@ 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.3] - 2026-03-21
10
+
11
+ ### Fixed
12
+ - Use `pkm-mcp-server@latest` in npx registration command to ensure users always get the latest version (previously npx could serve stale cached versions)
13
+
14
+ ## [1.3.2] - 2026-03-21
15
+
16
+ ### Fixed
17
+ - 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.
18
+
9
19
  ## [1.3.1] - 2026-03-21
10
20
 
11
21
  ### 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 -- npx -y pkm-mcp-server
117
+ claude mcp add -s user -e VAULT_PATH=/absolute/path/to/your/vault -- obsidian-pkm npx -y pkm-mcp-server@latest
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 -- node /absolute/path/to/cli.js
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 -- npx -y pkm-mcp-server
137
+ -- obsidian-pkm npx -y pkm-mcp-server@latest
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 -- npx -y pkm-mcp-server`
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@latest`
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("obsidian-pkm", "--", installType.command, ...installType.args);
136
+ args.push("--", "obsidian-pkm", installType.command, ...installType.args);
137
137
  return args;
138
138
  }
139
139
 
@@ -192,7 +192,7 @@ export async function dirSize(dirPath) {
192
192
  export function detectInstallType(filePath) {
193
193
  const thisFile = filePath || fileURLToPath(import.meta.url);
194
194
  if (thisFile.includes("node_modules")) {
195
- return { command: "npx", args: ["-y", "pkm-mcp-server"] };
195
+ return { command: "npx", args: ["-y", "pkm-mcp-server@latest"] };
196
196
  }
197
197
  const cliPath = path.join(path.dirname(thisFile), "cli.js");
198
198
  return { command: "node", args: [cliPath] };
@@ -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 -- ${installType.command} ${installType.args.join(" ")}`;
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pkm-mcp-server",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "MCP server for Obsidian vault integration with Claude Code — 19 tools for notes, search, and graph traversal",
5
5
  "main": "cli.js",
6
6
  "exports": {