@contextstream/mcp-server 0.4.10 → 0.4.12

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.
Files changed (2) hide show
  1. package/dist/index.js +21 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11034,6 +11034,9 @@ Use this to persist decisions, insights, preferences, or important information.`
11034
11034
  "task",
11035
11035
  "bug",
11036
11036
  "feature",
11037
+ // Plans & Tasks feature
11038
+ "plan",
11039
+ // Implementation plan
11037
11040
  // Lesson system types
11038
11041
  "correction",
11039
11042
  // User corrected the AI
@@ -12577,7 +12580,7 @@ Use this to remove a reminder that is no longer relevant.`,
12577
12580
  query: external_exports.string().optional().describe("Query for recall/search/lessons/decision_trace"),
12578
12581
  content: external_exports.string().optional().describe("Content for capture/remember/compress"),
12579
12582
  title: external_exports.string().optional().describe("Title for capture/capture_lesson/capture_plan"),
12580
- event_type: external_exports.enum(["decision", "preference", "insight", "task", "bug", "feature", "correction", "lesson", "warning", "frustration", "conversation"]).optional().describe("Event type for capture"),
12583
+ event_type: external_exports.enum(["decision", "preference", "insight", "task", "bug", "feature", "plan", "correction", "lesson", "warning", "frustration", "conversation"]).optional().describe("Event type for capture"),
12581
12584
  importance: external_exports.enum(["low", "medium", "high", "critical"]).optional(),
12582
12585
  tags: external_exports.array(external_exports.string()).optional(),
12583
12586
  // Lesson-specific
@@ -13441,19 +13444,30 @@ Use this to remove a reminder that is no longer relevant.`,
13441
13444
  if (!input.path) {
13442
13445
  return errorResult("ingest_local requires: path");
13443
13446
  }
13447
+ if (!projectId) {
13448
+ return errorResult("ingest_local requires: project_id");
13449
+ }
13444
13450
  const validPath = await validateReadableDirectory(input.path);
13445
13451
  if (!validPath.ok) {
13446
13452
  return errorResult(validPath.error);
13447
13453
  }
13448
- const files = await readAllFilesInBatches(validPath.resolvedPath, async (batch) => {
13449
- await client.ingestLocalFiles({
13450
- project_id: projectId,
13451
- files: batch,
13454
+ let totalFiles = 0;
13455
+ let batches = 0;
13456
+ for await (const batch of readAllFilesInBatches(validPath.resolvedPath, { batchSize: 50 })) {
13457
+ if (batch.length === 0) continue;
13458
+ await client.ingestFiles(projectId, batch, {
13452
13459
  overwrite: input.overwrite,
13453
13460
  write_to_disk: input.write_to_disk
13454
13461
  });
13455
- });
13456
- const result = { files_ingested: files, project_id: projectId };
13462
+ totalFiles += batch.length;
13463
+ batches += 1;
13464
+ }
13465
+ const result = {
13466
+ project_id: projectId,
13467
+ files_ingested: totalFiles,
13468
+ batches,
13469
+ path: validPath.resolvedPath
13470
+ };
13457
13471
  return { content: [{ type: "text", text: formatContent(result) }], structuredContent: toStructured(result) };
13458
13472
  }
13459
13473
  default:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contextstream/mcp-server",
3
3
  "mcpName": "io.github.contextstreamio/mcp-server",
4
- "version": "0.4.10",
4
+ "version": "0.4.12",
5
5
  "description": "ContextStream MCP server - v0.4.x with consolidated domain tools (~11 tools, ~75% token reduction). Code context, memory, search, and AI tools.",
6
6
  "type": "module",
7
7
  "license": "MIT",