@contextstream/mcp-server 1.0.0 → 1.0.2

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 CHANGED
@@ -1,20 +1,135 @@
1
1
  <!-- mcp-name: io.github.contextstream/mcp-server -->
2
2
 
3
- # ContextStream MCP Server
3
+ <p align="center">
4
+ <img src="assets/contextstream-logo.png" alt="ContextStream" width="112" />
5
+ </p>
4
6
 
5
- This repository is the canonical open-source implementation and release source
6
- for the ContextStream Rust MCP server. It provides project memory, semantic code
7
- search, dependency analysis, grounded context, and editor setup over the Model
8
- Context Protocol.
7
+ <h1 align="center">ContextStream MCP Server</h1>
9
8
 
10
- The hosted service at `https://mcp.contextstream.io/mcp` is the recommended
11
- transport. The npm package is a compatibility launcher for clients that require
12
- stdio: it downloads the binary for the package's exact version from an immutable
13
- release path, verifies SHA-256, and runs it from a versioned cache.
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>
14
13
 
15
- ## Connect
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>
16
17
 
17
- Streamable HTTP (recommended):
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>
21
+
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>
28
+
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>
35
+
36
+ ---
37
+
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.
42
+
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.
47
+
48
+ ## Benchmarks: strong memory, strong retrieval, published methodology
49
+
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.
54
+
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 |
60
+
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.
65
+
66
+ **[Read the full benchmark report, methodology, per-category results, and losses →](https://contextstream.io/benchmarks)**
67
+
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`.
71
+
72
+ ## Install in 30 seconds
73
+
74
+ Pick the command for your platform. Each installer downloads the current native
75
+ release and launches the guided setup wizard.
76
+
77
+ ### macOS and Linux
78
+
79
+ ```bash
80
+ curl -fsSL https://contextstream.io/scripts/setup.sh | bash
81
+ ```
82
+
83
+ Native releases are published for macOS Apple Silicon and Intel, plus Linux
84
+ ARM64 and x64.
85
+
86
+ ### Windows PowerShell
87
+
88
+ ```powershell
89
+ irm https://contextstream.io/scripts/setup.ps1 | iex
90
+ ```
91
+
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.
94
+
95
+ ### npm alternative (Node.js 20+)
96
+
97
+ ```bash
98
+ npx -y @contextstream/mcp-server@latest setup
99
+ ```
100
+
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.
104
+
105
+ ### What the wizard does
106
+
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.
111
+
112
+ After setup, restart the editor and try:
113
+
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.
116
+
117
+ Want to inspect the changes first? Every setup write can be previewed:
118
+
119
+ ```bash
120
+ contextstream-mcp setup --dry-run
121
+ ```
122
+
123
+ Already configured and troubleshooting? Run:
124
+
125
+ ```bash
126
+ contextstream-mcp doctor --scope=all --only-configured
127
+ ```
128
+
129
+ ## No-install hosted connection
130
+
131
+ If your MCP client supports Streamable HTTP and OAuth, connect directly—there
132
+ is no local MCP process to keep running:
18
133
 
19
134
  ```json
20
135
  {
@@ -27,14 +142,18 @@ Streamable HTTP (recommended):
27
142
  }
28
143
  ```
29
144
 
30
- npm/stdin compatibility:
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:
31
150
 
32
151
  ```json
33
152
  {
34
153
  "mcpServers": {
35
154
  "contextstream": {
36
155
  "command": "npx",
37
- "args": ["-y", "@contextstream/mcp-server@1.0.0"],
156
+ "args": ["-y", "@contextstream/mcp-server@latest"],
38
157
  "env": {
39
158
  "CONTEXTSTREAM_API_KEY": "your-api-key"
40
159
  }
@@ -43,48 +162,51 @@ npm/stdin compatibility:
43
162
  }
44
163
  ```
45
164
 
46
- All 1.x releases preserve these npm executables:
165
+ For production automation, pin an exact 1.x package version instead of
166
+ `latest`.
47
167
 
48
- - `mcp-server`
49
- - `contextstream-mcp`
50
- - `contextstream-hook` (forwards to the Rust `hook` subcommand)
168
+ ## What your agent gets
51
169
 
52
- Run the setup wizard with:
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. |
53
179
 
54
- ```bash
55
- npx -y @contextstream/mcp-server@1.0.0 setup
56
- ```
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.
57
184
 
58
- ## What setup sends
185
+ ## Supported editors and agents
59
186
 
60
- Setup prints this disclosure before changing editor configuration:
187
+ The wizard currently detects and configures:
61
188
 
62
- - Transcript exchange saving and hook transcript saving are enabled by default.
63
- - A validated project can be indexed; matching source files are sent to the
64
- user's ContextStream workspace.
65
- - Selected supported editors receive managed lifecycle hooks.
66
- - Local Git capture is enabled by default. It sends event type, commit SHA/time,
67
- branch/ref names, aggregate line/file counts, a bounded redacted commit
68
- subject, an opaque checkout ID, and a credential-free canonical remote.
69
- - Absolute filesystem paths, commit bodies, and commit author name/email are not
70
- sent by the VCS hook pipeline.
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
71
200
 
72
- Controls and deletion paths are documented in
73
- [`docs/data-handling.md`](docs/data-handling.md). These defaults are preserved
74
- for compatibility; review them before running `setup --yes` in automation.
201
+ Anything else that speaks the Model Context Protocol can connect to the hosted
202
+ URL or use the stdio launcher.
75
203
 
76
- ## Build
204
+ ## What is open source?
77
205
 
78
- The workspace requires the Rust toolchain pinned in `rust-toolchain.toml`.
79
-
80
- ```bash
81
- cargo build --locked -p mcp-server --bin contextstream-mcp
82
- cargo test --locked --workspace
83
- cargo build --locked --release -p mcp-server --bin contextstream-mcp \
84
- --features remote-acceleration
85
- ```
86
-
87
- The public workspace contains seven crates:
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:
88
210
 
89
211
  - `mcp-server`
90
212
  - `mcp-tools`
@@ -94,33 +216,71 @@ The public workspace contains seven crates:
94
216
  - `mcp-model-registry`
95
217
  - `mcp-acceleration-products`
96
218
 
97
- `mcp-acceleration-products` is MongoDB-free. Premium provider implementation,
98
- production deployment configuration, credentials, and private operator material
99
- are not part of this repository. Compatibility traits remain no-op in public
100
- builds so the core protocol surface stays stable.
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.
101
234
 
102
- ## npm launcher behavior
235
+ ## Build and test from source
103
236
 
104
- The dependency-free Node 20 launcher:
237
+ The workspace uses the Rust toolchain pinned in `rust-toolchain.toml`.
105
238
 
106
- - selects the package-version/platform artifact;
107
- - downloads only from `mcp/v<exact-version>/`;
108
- - verifies `version.json`, `checksums.txt`, and the binary SHA-256;
109
- - populates the cache under an atomic lock and re-verifies cached bytes;
110
- - supports `CONTEXTSTREAM_MCP_OFFLINE=1` after a verified first run;
111
- - executes the cached binary by absolute path, ignoring PATH-shadowing copies;
112
- - sets `CONTEXTSTREAM_DISABLE_SELF_UPDATE=1`, so the Rust process cannot mutate
113
- npm-managed cache state.
239
+ ```bash
240
+ cargo build --locked -p mcp-server --bin contextstream-mcp
241
+ cargo test --locked --workspace
242
+ cargo bench --locked -p mcp-server
243
+ ```
244
+
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
+ ```
114
251
 
115
- For test mirrors only, the launcher recognizes
116
- `CONTEXTSTREAM_MCP_RELEASE_BASE_URL` together with
117
- `CONTEXTSTREAM_MCP_TEST_ALLOW_HTTP=1`. Production release URLs must use HTTPS.
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)
118
269
 
119
270
  ## Contributing and security
120
271
 
121
- See [CONTRIBUTING.md](CONTRIBUTING.md), [SECURITY.md](SECURITY.md), and
122
- [GOVERNANCE.md](GOVERNANCE.md). By contributing, you certify the Developer
123
- Certificate of Origin for your commits (`git commit -s`).
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).
278
+
279
+ ---
124
280
 
125
- The code in this repository is MIT licensed. ContextStream trademarks and the
126
- hosted backend are addressed in [NOTICE](NOTICE).
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>
Binary file
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@contextstream/mcp-server",
3
3
  "mcpName": "io.github.contextstream/mcp-server",
4
- "version": "1.0.0",
4
+ "version": "1.0.2",
5
5
  "description": "Verified npm launcher for the open-source ContextStream Rust MCP server",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "files": [
9
+ "assets/contextstream-logo.png",
9
10
  "npm/bin",
10
11
  "npm/launcher.mjs",
11
12
  "README.md",
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.0",
6
+ "version": "1.0.2",
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.0",
23
+ "version": "1.0.2",
24
24
  "transport": {
25
25
  "type": "stdio"
26
26
  },