@contextstream/mcp-server 0.4.74 → 0.4.81
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/README.md +149 -184
- package/dist/hooks/auto-rules.js +42 -19
- package/dist/hooks/pre-tool-use.js +8 -83
- package/dist/hooks/runner.js +120 -106
- package/dist/hooks/session-init.js +105 -15
- package/dist/hooks/user-prompt-submit.js +6 -7
- package/dist/index.js +40321 -35666
- package/package.json +20 -4
- package/scripts/registration-smoke.mts +45 -0
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contextstream/mcp-server",
|
|
3
3
|
"mcpName": "io.github.contextstreamio/mcp-server",
|
|
4
|
-
"version": "0.4.
|
|
5
|
-
"description": "
|
|
4
|
+
"version": "0.4.81",
|
|
5
|
+
"description": "MCP server that gives AI coding assistants persistent memory, semantic code search, a dependency graph, grounded Q&A, and team context (GitHub/Slack/Notion) — works with Claude Code, Cursor, VS Code Copilot, Windsurf, Cline, and any Model Context Protocol client.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/index.js",
|
|
@@ -49,19 +49,35 @@
|
|
|
49
49
|
"tsx": "^4.15.4",
|
|
50
50
|
"typescript": "^5.6.3",
|
|
51
51
|
"typescript-eslint": "^8.52.0",
|
|
52
|
-
"vitest": "^4.
|
|
52
|
+
"vitest": "^4.1.9"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|
|
55
55
|
"node": ">=18"
|
|
56
56
|
},
|
|
57
57
|
"keywords": [
|
|
58
58
|
"mcp",
|
|
59
|
+
"mcp-server",
|
|
59
60
|
"model-context-protocol",
|
|
60
61
|
"contextstream",
|
|
61
62
|
"ai",
|
|
63
|
+
"ai-memory",
|
|
64
|
+
"ai-agent",
|
|
65
|
+
"ai-coding-assistant",
|
|
66
|
+
"claude",
|
|
67
|
+
"claude-code",
|
|
68
|
+
"cursor",
|
|
69
|
+
"copilot",
|
|
70
|
+
"windsurf",
|
|
71
|
+
"semantic-search",
|
|
72
|
+
"code-search",
|
|
73
|
+
"vector-search",
|
|
62
74
|
"code-context",
|
|
75
|
+
"context-engineering",
|
|
63
76
|
"memory",
|
|
64
|
-
"knowledge-graph"
|
|
77
|
+
"knowledge-graph",
|
|
78
|
+
"rag",
|
|
79
|
+
"llm",
|
|
80
|
+
"developer-tools"
|
|
65
81
|
],
|
|
66
82
|
"repository": {
|
|
67
83
|
"type": "git",
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
process.env.CONTEXTSTREAM_API_KEY ||= "cs_test_dummy";
|
|
2
|
+
process.env.CONTEXTSTREAM_API_URL ||= "https://api.contextstream.io";
|
|
3
|
+
process.env.CONTEXTSTREAM_LOG_LEVEL = "quiet";
|
|
4
|
+
|
|
5
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
6
|
+
|
|
7
|
+
const { loadConfig } = await import("../src/config.js");
|
|
8
|
+
const { ContextStreamClient } = await import("../src/client.js");
|
|
9
|
+
const { registerTools } = await import("../src/tools.js");
|
|
10
|
+
const { SessionManager } = await import("../src/session-manager.js");
|
|
11
|
+
|
|
12
|
+
const config = loadConfig();
|
|
13
|
+
const client = new ContextStreamClient(config);
|
|
14
|
+
const server = new McpServer({ name: "smoke", version: "0.0.0" });
|
|
15
|
+
const sessionManager = new SessionManager(server, client);
|
|
16
|
+
registerTools(server, client, sessionManager, { toolSurfaceProfile: config.toolSurfaceProfile });
|
|
17
|
+
|
|
18
|
+
const registered = (server as any)._registeredTools;
|
|
19
|
+
const names = registered ? Object.keys(registered).sort() : [];
|
|
20
|
+
console.log(`TOOL_COUNT=${names.length}`);
|
|
21
|
+
console.log(names.join("\n"));
|
|
22
|
+
|
|
23
|
+
const mustHave = [
|
|
24
|
+
"qa",
|
|
25
|
+
"capture_plan",
|
|
26
|
+
"session_capture",
|
|
27
|
+
"session_capture_lesson",
|
|
28
|
+
"session_remember",
|
|
29
|
+
"memory_create_doc",
|
|
30
|
+
"memory_update_doc",
|
|
31
|
+
"memory_delete_doc",
|
|
32
|
+
"memory_create_task",
|
|
33
|
+
"memory_update_task",
|
|
34
|
+
"memory_create_todo",
|
|
35
|
+
"memory_complete_todo",
|
|
36
|
+
"memory_create_event",
|
|
37
|
+
];
|
|
38
|
+
const mustNotHave = ["ram", "mem", "chart", "async_job", "atlas_chart", "atlas_job"];
|
|
39
|
+
const missing = mustHave.filter((n) => !names.includes(n));
|
|
40
|
+
const forbidden = mustNotHave.filter((n) => names.includes(n));
|
|
41
|
+
if (missing.length || forbidden.length) {
|
|
42
|
+
console.error(`SMOKE_FAIL missing=[${missing.join(",")}] forbidden=[${forbidden.join(",")}]`);
|
|
43
|
+
process.exit(1);
|
|
44
|
+
}
|
|
45
|
+
console.log("SMOKE_PASS");
|