mcpscraper-memory 1.17.2 → 1.18.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/CHANGELOG.md CHANGED
@@ -4,6 +4,16 @@ All notable changes to MCP Memory are documented here. The format is based on [K
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [1.18.0] - 2026-08-13
8
+
9
+ ### Added
10
+
11
+ - Exposed Personal Authority V2 and Blog Article through the hosted and stdio Memory template catalog.
12
+
13
+ ### Changed
14
+
15
+ - Updated the scheduled-results resource and pinned shared packages so all five registered renderer families persist, validate, and list consistently.
16
+
7
17
  ## [1.17.2] - 2026-08-11
8
18
 
9
19
  ### Changed
@@ -156,7 +166,8 @@ All notable changes to MCP Memory are documented here. The format is based on [K
156
166
  - The hosted service now consumes `mcpscraper-memory-db` 1.5 and `mcpscraper-memory-tools` 1.6, aligning direct OAuth and stdio clients with the current 14-vault Smart RAG contract, including bounded multi-query retrieval, graph expansion, and Jina reranking metadata.
157
167
  - Server guidance now documents the Skills vault and the exact hybrid retrieval workflow exposed by `memory-search`.
158
168
 
159
- [Unreleased]: https://github.com/VilovietaSEO/mcp-memory/compare/v1.17.2...HEAD
169
+ [Unreleased]: https://github.com/VilovietaSEO/mcp-memory/compare/v1.18.0...HEAD
170
+ [1.18.0]: https://github.com/VilovietaSEO/mcp-memory/compare/v1.17.2...v1.18.0
160
171
  [1.17.2]: https://github.com/VilovietaSEO/mcp-memory/compare/v1.17.1...v1.17.2
161
172
  [1.17.1]: https://github.com/VilovietaSEO/mcp-memory/compare/v1.17.0...v1.17.1
162
173
  [1.17.0]: https://github.com/VilovietaSEO/mcp-memory/compare/v1.16.2...v1.17.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcpscraper-memory",
3
- "version": "1.17.2",
3
+ "version": "1.18.0",
4
4
  "description": "mcp-memory — a hosted, multi-tenant, access-controlled per-user Obsidian/Neon memory exposed AS an MCP server, with a scheduled optimization layer. Its own standalone MCP product.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -33,8 +33,8 @@
33
33
  "@mastra/mcp": "latest",
34
34
  "@mastra/pg": "latest",
35
35
  "@modelcontextprotocol/sdk": "^1.29.0",
36
- "mcpscraper-memory-db": "1.13.1",
37
- "mcpscraper-memory-tools": "1.14.2",
36
+ "mcpscraper-memory-db": "1.14.0",
37
+ "mcpscraper-memory-tools": "1.15.0",
38
38
  "zod": "^3.25.0"
39
39
  },
40
40
  "devDependencies": {
@@ -1,123 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // bin/mcp-stdio-server.ts
4
- import { readFileSync } from "fs";
5
- import { homedir } from "os";
6
- import { join } from "path";
7
- import { Server } from "@modelcontextprotocol/sdk/server/index.js";
8
- import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
9
- import { ListToolsRequestSchema, CallToolRequestSchema } from "@modelcontextprotocol/sdk/types.js";
10
-
11
- // src/version.ts
12
- var PACKAGE_VERSION = "1.17.2";
13
-
14
- // bin/mcp-stdio-server.ts
15
- var wantsHelp = process.argv.includes("--help") || process.argv.includes("-h");
16
- var forceStdio = process.argv.includes("--stdio") || process.env.MCP_MEMORY_FORCE_STDIO === "1";
17
- var interactiveTerminal = Boolean(process.stdin.isTTY && process.stdout.isTTY);
18
- function readApiKeyFile() {
19
- const explicitPath = process.env.MCP_MEMORY_KEY_PATH?.trim();
20
- const paths = [explicitPath, join(homedir(), ".mcp-memory-key")].filter(Boolean);
21
- for (const path of paths) {
22
- try {
23
- const value = readFileSync(path, "utf8").trim();
24
- if (value) return value;
25
- } catch {
26
- }
27
- }
28
- return void 0;
29
- }
30
- var apiKey = (process.env.MCP_MEMORY_API_KEY ?? process.env.MCP_MEMORY_KEY ?? readApiKeyFile())?.trim();
31
- function renderHelp() {
32
- const status = apiKey ? "configured" : "NOT configured";
33
- return [
34
- `mcp-memory v${PACKAGE_VERSION} \u2014 local stdio bridge to memory.mcpscraper.dev`,
35
- "",
36
- `API key: ${status}`,
37
- "",
38
- "This package is a thin proxy: every tool call is forwarded over HTTPS to",
39
- "your hosted mcp-memory account, the same one used by the OAuth remote",
40
- "connector. Nothing runs or is stored locally.",
41
- "",
42
- "Setup:",
43
- " 1. Get your key from memory.mcpscraper.dev (or the mobile automations link).",
44
- " 2. Set it: export MCP_MEMORY_API_KEY=mk_...",
45
- " (or write it to ~/.mcp-memory-key)",
46
- " 3. Add to your MCP client config:",
47
- ' { "command": "npx", "args": ["-y", "mcpscraper-memory"],',
48
- ' "env": { "MCP_MEMORY_API_KEY": "mk_..." } }',
49
- "",
50
- "Flags: --stdio (skip this screen and run directly), --help",
51
- ""
52
- ].join("\n");
53
- }
54
- if (!forceStdio && (interactiveTerminal || wantsHelp)) {
55
- process.stdout.write(renderHelp());
56
- process.exit(0);
57
- }
58
- if (!apiKey) {
59
- process.stderr.write("MCP_MEMORY_API_KEY env var or ~/.mcp-memory-key is required\n");
60
- process.exit(1);
61
- }
62
- var baseUrl = (process.env.MCP_MEMORY_BASE_URL?.trim() || "https://memory.mcpscraper.dev").replace(/\/$/, "");
63
- var remoteUrl = `${baseUrl}/mcp`;
64
- var rpcId = 0;
65
- function parseRpcBody(text) {
66
- const dataLine = text.split("\n").find((line) => line.startsWith("data:"));
67
- const payload = dataLine ? dataLine.slice(5).trim() : text;
68
- return JSON.parse(payload);
69
- }
70
- async function rpc(method, params) {
71
- const res = await fetch(remoteUrl, {
72
- method: "POST",
73
- headers: {
74
- "Content-Type": "application/json",
75
- Accept: "application/json, text/event-stream",
76
- Authorization: `Bearer ${apiKey}`
77
- },
78
- body: JSON.stringify({ jsonrpc: "2.0", id: ++rpcId, method, params })
79
- });
80
- const text = await res.text();
81
- if (!res.ok) {
82
- throw new Error(`mcp-memory HTTP ${res.status}: ${text.slice(0, 500)}`);
83
- }
84
- const body = parseRpcBody(text);
85
- if (body.error) throw new Error(body.error.message ?? "remote mcp-memory error");
86
- return body.result;
87
- }
88
- async function main() {
89
- let remoteInfo = {};
90
- try {
91
- remoteInfo = await rpc("initialize", {
92
- protocolVersion: "2025-06-18",
93
- capabilities: {},
94
- clientInfo: { name: "mcp-memory-stdio-proxy", version: PACKAGE_VERSION }
95
- });
96
- } catch (err) {
97
- process.stderr.write(`Failed to reach ${remoteUrl}: ${err instanceof Error ? err.message : String(err)}
98
- `);
99
- process.exit(1);
100
- }
101
- const server = new Server(
102
- { name: "mcp-memory", version: PACKAGE_VERSION },
103
- { capabilities: { tools: {} }, instructions: remoteInfo.instructions }
104
- );
105
- server.setRequestHandler(ListToolsRequestSchema, async () => {
106
- const result = await rpc("tools/list");
107
- return { tools: result.tools };
108
- });
109
- server.setRequestHandler(CallToolRequestSchema, async (request) => {
110
- return await rpc("tools/call", {
111
- name: request.params.name,
112
- arguments: request.params.arguments
113
- });
114
- });
115
- const transport = new StdioServerTransport();
116
- await server.connect(transport);
117
- }
118
- main().catch((err) => {
119
- process.stderr.write(`${err instanceof Error ? err.message : String(err)}
120
- `);
121
- process.exit(1);
122
- });
123
- //# sourceMappingURL=mcp-stdio-server.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../bin/mcp-stdio-server.ts","../../src/version.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { readFileSync } from 'node:fs'\nimport { homedir } from 'node:os'\nimport { join } from 'node:path'\nimport { Server } from '@modelcontextprotocol/sdk/server/index.js'\nimport { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'\nimport { ListToolsRequestSchema, CallToolRequestSchema } from '@modelcontextprotocol/sdk/types.js'\nimport { PACKAGE_VERSION } from '../src/version.js'\n\nconst wantsHelp = process.argv.includes('--help') || process.argv.includes('-h')\nconst forceStdio = process.argv.includes('--stdio') || process.env.MCP_MEMORY_FORCE_STDIO === '1'\nconst interactiveTerminal = Boolean(process.stdin.isTTY && process.stdout.isTTY)\n\nfunction readApiKeyFile(): string | undefined {\n const explicitPath = process.env.MCP_MEMORY_KEY_PATH?.trim()\n const paths = [explicitPath, join(homedir(), '.mcp-memory-key')].filter(Boolean) as string[]\n for (const path of paths) {\n try {\n const value = readFileSync(path, 'utf8').trim()\n if (value) return value\n } catch {\n void 0\n }\n }\n return undefined\n}\n\nconst apiKey = (\n process.env.MCP_MEMORY_API_KEY ??\n process.env.MCP_MEMORY_KEY ??\n readApiKeyFile()\n)?.trim()\n\nfunction renderHelp(): string {\n const status = apiKey ? 'configured' : 'NOT configured'\n return [\n `mcp-memory v${PACKAGE_VERSION} — local stdio bridge to memory.mcpscraper.dev`,\n '',\n `API key: ${status}`,\n '',\n 'This package is a thin proxy: every tool call is forwarded over HTTPS to',\n 'your hosted mcp-memory account, the same one used by the OAuth remote',\n 'connector. Nothing runs or is stored locally.',\n '',\n 'Setup:',\n ' 1. Get your key from memory.mcpscraper.dev (or the mobile automations link).',\n ' 2. Set it: export MCP_MEMORY_API_KEY=mk_...',\n ' (or write it to ~/.mcp-memory-key)',\n ' 3. Add to your MCP client config:',\n ' { \"command\": \"npx\", \"args\": [\"-y\", \"mcpscraper-memory\"],',\n ' \"env\": { \"MCP_MEMORY_API_KEY\": \"mk_...\" } }',\n '',\n 'Flags: --stdio (skip this screen and run directly), --help',\n '',\n ].join('\\n')\n}\n\nif (!forceStdio && (interactiveTerminal || wantsHelp)) {\n process.stdout.write(renderHelp())\n process.exit(0)\n}\n\nif (!apiKey) {\n process.stderr.write('MCP_MEMORY_API_KEY env var or ~/.mcp-memory-key is required\\n')\n process.exit(1)\n}\n\nconst baseUrl = (process.env.MCP_MEMORY_BASE_URL?.trim() || 'https://memory.mcpscraper.dev').replace(/\\/$/, '')\nconst remoteUrl = `${baseUrl}/mcp`\n\nlet rpcId = 0\n\nfunction parseRpcBody(text: string): { result?: unknown; error?: { message?: string } } {\n const dataLine = text.split('\\n').find((line) => line.startsWith('data:'))\n const payload = dataLine ? dataLine.slice(5).trim() : text\n return JSON.parse(payload)\n}\n\nasync function rpc(method: string, params?: Record<string, unknown>): Promise<unknown> {\n const res = await fetch(remoteUrl, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n Accept: 'application/json, text/event-stream',\n Authorization: `Bearer ${apiKey}`,\n },\n body: JSON.stringify({ jsonrpc: '2.0', id: ++rpcId, method, params }),\n })\n const text = await res.text()\n if (!res.ok) {\n throw new Error(`mcp-memory HTTP ${res.status}: ${text.slice(0, 500)}`)\n }\n const body = parseRpcBody(text)\n if (body.error) throw new Error(body.error.message ?? 'remote mcp-memory error')\n return body.result\n}\n\nasync function main(): Promise<void> {\n let remoteInfo: { serverInfo?: { name?: string; version?: string }; instructions?: string } = {}\n try {\n remoteInfo = (await rpc('initialize', {\n protocolVersion: '2025-06-18',\n capabilities: {},\n clientInfo: { name: 'mcp-memory-stdio-proxy', version: PACKAGE_VERSION },\n })) as typeof remoteInfo\n } catch (err) {\n process.stderr.write(`Failed to reach ${remoteUrl}: ${err instanceof Error ? err.message : String(err)}\\n`)\n process.exit(1)\n }\n\n const server = new Server(\n { name: 'mcp-memory', version: PACKAGE_VERSION },\n { capabilities: { tools: {} }, instructions: remoteInfo.instructions },\n )\n\n server.setRequestHandler(ListToolsRequestSchema, async () => {\n const result = (await rpc('tools/list')) as { tools: unknown[] }\n return { tools: result.tools }\n })\n\n server.setRequestHandler(CallToolRequestSchema, async (request) => {\n return (await rpc('tools/call', {\n name: request.params.name,\n arguments: request.params.arguments,\n })) as Record<string, unknown>\n })\n\n const transport = new StdioServerTransport()\n await server.connect(transport)\n}\n\nmain().catch((err) => {\n process.stderr.write(`${err instanceof Error ? err.message : String(err)}\\n`)\n process.exit(1)\n})\n","export const PACKAGE_VERSION = '1.17.2'\n"],"mappings":";;;AACA,SAAS,oBAAoB;AAC7B,SAAS,eAAe;AACxB,SAAS,YAAY;AACrB,SAAS,cAAc;AACvB,SAAS,4BAA4B;AACrC,SAAS,wBAAwB,6BAA6B;;;ACNvD,IAAM,kBAAkB;;;ADS/B,IAAM,YAAY,QAAQ,KAAK,SAAS,QAAQ,KAAK,QAAQ,KAAK,SAAS,IAAI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