@contextstream/mcp-server 1.0.95 → 1.0.97
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 +100 -0
- package/package.json +1 -1
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -82,6 +82,106 @@ days), happens only when you ask for it. You can revoke a link at any time.
|
|
|
82
82
|
When someone pastes a live link, the agent reads it with
|
|
83
83
|
`capsule(action="live_read")`.
|
|
84
84
|
|
|
85
|
+
Use `capsule(action="create", review=...)` in a local MCP session to make a
|
|
86
|
+
Review Capsule from Git changes with secret redaction. Capsules and handoffs
|
|
87
|
+
can show the verification state of the indexed tree.
|
|
88
|
+
|
|
89
|
+
## Check your changes
|
|
90
|
+
|
|
91
|
+
Turn on remote checks with `contextstream-mcp remote-checks on` or
|
|
92
|
+
`session(action="remote_checks", enabled=true)`. In a local MCP session,
|
|
93
|
+
`check` runs supported tests, lints, type checks and builds on a worker using
|
|
94
|
+
a snapshot of your checkout. From a shell, use `contextstream-mcp run -- <command>`.
|
|
95
|
+
If the worker declines the check, `run` runs the command on your machine.
|
|
96
|
+
[Supported toolchains](https://machinestream.io/docs/support).
|
|
97
|
+
|
|
98
|
+
- **Run the checks your edit needs.** Use `verify` (also callable as
|
|
99
|
+
`ms_verify`) in a local MCP session. It uses the project's dependency and test
|
|
100
|
+
graph to choose checks. It widens the run for changes such as lockfiles,
|
|
101
|
+
migrations, auth code, shared fixtures or configuration, and when the graph
|
|
102
|
+
finds broad impact or cannot map the changes to tests. Ask for `scope="full"`
|
|
103
|
+
to run the full detected suite before completing a task. Checks run remotely
|
|
104
|
+
when available, with a local fallback, and stop at the first failure. To
|
|
105
|
+
choose checks by directory, open **Verification Map** in the workspace's
|
|
106
|
+
**Capsules** panel. The next targeted plan uses the most specific matching
|
|
107
|
+
rules alongside the graph's checks. The panel flags stale rules.
|
|
108
|
+
- **Check more commands in one run.** Supported `&&` chains use one checkout
|
|
109
|
+
upload and stop on the first failure. The MCP reports stages as they run
|
|
110
|
+
when the client supplies a progress token. Try
|
|
111
|
+
`npx prisma generate && npx tsc --noEmit`,
|
|
112
|
+
`npx next typegen && npx tsc --noEmit` or
|
|
113
|
+
`npx svelte-kit sync && npx svelte-check`. Checks also cover tools such as
|
|
114
|
+
`tsgo`, Oxlint, Oxfmt in check mode, `vue-tsc --noEmit`, `astro check`,
|
|
115
|
+
`ty check`, Pyrefly, Basedpyright, `cargo fmt --check` and `go tool staticcheck`.
|
|
116
|
+
Run Prettier with `--check`, `-c`, `--list-different` or `-l` through
|
|
117
|
+
`npx`, `pnpm exec`, `yarn exec`, `npm exec` or the project's
|
|
118
|
+
`node_modules/.bin`. Use the project's pinned Prettier version. The worker
|
|
119
|
+
declines write flags such as `--write` and `-w`.
|
|
120
|
+
- **See what broke.** When base-tree results are available, failure diagnostics
|
|
121
|
+
put new failures ahead of existing ones. The report can cite a matching
|
|
122
|
+
lesson, decision or commit.
|
|
123
|
+
- **Check consumers of a shared contract.** After a successful remote
|
|
124
|
+
`check` from a local MCP session, ContextStream can check indexed consumers
|
|
125
|
+
in the same workspace. It applies eligible changed contract files to each
|
|
126
|
+
reachable consumer's default branch in the worker and returns compiler
|
|
127
|
+
errors with your result. The worker needs the consumer's default-branch
|
|
128
|
+
tree from a previous check. A consumer whose change cannot be applied is
|
|
129
|
+
reported as unverified.
|
|
130
|
+
- **Prepare before the first check.** Supported local editor hooks can send a
|
|
131
|
+
free `:prepare` call in the background to set up the worker's checkout and
|
|
132
|
+
dependencies. A busy worker or failed preparation leaves the next check to
|
|
133
|
+
start as usual. Remote checks can report up to 32 local tool versions.
|
|
134
|
+
They use `go version` for Go and try `java --version` followed by
|
|
135
|
+
`java -version` for Java.
|
|
136
|
+
- **Check saves in the background.** Speculative checks are off until you
|
|
137
|
+
opt in. With remote checks enabled, set `CONTEXTSTREAM_SPECULATIVE_CHECKS=on`
|
|
138
|
+
for the editor hooks, or set `speculative_checks` with `enabled` in
|
|
139
|
+
`PUT /api/v1/mcp/hosted-tools/enabled` for your account. After a supported
|
|
140
|
+
edit and a pause, the hook can run up to three checks. A matching cached
|
|
141
|
+
result costs no credits. The hosted service defaults to 100 speculative
|
|
142
|
+
credits per account per hour in addition to the client's limits below.
|
|
143
|
+
Explicit checks can still run when the speculative budget is spent.
|
|
144
|
+
- **Require a passing receipt.** Workspace owners and admins can set a gate
|
|
145
|
+
for pushes, pull-request creation or completion through the API.
|
|
146
|
+
Gates start off.
|
|
147
|
+
The policy can require specific check families. An enabled gate names
|
|
148
|
+
what is missing when the exact Git tree lacks a fresh passing receipt.
|
|
149
|
+
Git's managed `pre-push` hook checks the trees being pushed, including
|
|
150
|
+
from a terminal. Setup installs it where Git capture is enabled.
|
|
151
|
+
[Set up verification gates](docs/clients.md#remote-checks-and-verification-hooks).
|
|
152
|
+
|
|
153
|
+
### Remote check environment variables
|
|
154
|
+
|
|
155
|
+
Set these in the environment of the local MCP process, editor hooks or shell
|
|
156
|
+
that runs the check.
|
|
157
|
+
|
|
158
|
+
| Variable | Default | What it controls |
|
|
159
|
+
|---|---|---|
|
|
160
|
+
| `CONTEXTSTREAM_HOSTED_TOOLS` | Unset, so available hosted tools can be used | `off` disables hosted check execution, command routing, background preparation, speculative checks and local receipt gates. |
|
|
161
|
+
| `CONTEXTSTREAM_CONTRACT_CHECK` | On | `off` skips the consumer check. |
|
|
162
|
+
| `CONTEXTSTREAM_SPECULATIVE_CHECKS` | Follows the account setting, which starts off | `on` opts in locally when `check` is available. `off` overrides the account setting. |
|
|
163
|
+
| `CONTEXTSTREAM_SPECULATIVE_DEBOUNCE_MS` | `3000` | Milliseconds to wait after a supported edit. `0` removes the wait. |
|
|
164
|
+
| `CONTEXTSTREAM_SPECULATIVE_HOURLY_CAP` | `30` | Local speculative credits per hour across repositories for the configured credential and API. `0` stops background execution. |
|
|
165
|
+
| `CONTEXTSTREAM_SPECULATIVE_REPO_HOURLY_CAP` | `15` | Local speculative credits per repository per hour. `0` stops background execution. |
|
|
166
|
+
| `CONTEXTSTREAM_CHECKOUT_SNAPSHOT` | Allowed when a local call needs a snapshot | `off` disables checkout snapshots for hosted checks, speculative checks and `:prepare`. |
|
|
167
|
+
| `CONTEXTSTREAM_CHECKOUT_SNAPSHOT_REPOS` | All repositories eligible | Limit snapshots to repositories whose origin URL or checkout folder name starts with a listed prefix. Use commas or spaces between prefixes. |
|
|
168
|
+
| `CONTEXTSTREAM_HOSTED_ENV` | On | `off` omits the streamed environment description and tool-version probes. |
|
|
169
|
+
| `CONTEXTSTREAM_HOOK_ENABLED` | On for installed editor hooks | `off` disables editor hook activity, including automatic preparation, speculative checks and editor-side gates. Git hooks have separate controls. |
|
|
170
|
+
| `CONTEXTSTREAM_SESSION_INIT_ENABLED` | On | `false` disables the session-start hook, including its `:prepare` trigger. |
|
|
171
|
+
| `CONTEXTSTREAM_POSTWRITE_ENABLED` | On | `false` disables the post-write indexing path and its `:prepare` trigger. Speculative scheduling happens before this switch is read. |
|
|
172
|
+
| `CONTEXTSTREAM_GIT_CAPTURE` | Follows the repository setting, then the global default | `off` stops Git event capture and skips managed hook installation. An already installed `pre-push` hook can still check receipts. |
|
|
173
|
+
| `CONTEXTSTREAM_GIT_CAPTURE_DEFAULT` | On | Sets the fallback for Git capture when the repository and `CONTEXTSTREAM_GIT_CAPTURE` leave it unset. |
|
|
174
|
+
| `CONTEXTSTREAM_CAPSULE_ENABLED` | On for regular sessions | `off` hides the capsule tool in those sessions, including Review Capsule creation. |
|
|
175
|
+
| `CONTEXTSTREAM_HTTP_LOCAL_FILES` | Off for HTTP connections | `allow` is a self-hosted gateway setting for access to the gateway's own filesystem. Use a local client to check your checkout. |
|
|
176
|
+
|
|
177
|
+
The hooks also read the usual connection settings. `CONTEXTSTREAM_API_KEY`,
|
|
178
|
+
`CONTEXTSTREAM_WORKSPACE_ID` and `CONTEXTSTREAM_PROJECT_ID` have no built-in
|
|
179
|
+
value. The hooks can read them from local configuration.
|
|
180
|
+
`CONTEXTSTREAM_API_URL` defaults to `https://api.contextstream.io` when local
|
|
181
|
+
configuration supplies no address.
|
|
182
|
+
|
|
183
|
+
[What remote checks and verification send](docs/data-handling.md#remote-checks-and-verification).
|
|
184
|
+
|
|
85
185
|
## Benchmarks
|
|
86
186
|
|
|
87
187
|
Each benchmark runs through the production API, is registered before its results
|
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.
|
|
4
|
+
"version": "1.0.97",
|
|
5
5
|
"description": "Verified npm launcher for the open-source ContextStream Rust MCP server",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
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": "The context platform for AI agents: code search, team decisions, and grounded project context.",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.97",
|
|
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.
|
|
23
|
+
"version": "1.0.97",
|
|
24
24
|
"transport": {
|
|
25
25
|
"type": "stdio"
|
|
26
26
|
},
|