@contextstream/mcp-server 0.2.5 → 0.2.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/README.md +42 -50
- package/package.json +1 -1
- package/.env.example +0 -5
- package/src/client.ts +0 -764
- package/src/config.ts +0 -36
- package/src/files.ts +0 -261
- package/src/http.ts +0 -154
- package/src/index.ts +0 -38
- package/src/prompts.ts +0 -308
- package/src/resources.ts +0 -49
- package/src/tools.ts +0 -1040
- package/src/workspace-config.ts +0 -150
- package/tsconfig.json +0 -14
package/README.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# ContextStream MCP Server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@contextstream/mcp-server)
|
|
4
|
+
|
|
5
|
+
A powerful Model Context Protocol (MCP) server that provides persistent memory, code context, knowledge graphs, and AI tools. Connect your AI assistant to your codebase's semantic search, memory system, and dependency analysis.
|
|
6
|
+
|
|
7
|
+
**Website:** [contextstream.io](https://contextstream.io) | **Docs:** [contextstream.io/docs/mcp](https://contextstream.io/docs/mcp)
|
|
4
8
|
|
|
5
9
|
## Features
|
|
6
10
|
|
|
@@ -29,62 +33,66 @@ A powerful Model Context Protocol (MCP) server that provides code context, memor
|
|
|
29
33
|
- **Plan generation** — AI-powered development planning
|
|
30
34
|
- **Task generation** — Break down work into actionable tasks
|
|
31
35
|
|
|
32
|
-
##
|
|
36
|
+
## Installation
|
|
33
37
|
|
|
34
|
-
|
|
35
|
-
cd mcp/contextstream-mcp
|
|
36
|
-
cp .env.example .env # Edit with your API details
|
|
37
|
-
npm install
|
|
38
|
-
npm run dev # Start MCP server (stdio)
|
|
39
|
-
```
|
|
38
|
+
Add ContextStream to your AI tool's MCP configuration:
|
|
40
39
|
|
|
41
|
-
|
|
40
|
+
### Cursor / VS Code
|
|
41
|
+
```json
|
|
42
|
+
{
|
|
43
|
+
"mcpServers": {
|
|
44
|
+
"contextstream": {
|
|
45
|
+
"command": "npx",
|
|
46
|
+
"args": ["@contextstream/mcp-server"],
|
|
47
|
+
"env": {
|
|
48
|
+
"CONTEXTSTREAM_API_URL": "https://api.contextstream.io",
|
|
49
|
+
"CONTEXTSTREAM_API_KEY": "your_api_key"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
```
|
|
42
55
|
|
|
43
|
-
###
|
|
56
|
+
### Claude Code
|
|
44
57
|
```json
|
|
45
58
|
{
|
|
46
59
|
"mcpServers": {
|
|
47
60
|
"contextstream": {
|
|
48
|
-
"command": "
|
|
49
|
-
"args": ["
|
|
50
|
-
"cwd": "/path/to/contextstream/mcp/contextstream-mcp",
|
|
61
|
+
"command": "npx",
|
|
62
|
+
"args": ["@contextstream/mcp-server"],
|
|
51
63
|
"env": {
|
|
52
|
-
"CONTEXTSTREAM_API_URL": "
|
|
53
|
-
"CONTEXTSTREAM_API_KEY": "
|
|
54
|
-
"CONTEXTSTREAM_WORKSPACE_ID": "optional-default-workspace-uuid",
|
|
55
|
-
"CONTEXTSTREAM_PROJECT_ID": "optional-default-project-uuid"
|
|
64
|
+
"CONTEXTSTREAM_API_URL": "https://api.contextstream.io",
|
|
65
|
+
"CONTEXTSTREAM_API_KEY": "your_api_key"
|
|
56
66
|
}
|
|
57
67
|
}
|
|
58
68
|
}
|
|
59
69
|
}
|
|
60
70
|
```
|
|
61
71
|
|
|
62
|
-
###
|
|
72
|
+
### Windsurf
|
|
63
73
|
```json
|
|
64
74
|
{
|
|
65
75
|
"mcpServers": {
|
|
66
76
|
"contextstream": {
|
|
67
|
-
"command": "
|
|
68
|
-
"args": ["
|
|
77
|
+
"command": "npx",
|
|
78
|
+
"args": ["@contextstream/mcp-server"],
|
|
69
79
|
"env": {
|
|
70
|
-
"CONTEXTSTREAM_API_URL": "
|
|
71
|
-
"CONTEXTSTREAM_API_KEY": "
|
|
80
|
+
"CONTEXTSTREAM_API_URL": "https://api.contextstream.io",
|
|
81
|
+
"CONTEXTSTREAM_API_KEY": "your_api_key"
|
|
72
82
|
}
|
|
73
83
|
}
|
|
74
84
|
}
|
|
75
85
|
}
|
|
76
86
|
```
|
|
77
87
|
|
|
88
|
+
Get your API key at [contextstream.io](https://contextstream.io)
|
|
89
|
+
|
|
78
90
|
## Environment Variables
|
|
79
91
|
|
|
80
92
|
| Variable | Required | Description |
|
|
81
93
|
|----------|----------|-------------|
|
|
82
|
-
| `CONTEXTSTREAM_API_URL` | Yes | API base URL (
|
|
83
|
-
| `CONTEXTSTREAM_API_KEY` |
|
|
84
|
-
| `CONTEXTSTREAM_JWT` | One of | JWT token for authentication |
|
|
85
|
-
| `CONTEXTSTREAM_WORKSPACE_ID` | No | Default workspace for operations |
|
|
86
|
-
| `CONTEXTSTREAM_PROJECT_ID` | No | Default project for operations |
|
|
87
|
-
| `CONTEXTSTREAM_USER_AGENT` | No | Custom user agent string |
|
|
94
|
+
| `CONTEXTSTREAM_API_URL` | Yes | API base URL (`https://api.contextstream.io`) |
|
|
95
|
+
| `CONTEXTSTREAM_API_KEY` | Yes | Your API key from contextstream.io |
|
|
88
96
|
|
|
89
97
|
## Available Tools
|
|
90
98
|
|
|
@@ -213,28 +221,6 @@ Pre-built prompts for common workflows:
|
|
|
213
221
|
| `contextstream:workspaces` | Workspace listing |
|
|
214
222
|
| `contextstream:projects/{id}` | Projects for workspace |
|
|
215
223
|
|
|
216
|
-
## Scripts
|
|
217
|
-
|
|
218
|
-
```bash
|
|
219
|
-
npm run dev # Run with tsx (development)
|
|
220
|
-
npm run build # Compile TypeScript
|
|
221
|
-
npm start # Run compiled version
|
|
222
|
-
npm run typecheck # Type check without emit
|
|
223
|
-
```
|
|
224
|
-
|
|
225
|
-
## Architecture
|
|
226
|
-
|
|
227
|
-
```
|
|
228
|
-
src/
|
|
229
|
-
├── index.ts # Server bootstrap
|
|
230
|
-
├── config.ts # Environment configuration
|
|
231
|
-
├── http.ts # HTTP client with retries
|
|
232
|
-
├── client.ts # ContextStream API client
|
|
233
|
-
├── tools.ts # MCP tools (55+ tools)
|
|
234
|
-
├── resources.ts # MCP resources
|
|
235
|
-
└── prompts.ts # MCP prompts (8 workflows)
|
|
236
|
-
```
|
|
237
|
-
|
|
238
224
|
## Error Handling
|
|
239
225
|
|
|
240
226
|
The client includes:
|
|
@@ -250,6 +236,12 @@ The client includes:
|
|
|
250
236
|
- Minimal logging — credentials are not echoed
|
|
251
237
|
- Public REST API only — no proprietary logic included
|
|
252
238
|
|
|
239
|
+
## Links
|
|
240
|
+
|
|
241
|
+
- **Website:** [contextstream.io](https://contextstream.io)
|
|
242
|
+
- **Documentation:** [contextstream.io/docs](https://contextstream.io/docs)
|
|
243
|
+
- **MCP Setup Guide:** [contextstream.io/docs/mcp](https://contextstream.io/docs/mcp)
|
|
244
|
+
|
|
253
245
|
## License
|
|
254
246
|
|
|
255
247
|
MIT
|
package/package.json
CHANGED