You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you also want the optional HTTP server binary, build it explicitly with `cargo build --release --bin cortex-scout`.
103
103
104
-
##MCP Integration (VS Code / Cursor / Claude Desktop)
104
+
Local MCP smoke test:
105
105
106
-
Add a server entry to your MCP config.
106
+
```bash
107
+
python3 publish/ci/smoke_mcp.py
108
+
```
107
109
110
+
This runs a newline-delimited JSON-RPC stdio session against the local `cortex-scout-mcp` binary and exercises the main public tools with safe example inputs.
111
+
112
+
A GitHub Actions workflow (`.github/workflows/ci.yml`) invokes the same validation, Rust test suite, and the `smoke_mcp.py` smoke test on every push/PR. It replaces the older HTTP-mode smoke script (`publish/ci/smoke.py`), which has been removed as obsolete.
108
113
**VS Code** (`mcp.json` — global, or `settings.json` under `mcp.servers`):
109
114
110
115
```jsonc
@@ -121,16 +126,15 @@ Add a server entry to your MCP config.
Default behavior is direct/no-proxy. Add `IP_LIST_PATH` and `PROXY_SOURCE_PATH` only if you want proxy tools available. If you want `proxy_control` available without routing normal traffic through proxies, point `IP_LIST_PATH` at an empty `ip.txt` file and let agents populate it on demand.
137
+
134
138
> **Important:** Always use `RUST_LOG=warn`, not `info`. At `info` level, the server emits hundreds of log lines per request to stderr, which can confuse MCP clients that monitor stderr.
135
139
136
140
> **Windows:** Windows has no `env` command. Use the `command`+`env` object format instead — see [docs/IDE_SETUP.md](docs/IDE_SETUP.md).
@@ -149,15 +153,12 @@ Add a server entry to your MCP config.
@@ -222,8 +223,8 @@ Create `cortex-scout.json` in the same directory as the binary (or repository ro
222
223
223
224
| Variable | Default | Description |
224
225
|----------|---------|-------------|
225
-
|`IP_LIST_PATH`| — |Path to `ip.txt` (one proxy per line: `http://`, `socks5://`) |
226
-
|`PROXY_SOURCE_PATH`| — |Path to `proxy_source.json` (used by `proxy_control grab`) |
226
+
|`IP_LIST_PATH`| — |Optional path to `ip.txt` (one proxy per line: `http://`, `socks5://`). Leave unset to disable proxy support entirely, or point at an empty file to keep proxy tools available but inactive by default|
227
+
|`PROXY_SOURCE_PATH`| — |Optional path to `proxy_source.json` (used by `proxy_control grab`) |
227
228
228
229
### Semantic Memory (LanceDB)
229
230
@@ -309,7 +310,7 @@ Prevention checklist:
309
310
Check these before anything else:
310
311
311
312
1. Use `RUST_LOG=warn`, not `info`.
312
-
2. On macOS/Linux `env`-style configs, include `"--"`before the binary path.
313
+
2. On macOS/Linux `env`-style configs, pass the binary path directly after the env assignments. Do not insert `"--"`in `mcp.json` args.
313
314
3. On Windows, do not use `env`; use `command` plus an `env` object.
314
315
4. Make sure the binary path points to a current build, not an old pre-fix binary.
Default behavior is direct/no-proxy. Add `IP_LIST_PATH` and `PROXY_SOURCE_PATH` only if you want proxy support available. For opt-in proxy usage, keep `ip.txt` empty and let the agent call `proxy_control grab` before retrying with `use_proxy: true`.
69
+
71
70
### Windows
72
71
73
72
Windows has no `env` command. Use the `command` + `env` object format:
@@ -85,9 +84,7 @@ Windows has no `env` command. Use the `command` + `env` object format:
@@ -239,6 +224,6 @@ These require an `OPENAI_API_KEY` (or compatible endpoint) in the environment.
239
224
|---------|-----|
240
225
| "no tools found" | Check binary path is correct and executable (`chmod +x`) |
241
226
| Tools time out immediately | Ensure `RUST_LOG=warn` — not `info` or `debug` |
242
-
| Proxy tools fail | Confirm `ip.txt` and `proxy_source.json` exist and path vars are set |
227
+
| Proxy tools fail | Proxy support is optional. If you want it, set `IP_LIST_PATH`/`PROXY_SOURCE_PATH`; keep `ip.txt` empty by default and populate it only when needed |
243
228
| `hitl_web_fetch` not available | Binary must be built with `--all-features` |
244
229
| Config not picked up | Fully restart the client app after editing the JSON/YAML |
Default behavior is direct/no-proxy. Add `IP_LIST_PATH` and `PROXY_SOURCE_PATH` only if you want proxy support available. For an opt-in proxy setup, keep `ip.txt` empty and let `proxy_control grab` populate it only when an agent decides a retry should use proxies.
67
+
69
68
### Windows
70
69
71
70
Windows has no `env` command. Pass env vars as an object instead:
@@ -83,9 +82,7 @@ Windows has no `env` command. Pass env vars as an object instead:
@@ -126,4 +123,4 @@ After editing any MCP config, **restart VS Code** (Cmd+Q / Alt+F4) to reload the
126
123
| Tools time out | Set `RUST_LOG=warn` (not `info` or `debug`) |
127
124
|`hitl_web_fetch` missing | Rebuild with `--all-features`|
128
125
| Config not picked up | Fully restart VS Code after editing mcp.json |
129
-
| Proxy tools fail |Confirm `ip.txt` and `proxy_source.json` exist and paths are set|
126
+
| Proxy tools fail |Proxy support is optional. If you want it, set `IP_LIST_PATH`/`PROXY_SOURCE_PATH`; keep `ip.txt` empty by default and populate it only when needed|
0 commit comments