@prmichaelsen/remember-mcp 3.19.0 → 3.19.1
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/dist/server-factory.js +470 -433
- package/dist/server.js +476 -433
- package/package.json +1 -1
- package/src/server-factory.ts +5 -0
- package/src/server.ts +5 -0
package/package.json
CHANGED
package/src/server-factory.ts
CHANGED
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
import { logger } from './utils/logger.js';
|
|
14
14
|
import { initWeaviateClient } from './weaviate/client.js';
|
|
15
15
|
import { initFirestore } from './firestore/init.js';
|
|
16
|
+
import { initFirestore as initCoreFirestore } from '@prmichaelsen/remember-core/database/firestore';
|
|
16
17
|
import type { AuthContext } from './types/auth.js';
|
|
17
18
|
import { credentialsProvider } from './services/credentials-provider.js';
|
|
18
19
|
|
|
@@ -111,6 +112,10 @@ async function ensureDatabasesInitialized(): Promise<void> {
|
|
|
111
112
|
logger.info('Initializing databases...');
|
|
112
113
|
await initWeaviateClient();
|
|
113
114
|
initFirestore();
|
|
115
|
+
initCoreFirestore({
|
|
116
|
+
serviceAccount: process.env.FIREBASE_ADMIN_SERVICE_ACCOUNT_KEY || '',
|
|
117
|
+
projectId: process.env.FIREBASE_PROJECT_ID || '',
|
|
118
|
+
});
|
|
114
119
|
databasesInitialized = true;
|
|
115
120
|
logger.info('Databases initialized successfully');
|
|
116
121
|
} catch (error) {
|
package/src/server.ts
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
import { config, validateConfig, loadAuthSchemeConfig } from './config.js';
|
|
12
12
|
import { initWeaviateClient, testWeaviateConnection, getWeaviateClient } from './weaviate/client.js';
|
|
13
13
|
import { initFirestore, testFirestoreConnection } from './firestore/init.js';
|
|
14
|
+
import { initFirestore as initCoreFirestore } from '@prmichaelsen/remember-core/database/firestore';
|
|
14
15
|
import { logger } from './utils/logger.js';
|
|
15
16
|
import type { AuthContext } from './types/auth.js';
|
|
16
17
|
import { bootstrapOAuth } from './auth/oauth-bootstrap.js';
|
|
@@ -58,6 +59,10 @@ async function initServer(): Promise<Server> {
|
|
|
58
59
|
logger.info('Connecting to databases...');
|
|
59
60
|
await initWeaviateClient();
|
|
60
61
|
initFirestore();
|
|
62
|
+
initCoreFirestore({
|
|
63
|
+
serviceAccount: process.env.FIREBASE_ADMIN_SERVICE_ACCOUNT_KEY || '',
|
|
64
|
+
projectId: process.env.FIREBASE_PROJECT_ID || '',
|
|
65
|
+
});
|
|
61
66
|
|
|
62
67
|
// Test connections in parallel
|
|
63
68
|
const [weaviateOk, firestoreOk] = await Promise.all([
|