vault-cortex 0.2.2 → 0.2.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/dist/messages.js CHANGED
@@ -33,19 +33,30 @@ Connect your MCP client:
33
33
  URL: http://localhost:${port}/mcp
34
34
  ${tokenLine}
35
35
 
36
- OAuth clients (Claude Desktop, Claude Code, most MCP clients):
37
- 1. Add the URL above as a remote MCP server, leaving Client
38
- ID/Secret empty ("remote" = HTTP — the server still runs on
39
- your machine)
36
+ Claude Code:
37
+ 1. claude mcp add --transport http vault-cortex http://localhost:${port}/mcp
40
38
  2. Approve the browser consent page with the token above
41
- 3. Done the client holds auto-refreshing access tokens; the
39
+ 3. Done. The client holds auto-refreshing access tokens; the
42
40
  token never sits in client config
43
41
 
42
+ Claude Desktop only accepts https URLs in its connector dialog, so
43
+ register the server in claude_desktop_config.json via the mcp-remote
44
+ bridge instead:
45
+ "vault-cortex": {
46
+ "command": "npx",
47
+ "args": ["-y", "mcp-remote", "http://localhost:${port}/mcp",
48
+ "--header", "Authorization: Bearer <token above>"]
49
+ }
50
+
51
+ Other OAuth clients (Cursor, most MCP clients) add the URL above as a
52
+ remote MCP server, leaving Client ID/Secret empty ("remote" = HTTP —
53
+ the server still runs on your machine), then approve the consent page.
54
+
44
55
  Clients without OAuth, scripts, and curl send the token directly:
45
56
  curl -H "Authorization: Bearer <token>" http://localhost:${port}/mcp
46
57
 
47
- Note: claude.ai (web) cannot reach localhost — use Claude Desktop or
48
- Claude Code for a local server.
58
+ Note: claude.ai (web) cannot reach localhost — use Claude Code for local
59
+ access, or Claude Desktop with the mcp-remote bridge.
49
60
 
50
61
  Smoke test:
51
62
  curl http://localhost:${port}/healthz
@@ -71,6 +82,14 @@ export const buildRemoteConnectMessage = (params) => {
71
82
  const approveLine = tokenWritten
72
83
  ? `approve with your MCP_AUTH_TOKEN:\n ${token}`
73
84
  : `approve with the existing MCP_AUTH_TOKEN in ${targetDir}/.env`;
85
+ const httpUrlWarning = publicUrl.startsWith("https://")
86
+ ? ""
87
+ : `
88
+
89
+ Note: claude.ai and Claude Desktop only accept https URLs — set up
90
+ HTTPS when you're ready for those clients (see the HTTPS section in
91
+ the remote guide). Claude Code works with http:
92
+ claude mcp add --transport http vault-cortex ${publicUrl}/mcp`;
74
93
  // Flush-left on purpose: template literals keep leading whitespace, so
75
94
  // indenting these lines would indent the rendered output.
76
95
  const connectMessage = `${startLine}
@@ -80,7 +99,7 @@ Connect your MCP client:
80
99
 
81
100
  OAuth clients (Claude Desktop, Claude Code, claude.ai): add a remote MCP
82
101
  server with that URL and leave Client ID/Secret empty — a consent page
83
- opens; ${approveLine}
102
+ opens; ${approveLine}${httpUrlWarning}
84
103
 
85
104
  Optional settings (timezone, memory folder, port, logging, sync
86
105
  behavior) are commented out in ${targetDir}/.env — uncomment, set a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vault-cortex",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
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",
@@ -6,6 +6,8 @@
6
6
  # 1. cp .env.example .env (then fill in MCP_AUTH_TOKEN and VAULT_PATH)
7
7
  # 2. docker compose up
8
8
  # 3. Connect your MCP client to http://localhost:8000/mcp
9
+ # (Claude Desktop's connector dialog requires https — register a
10
+ # localhost server via the mcp-remote bridge; see the local README)
9
11
  #
10
12
  # Full docs: https://github.com/aliasunder/vault-cortex
11
13