@contextstream/mcp-server 0.4.5 → 0.4.7
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/dist/index.js +12 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8581,7 +8581,7 @@ function estimateGraphIngestMinutes(stats) {
|
|
|
8581
8581
|
};
|
|
8582
8582
|
}
|
|
8583
8583
|
function normalizeLessonField(value) {
|
|
8584
|
-
return value.trim().toLowerCase().replace(/\s+/g, " ");
|
|
8584
|
+
return (value || "").trim().toLowerCase().replace(/\s+/g, " ");
|
|
8585
8585
|
}
|
|
8586
8586
|
function buildLessonSignature(input, workspaceId, projectId) {
|
|
8587
8587
|
return [
|
|
@@ -12454,12 +12454,13 @@ Use this to remove a reminder that is no longer relevant.`,
|
|
|
12454
12454
|
return { content: [{ type: "text", text: formatContent(result) }], structuredContent: toStructured(result) };
|
|
12455
12455
|
}
|
|
12456
12456
|
case "get_lessons": {
|
|
12457
|
-
|
|
12457
|
+
if (!workspaceId) {
|
|
12458
|
+
return errorResult("get_lessons requires workspace_id. Call session_init first.");
|
|
12459
|
+
}
|
|
12460
|
+
const result = await client.getHighPriorityLessons({
|
|
12458
12461
|
workspace_id: workspaceId,
|
|
12459
12462
|
project_id: projectId,
|
|
12460
|
-
|
|
12461
|
-
category: input.category,
|
|
12462
|
-
severity: input.severity,
|
|
12463
|
+
context_hint: input.query,
|
|
12463
12464
|
limit: input.limit
|
|
12464
12465
|
});
|
|
12465
12466
|
return { content: [{ type: "text", text: formatContent(result) }], structuredContent: toStructured(result) };
|
|
@@ -12468,10 +12469,12 @@ Use this to remove a reminder that is no longer relevant.`,
|
|
|
12468
12469
|
if (!input.query) {
|
|
12469
12470
|
return errorResult("recall requires: query");
|
|
12470
12471
|
}
|
|
12471
|
-
const result = await client.
|
|
12472
|
+
const result = await client.smartSearch({
|
|
12472
12473
|
workspace_id: workspaceId,
|
|
12473
12474
|
project_id: projectId,
|
|
12474
|
-
query: input.query
|
|
12475
|
+
query: input.query,
|
|
12476
|
+
include_related: input.include_related,
|
|
12477
|
+
include_decisions: input.include_decisions
|
|
12475
12478
|
});
|
|
12476
12479
|
return { content: [{ type: "text", text: formatContent(result) }], structuredContent: toStructured(result) };
|
|
12477
12480
|
}
|
|
@@ -12479,7 +12482,7 @@ Use this to remove a reminder that is no longer relevant.`,
|
|
|
12479
12482
|
if (!input.content) {
|
|
12480
12483
|
return errorResult("remember requires: content");
|
|
12481
12484
|
}
|
|
12482
|
-
const result = await client.
|
|
12485
|
+
const result = await client.sessionRemember({
|
|
12483
12486
|
workspace_id: workspaceId,
|
|
12484
12487
|
project_id: projectId,
|
|
12485
12488
|
content: input.content,
|
|
@@ -12492,7 +12495,7 @@ Use this to remove a reminder that is no longer relevant.`,
|
|
|
12492
12495
|
return { content: [{ type: "text", text: formatContent(result) }], structuredContent: toStructured(result) };
|
|
12493
12496
|
}
|
|
12494
12497
|
case "summary": {
|
|
12495
|
-
const result = await client.
|
|
12498
|
+
const result = await client.getContextSummary({
|
|
12496
12499
|
workspace_id: workspaceId,
|
|
12497
12500
|
project_id: projectId,
|
|
12498
12501
|
max_tokens: input.max_tokens
|
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.
|
|
4
|
+
"version": "0.4.7",
|
|
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",
|