@prmichaelsen/remember-mcp 3.16.0 → 3.17.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/.github/workflows/publish.yml +55 -0
- package/CHANGELOG.md +15 -0
- package/dist/server-factory.js +486 -20
- package/dist/server.js +486 -20
- package/jest.config.js +1 -0
- package/package.json +2 -2
- package/src/core-services.ts +13 -2
package/jest.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prmichaelsen/remember-mcp",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.17.0",
|
|
4
4
|
"description": "Multi-tenant memory system MCP server with vector search and relationships",
|
|
5
5
|
"main": "dist/server.js",
|
|
6
6
|
"type": "module",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@google-cloud/vision": "^5.3.4",
|
|
52
52
|
"@modelcontextprotocol/sdk": "^1.0.4",
|
|
53
53
|
"@prmichaelsen/firebase-admin-sdk-v8": "^2.2.0",
|
|
54
|
-
"@prmichaelsen/remember-core": "^0.
|
|
54
|
+
"@prmichaelsen/remember-core": "^0.54.0",
|
|
55
55
|
"dotenv": "^16.4.5",
|
|
56
56
|
"uuid": "^13.0.0",
|
|
57
57
|
"weaviate-client": "^3.2.0"
|
package/src/core-services.ts
CHANGED
|
@@ -14,8 +14,9 @@ import {
|
|
|
14
14
|
ConfirmationTokenService,
|
|
15
15
|
createLogger,
|
|
16
16
|
createModerationClient,
|
|
17
|
+
createBatchedWebhookService,
|
|
17
18
|
} from '@prmichaelsen/remember-core';
|
|
18
|
-
import type { Logger, ModerationClient } from '@prmichaelsen/remember-core';
|
|
19
|
+
import type { Logger, ModerationClient, EventBus } from '@prmichaelsen/remember-core';
|
|
19
20
|
import { getWeaviateClient } from './weaviate/client.js';
|
|
20
21
|
import { getMemoryCollection } from './weaviate/schema.js';
|
|
21
22
|
|
|
@@ -36,6 +37,16 @@ const moderationClient: ModerationClient | undefined = process.env.ANTHROPIC_API
|
|
|
36
37
|
: undefined;
|
|
37
38
|
const memoryIndexService = new MemoryIndexService(coreLogger);
|
|
38
39
|
|
|
40
|
+
// Webhook event bus — fans out events to all configured endpoints
|
|
41
|
+
const eventBus: EventBus | undefined = (() => {
|
|
42
|
+
const url = process.env.REMEMBER_WEBHOOK_URL;
|
|
43
|
+
const secret = process.env.REMEMBER_WEBHOOK_SECRET;
|
|
44
|
+
if (!url || !secret) return undefined;
|
|
45
|
+
return createBatchedWebhookService(coreLogger, {
|
|
46
|
+
resolveEndpoint: () => [{ url, signingSecret: secret }],
|
|
47
|
+
});
|
|
48
|
+
})();
|
|
49
|
+
|
|
39
50
|
/** Cached CoreServices per userId — avoids re-instantiation on every tool call */
|
|
40
51
|
const coreServicesCache = new Map<string, CoreServices>();
|
|
41
52
|
|
|
@@ -56,7 +67,7 @@ export function createCoreServices(userId: string): CoreServices {
|
|
|
56
67
|
weaviateClient,
|
|
57
68
|
}),
|
|
58
69
|
relationship: new RelationshipService(collection, userId, coreLogger),
|
|
59
|
-
space: new SpaceService(weaviateClient, collection, userId, tokenService, coreLogger, memoryIndexService, { moderationClient }),
|
|
70
|
+
space: new SpaceService(weaviateClient, collection, userId, tokenService, coreLogger, memoryIndexService, { moderationClient, eventBus }),
|
|
60
71
|
preferences: preferencesService,
|
|
61
72
|
token: tokenService,
|
|
62
73
|
};
|