@contextstream/mcp-server 1.0.7 → 1.0.9

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 (3) hide show
  1. package/README.md +82 -227
  2. package/package.json +29 -2
  3. package/server.json +2 -2
package/README.md CHANGED
@@ -1,286 +1,141 @@
1
1
  <!-- mcp-name: io.github.contextstream/mcp-server -->
2
2
 
3
3
  <p align="center">
4
- <img src="assets/contextstream-logo.png" alt="ContextStream" width="112" />
4
+ <img src="assets/contextstream-logo.png" alt="ContextStream" width="64" />
5
5
  </p>
6
6
 
7
7
  <h1 align="center">ContextStream MCP Server</h1>
8
8
 
9
- <p align="center">
10
- <em>Intelligence without context is unreliable. Autonomy without context is chaos.<br/>
11
- And context without trust becomes surveillance.</em>
12
- </p>
9
+ <p align="center"><strong>Persistent memory. Millisecond code search.</strong></p>
13
10
 
14
- <p align="center">
15
- <strong>Give every coding agent persistent memory, semantic code search, and the right project context on every turn.</strong>
16
- </p>
17
-
18
- <p align="center">
19
- Works with Claude Code, Cursor, VS Code + Copilot, Windsurf, Cline, Roo Code, Kilo Code, Codex, OpenCode, Aider, Antigravity, and other MCP clients.
20
- </p>
11
+ ## Your agent knows code. Give it the decisions behind yours.
21
12
 
22
- <p align="center">
23
- <a href="https://www.npmjs.com/package/@contextstream/mcp-server"><img src="https://img.shields.io/npm/v/@contextstream/mcp-server.svg" alt="npm version" /></a>
24
- <a href="https://github.com/contextstream/mcp-server/releases/latest"><img src="https://img.shields.io/github/v/release/contextstream/mcp-server" alt="latest release" /></a>
25
- <a href="https://github.com/contextstream/mcp-server/actions/workflows/ci.yml"><img src="https://github.com/contextstream/mcp-server/actions/workflows/ci.yml/badge.svg" alt="CI status" /></a>
26
- <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="MIT license" /></a>
27
- </p>
13
+ Connect your code, docs, and conversations so your agents can find the right
14
+ files, recall saved decisions, and build on past work across sessions and tools.
28
15
 
29
- <p align="center">
30
- <a href="#install-in-30-seconds"><strong>Install in 30 seconds</strong></a> ·
31
- <a href="https://contextstream.io/benchmarks">Benchmarks</a> ·
32
- <a href="https://contextstream.io/docs/mcp">Documentation</a> ·
33
- <a href="https://contextstream.io/signup">Start free</a>
34
- </p>
16
+ <a id="install-in-30-seconds"></a>
35
17
 
36
- ---
18
+ ## Start free with MCP
37
19
 
38
- Your AI should not have to rediscover the repository, re-learn the architecture,
39
- or repeat last week's mistake every time a chat starts. ContextStream gives MCP
40
- clients a shared context layer that remembers decisions and lessons, searches
41
- code by meaning, maps dependencies, and restores the thread after compaction.
20
+ **10,000 monthly credits. No credit card required.**
42
21
 
43
- The server in this repository is the canonical, MIT-licensed Rust
44
- implementation. The recommended editor transport is the hosted MCP at
45
- `https://mcp.contextstream.io/mcp`; a small local helper keeps explicitly linked
46
- checkouts in sync.
22
+ Works with Claude Code, Cursor, Codex, GitHub Copilot, Gemini CLI, Qwen Code,
23
+ Kimi Code, Muse Code, ZCode, Zed, and [more MCP clients](docs/clients.md), on
24
+ Claude, GPT, Gemini, Kimi, GLM, Qwen, and other models.
25
+ Create your account or sign in during MCP onboarding. No separate website signup needed.
47
26
 
48
- ## Benchmarks: strong memory, strong retrieval, published methodology
27
+ **macOS and Linux**
49
28
 
50
- We publish the full method, confidence intervals, comparison caveats, and known
51
- losses—not just the winning number. The product-level figures below are from
52
- the published July 2026 report; the LongMemEval-S result was published June 14,
53
- 2026.
29
+ ```sh
30
+ bash -o pipefail -c 'curl -fsSL https://contextstream.io/scripts/mcp.sh | bash'
31
+ ```
54
32
 
55
- | Benchmark | ContextStream result | What was measured |
56
- |---|---:|---|
57
- | **LongMemEval-S** | **90.0%** | 450/500 correct on the full suite; ~115k-token multi-session histories; official pinned GPT-4o judge; `gpt-5.5` reader with self-consistency `k=3` (89.6% single-shot); Wilson 95% CI [87.1%, 92.3%] |
58
- | **Pinned-repo code search** | **99.38% Recall@10** | 93.83% Primary@10 and 95 ms successful-response p50 over 177 judged-valid queries, averaged across two cold and two warm runs; 0/708 failed requests; no local checkout |
59
- | **Agentic project memory** | **96% task success** | Up from 58% without the memory layer; one repository, one agent model, three trials per cell, so this result is directional |
33
+ **Windows PowerShell**
60
34
 
61
- On the standard memory benchmark, 90.0% is statistically above supermemory's
62
- published 85.4% and statistically tied with Zep's published 90.2%. Those
63
- comparisons use each vendor's published result; they are not presented as a
64
- private same-run head-to-head.
35
+ ```powershell
36
+ irm https://contextstream.io/scripts/mcp.ps1 | iex
37
+ ```
65
38
 
66
- **[Read the full benchmark report, methodology, per-category results, and losses →](https://contextstream.io/benchmarks)**
39
+ Paste the command into your terminal and follow onboarding to connect your
40
+ project and supported editor. Restart your editor after setup.
67
41
 
68
- The repository also includes Criterion suites for JSON-RPC parsing, tool
69
- dispatch, response serialization, and stdio/HTTP transport primitives. Run
70
- them locally with `cargo bench --locked -p mcp-server`.
42
+ [What gets installed and indexed?](docs/data-handling.md) ·
43
+ [Supported clients](docs/clients.md) ·
44
+ [Setup guide](https://contextstream.io/docs/editors/setup) ·
45
+ [Prefer to start on the web?](https://contextstream.io/signup)
71
46
 
72
- ## Install in 30 seconds
47
+ ## Make the next session useful
73
48
 
74
- Pick the command for your platform. Each installer downloads the current native
75
- release and launches the guided setup wizard.
49
+ Ask your connected agent:
76
50
 
77
- ### macOS and Linux
51
+ > Use ContextStream to find the files relevant to my next change. Cite the
52
+ > sources and retrieve any saved project decisions that should guide the work.
78
53
 
79
- ```bash
80
- curl -fsSL https://contextstream.io/scripts/setup.sh | bash
81
- ```
54
+ Then ask it to save a real decision and its reason. Start a new session and
55
+ retrieve that decision without explaining it again. Indexing supplies code
56
+ context; it cannot recover every undocumented decision.
82
57
 
83
- Native releases are published for macOS Apple Silicon and Intel, plus Linux
84
- ARM64 and x64.
58
+ ## Proof and data controls
85
59
 
86
- ### Windows PowerShell
60
+ **95 ms median code search in our published benchmark.** This is the measured
61
+ successful-response median for the disclosed configuration, not a latency guarantee.
62
+ [See results, methodology, and limitations](https://contextstream.io/benchmarks).
87
63
 
88
- ```powershell
89
- irm https://contextstream.io/scripts/setup.ps1 | iex
90
- ```
64
+ **Scoped access. Traceable sources. Configurable capture.**
65
+ Indexing sends eligible source contents to ContextStream for hosted search.
66
+ Transcript saving and local Git metadata capture are on by default and can be
67
+ turned off. Review [data handling and controls](docs/data-handling.md) before
68
+ connecting sensitive projects.
91
69
 
92
- The Windows installer uses the native x64 binary and installs it in your user
93
- profile, so it does not need an administrator shell.
70
+ <details>
71
+ <summary><strong>Other installation options and troubleshooting</strong></summary>
94
72
 
95
- ### npm alternative (Node.js 20+)
73
+ ### npm (Node.js 20+)
96
74
 
97
75
  ```bash
98
76
  npx -y @contextstream/mcp-server@latest setup
99
77
  ```
100
78
 
101
- The dependency-free npm launcher selects the matching release artifact,
102
- verifies its SHA-256 checksum, caches it by exact package version, and starts
103
- the Rust binary. It supports macOS ARM64/x64, Linux ARM64/x64, and Windows x64.
79
+ The npm launcher downloads the native Rust binary for your platform and verifies
80
+ its SHA-256 checksum. Pin an exact package version for production automation.
104
81
 
105
- ### What the wizard does
82
+ ### Hosted MCP without a local process
106
83
 
107
- The wizard signs you in, detects supported editors, writes their hosted MCP
108
- configuration and managed rules, installs lifecycle hooks where supported,
109
- links the exact project folder you choose, starts indexing, and checks the
110
- result. You review the choices before it makes changes.
84
+ For clients supporting Streamable HTTP and OAuth, the hosted endpoint is:
111
85
 
112
- After setup, restart the editor and try:
86
+ ```text
87
+ https://mcp.contextstream.io/mcp
88
+ ```
113
89
 
114
- > Use ContextStream to summarize this repository, cite the files you relied on,
115
- > and tell me one active decision or risk that should affect my next change.
90
+ [Supported clients](docs/clients.md) lists one-line add commands for Claude
91
+ Code, Codex, Gemini CLI, Qwen Code, Copilot CLI, and Droid, and one-click
92
+ install for VS Code. Use the [MCP documentation](https://contextstream.io/docs/mcp)
93
+ for other clients and stdio alternatives. A hosted connection alone does not
94
+ sync your local checkout.
116
95
 
117
- Want to inspect the changes first? Every setup write can be previewed:
96
+ ### Preview or diagnose setup
118
97
 
119
98
  ```bash
120
99
  contextstream-mcp setup --dry-run
121
- ```
122
-
123
- Already configured and troubleshooting? Run:
124
-
125
- ```bash
126
100
  contextstream-mcp doctor --scope=all --only-configured
127
101
  ```
128
102
 
129
- ## No-install hosted connection
103
+ ### Scripted and CI setup
130
104
 
131
- If your MCP client supports Streamable HTTP and OAuth, connect directly—there
132
- is no local MCP process to keep running:
105
+ `pipefail` makes the install command fail when the download fails, instead of
106
+ reporting success after installing nothing. `setup --yes` reads the key from
107
+ `CONTEXTSTREAM_API_KEY` or saved credentials, and needs `--workspace-id` when
108
+ the account has more than one workspace:
133
109
 
134
- ```json
135
- {
136
- "mcpServers": {
137
- "contextstream": {
138
- "type": "http",
139
- "url": "https://mcp.contextstream.io/mcp"
140
- }
141
- }
142
- }
143
- ```
144
-
145
- Some clients use a different root key or config format, which is why the setup
146
- wizard is the easiest path. The hosted gateway is the default; the installed
147
- helper only syncs the local checkouts you explicitly link.
148
-
149
- Clients that require stdio can use the verified npm launcher:
150
-
151
- ```json
152
- {
153
- "mcpServers": {
154
- "contextstream": {
155
- "command": "npx",
156
- "args": ["-y", "@contextstream/mcp-server@latest"],
157
- "env": {
158
- "CONTEXTSTREAM_API_KEY": "your-api-key"
159
- }
160
- }
161
- }
162
- }
110
+ ```bash
111
+ export CONTEXTSTREAM_API_KEY=... # or: printf %s "$KEY" | contextstream-mcp configure --api-key-stdin
112
+ contextstream-mcp setup --yes --editors=claude --workspace-id=<UUID> --project-path=.
163
113
  ```
164
114
 
165
- For production automation, pin an exact 1.x package version instead of
166
- `latest`.
167
-
168
- ## What your agent gets
115
+ </details>
169
116
 
170
- | Capability | What changes in practice |
171
- |---|---|
172
- | **Grounded context** | Each turn starts with the relevant workspace rules, prior decisions, lessons, and current project state. |
173
- | **Semantic code search** | Find implementations by intent, with hybrid, keyword, pattern, exhaustive, and refactor-aware modes when precision matters. |
174
- | **Durable memory** | Decisions, plans, tasks, runbooks, preferences, and session transcripts remain queryable across chats and tools. |
175
- | **Compaction survival** | Important state is checkpointed before long conversations compact and restored afterward. |
176
- | **Dependency intelligence** | Trace blast radius, dependencies, circular imports, complexity, and unused code without manually rebuilding the graph. |
177
- | **Agent handoffs** | Package verified state and next steps into durable handoffs and portable ContextCapsules. |
178
- | **Team context** | Bring shared workspace knowledge and supported GitHub, Slack, and Notion context into the same MCP surface. |
117
+ ## Open source and contributing
179
118
 
180
- The default tool surface is grouped into focused domains—`context`, `search`,
181
- `memory`, `session`, `graph`, `entity`, `capsule`, `project`, `workspace`,
182
- `skill`, `media`, `vcs`, and more—so agents get broad capability without an
183
- enormous tool-registration prompt.
184
-
185
- ## Supported editors and agents
186
-
187
- The wizard currently detects and configures:
188
-
189
- - Claude Code
190
- - Cursor
191
- - Windsurf
192
- - VS Code + GitHub Copilot
193
- - Cline
194
- - Kilo Code
195
- - Roo Code
196
- - OpenAI Codex
197
- - Aider
198
- - Antigravity
199
- - OpenCode
200
-
201
- Anything else that speaks the Model Context Protocol can connect to the hosted
202
- URL or use the stdio launcher.
203
-
204
- ## What is open source?
205
-
206
- This repository contains the canonical Rust MCP server, protocol types, client
207
- and session layers, editor setup, hooks, public transport code, release
208
- automation, and the MongoDB-free acceleration foundation. It builds as seven
209
- workspace crates:
210
-
211
- - `mcp-server`
212
- - `mcp-tools`
213
- - `mcp-client`
214
- - `mcp-session`
215
- - `mcp-types`
216
- - `mcp-model-registry`
217
- - `mcp-acceleration-products`
218
-
219
- The hosted backend, credentials, production deployment configuration, and
220
- premium provider implementations are not included. Public-build compatibility
221
- traits remain no-op so the core protocol surface stays stable. See
222
- [`docs/architecture.md`](docs/architecture.md) for the boundary.
223
-
224
- ## Privacy and data controls
225
-
226
- Setup shows a disclosure before changing editor configuration or indexing a
227
- project. You choose the folder and workspace relationship; only matching source
228
- files from a validated project can be indexed. Transcript capture, local Git
229
- metadata capture, ignore rules, kill switches, retention behavior, and deletion
230
- paths are documented in [`docs/data-handling.md`](docs/data-handling.md).
231
-
232
- Review that document before using `setup --yes` in automation. The CLI also
233
- provides `--dry-run` for setup, repair, migration, and uninstall workflows.
234
-
235
- ## Build and test from source
236
-
237
- The workspace uses the Rust toolchain pinned in `rust-toolchain.toml`.
119
+ This repository contains the MIT-licensed Rust MCP server, client, editor setup,
120
+ and release tooling. The hosted backend is separate and is not included here.
121
+ See the [architecture](docs/architecture.md), [release integrity](docs/release.md),
122
+ and [latest release](https://github.com/contextstream/mcp-server/releases/latest).
238
123
 
239
124
  ```bash
240
125
  cargo build --locked -p mcp-server --bin contextstream-mcp
241
126
  cargo test --locked --workspace
242
- cargo bench --locked -p mcp-server
243
127
  ```
244
128
 
245
- To build the hosted HTTP gateway foundation:
246
-
247
- ```bash
248
- cargo build --locked --release -p mcp-server --bin contextstream-mcp \
249
- --features remote-acceleration
250
- ```
251
-
252
- ## Release integrity
253
-
254
- Every release publishes native binaries, `checksums.txt`, `version.json`, and
255
- an SPDX SBOM. The npm launcher downloads only from the immutable path for its
256
- exact package version, verifies manifests and binary SHA-256, uses an atomic
257
- versioned cache, and supports verified offline reuse with
258
- `CONTEXTSTREAM_MCP_OFFLINE=1`.
259
-
260
- See [`docs/release.md`](docs/release.md) for the release contract and
261
- [the latest GitHub release](https://github.com/contextstream/mcp-server/releases/latest)
262
- for artifacts.
263
-
264
- All 1.x npm releases preserve these executable aliases:
265
-
266
- - `mcp-server`
267
- - `contextstream-mcp`
268
- - `contextstream-hook` (forwards to the Rust `hook` subcommand)
269
-
270
- ## Contributing and security
271
-
272
- Issues and pull requests are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md),
273
- [SECURITY.md](SECURITY.md), and [GOVERNANCE.md](GOVERNANCE.md). Contributions
274
- must include the Developer Certificate of Origin sign-off (`git commit -s`).
275
-
276
- The code is MIT licensed. ContextStream trademarks and the hosted-service
277
- boundary are described in [NOTICE](NOTICE).
129
+ Use the pinned Rust toolchain. For contribution checks and commit sign-off, read
130
+ [CONTRIBUTING.md](CONTRIBUTING.md). Report vulnerabilities using
131
+ [SECURITY.md](SECURITY.md). See [LICENSE](LICENSE), [NOTICE](NOTICE), and
132
+ [GOVERNANCE.md](GOVERNANCE.md) for licensing, trademarks, and project governance.
278
133
 
279
134
  ---
280
135
 
281
- <p align="center">
282
- <strong>Stop teaching your coding agent the same project twice.</strong><br />
283
- <a href="#install-in-30-seconds">Install ContextStream</a> ·
284
- <a href="https://contextstream.io/signup">Start free</a> ·
285
- <a href="https://contextstream.io/docs/mcp">Read the docs</a>
286
- </p>
136
+ **Let humans be human.**
137
+
138
+ [Docs](https://contextstream.io/docs/mcp) ·
139
+ [Pricing](https://contextstream.io/pricing) ·
140
+ [Integrations](https://contextstream.io/integrations) ·
141
+ [Benchmarks](https://contextstream.io/benchmarks)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contextstream/mcp-server",
3
3
  "mcpName": "io.github.contextstream/mcp-server",
4
- "version": "1.0.7",
4
+ "version": "1.0.9",
5
5
  "description": "Verified npm launcher for the open-source ContextStream Rust MCP server",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -45,6 +45,33 @@
45
45
  "contextstream",
46
46
  "semantic-search",
47
47
  "memory",
48
- "developer-tools"
48
+ "developer-tools",
49
+ "cursor",
50
+ "claude-code",
51
+ "codex",
52
+ "shared-context",
53
+ "project-context",
54
+ "mcp-server",
55
+ "ai-coding",
56
+ "kimi",
57
+ "kimi-code",
58
+ "glm",
59
+ "zai",
60
+ "zcode",
61
+ "qwen-code",
62
+ "gemini-cli",
63
+ "muse-code",
64
+ "zed",
65
+ "windsurf",
66
+ "copilot",
67
+ "copilot-cli",
68
+ "opencode",
69
+ "crush",
70
+ "amp",
71
+ "factory-droid",
72
+ "cline",
73
+ "kilo-code",
74
+ "antigravity",
75
+ "claude-desktop"
49
76
  ]
50
77
  }
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "io.github.contextstream/mcp-server",
4
4
  "title": "ContextStream MCP Server",
5
5
  "description": "Project memory, semantic code search, and grounded agent context.",
6
- "version": "1.0.7",
6
+ "version": "1.0.9",
7
7
  "repository": {
8
8
  "url": "https://github.com/contextstream/mcp-server",
9
9
  "source": "github"
@@ -20,7 +20,7 @@
20
20
  "registryType": "npm",
21
21
  "registryBaseUrl": "https://registry.npmjs.org",
22
22
  "identifier": "@contextstream/mcp-server",
23
- "version": "1.0.7",
23
+ "version": "1.0.9",
24
24
  "transport": {
25
25
  "type": "stdio"
26
26
  },