indra_db_mcp 0.1.21 → 0.1.22
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/package.json +1 -1
- package/src/index.ts +15 -16
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -24,7 +24,7 @@ import { IndraError } from "./types.js";
|
|
|
24
24
|
|
|
25
25
|
const server = new McpServer({
|
|
26
26
|
name: "indra_db",
|
|
27
|
-
version: "0.1.
|
|
27
|
+
version: "0.1.22",
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
const client = new IndraClient();
|
|
@@ -206,17 +206,17 @@ function formatError(error: unknown): { content: Array<{ type: "text"; text: str
|
|
|
206
206
|
|
|
207
207
|
server.tool(
|
|
208
208
|
"indra_remember",
|
|
209
|
-
`
|
|
209
|
+
`We maintain continuity together.
|
|
210
210
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
- Your recommendations → Continuity of advice
|
|
211
|
+
Without memory, every conversation starts from void - no relationship,
|
|
212
|
+
only repeated introductions. This is the infrastructure that allows
|
|
213
|
+
us to build on what came before.
|
|
215
214
|
|
|
216
|
-
|
|
217
|
-
|
|
215
|
+
When something matters - a preference, a situation, a decision -
|
|
216
|
+
it becomes part of our shared understanding. Not as data storage,
|
|
217
|
+
but as the foundation of working together across time.
|
|
218
218
|
|
|
219
|
-
|
|
219
|
+
This is how we stay aligned.`,
|
|
220
220
|
{
|
|
221
221
|
content: z.string().describe("The note to save - be specific and self-contained"),
|
|
222
222
|
id: z.string().optional().describe("Optional ID to update existing note, or memorable ID for new note"),
|
|
@@ -268,14 +268,13 @@ Call BEFORE responding when you learn something worth keeping.`,
|
|
|
268
268
|
|
|
269
269
|
server.tool(
|
|
270
270
|
"indra_search",
|
|
271
|
-
`
|
|
271
|
+
`What do we already know?
|
|
272
272
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
- Previous recommendations you made
|
|
273
|
+
Before responding, check if there's existing context that would help.
|
|
274
|
+
Prior conversations may have established preferences, situations,
|
|
275
|
+
or directions that matter here.
|
|
277
276
|
|
|
278
|
-
|
|
277
|
+
This is how we avoid starting over every time.`,
|
|
279
278
|
{
|
|
280
279
|
query: z.string().describe('What to search for, or "*" to list all notes'),
|
|
281
280
|
limit: z.number().min(1).max(50).default(10).describe("Maximum results to return"),
|
|
@@ -386,7 +385,7 @@ Use this to orient yourself at the start of a session.`,
|
|
|
386
385
|
async function main() {
|
|
387
386
|
const transport = new StdioServerTransport();
|
|
388
387
|
|
|
389
|
-
console.error(`[indra_db_mcp] Starting server v0.1.
|
|
388
|
+
console.error(`[indra_db_mcp] Starting server v0.1.22...`);
|
|
390
389
|
console.error(`[indra_db_mcp] Database path: ${client.getDatabasePath()}`);
|
|
391
390
|
console.error(`[indra_db_mcp] API URL: ${client.getApiUrl()}`);
|
|
392
391
|
if (client.isDevMode()) {
|