@contextstream/mcp-server 0.3.3 → 0.3.4
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 +16 -0
- package/dist/index.js +35 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -54,6 +54,22 @@ Add ContextStream to your AI tool's MCP configuration (works with **Cursor**, **
|
|
|
54
54
|
|
|
55
55
|
Get your API key at [contextstream.io](https://contextstream.io)
|
|
56
56
|
|
|
57
|
+
### Codex (CLI) configuration
|
|
58
|
+
|
|
59
|
+
For the Codex CLI, add the MCP server to your `~/.codex/config.toml`:
|
|
60
|
+
|
|
61
|
+
```toml
|
|
62
|
+
[mcpServers.contextstream]
|
|
63
|
+
command = "npx"
|
|
64
|
+
args = ["-y", "@contextstream/mcp-server"]
|
|
65
|
+
|
|
66
|
+
[mcpServers.contextstream.env]
|
|
67
|
+
CONTEXTSTREAM_API_URL = "https://api.contextstream.io"
|
|
68
|
+
CONTEXTSTREAM_API_KEY = "your_api_key"
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
After saving the file, restart Codex. The ContextStream tools and auto-context will then be available in any trusted project that has a `.contextstream/config.json` (or a matching parent mapping in `~/.contextstream-mappings.json`).
|
|
72
|
+
|
|
57
73
|
## ✨ Auto-Context (v0.3.0+)
|
|
58
74
|
|
|
59
75
|
Context loads **automatically** on the first tool call of any conversation. No need to manually call `session_init` — your AI assistant gets workspace info, recent memory, and decisions immediately.
|
package/dist/index.js
CHANGED
|
@@ -6542,12 +6542,46 @@ var SessionManager = class {
|
|
|
6542
6542
|
};
|
|
6543
6543
|
|
|
6544
6544
|
// src/index.ts
|
|
6545
|
+
var VERSION = "0.3.4";
|
|
6546
|
+
function printHelp() {
|
|
6547
|
+
console.log(`ContextStream MCP Server (contextstream-mcp) v${VERSION}
|
|
6548
|
+
|
|
6549
|
+
Usage:
|
|
6550
|
+
npx -y @contextstream/mcp-server
|
|
6551
|
+
contextstream-mcp
|
|
6552
|
+
|
|
6553
|
+
Environment variables:
|
|
6554
|
+
CONTEXTSTREAM_API_URL Base API URL (e.g. https://api.contextstream.io)
|
|
6555
|
+
CONTEXTSTREAM_API_KEY API key for authentication (or use CONTEXTSTREAM_JWT)
|
|
6556
|
+
CONTEXTSTREAM_JWT JWT for authentication (alternative to API key)
|
|
6557
|
+
CONTEXTSTREAM_WORKSPACE_ID Optional default workspace ID
|
|
6558
|
+
CONTEXTSTREAM_PROJECT_ID Optional default project ID
|
|
6559
|
+
|
|
6560
|
+
Examples:
|
|
6561
|
+
CONTEXTSTREAM_API_URL="https://api.contextstream.io" \\
|
|
6562
|
+
CONTEXTSTREAM_API_KEY="your_api_key" \\
|
|
6563
|
+
npx -y @contextstream/mcp-server
|
|
6564
|
+
|
|
6565
|
+
Notes:
|
|
6566
|
+
- When used from an MCP client (e.g. Codex, Cursor, VS Code),
|
|
6567
|
+
set these env vars in the client's MCP server configuration.
|
|
6568
|
+
- The server communicates over stdio; logs are written to stderr.`);
|
|
6569
|
+
}
|
|
6545
6570
|
async function main() {
|
|
6571
|
+
const args = process.argv.slice(2);
|
|
6572
|
+
if (args.includes("--help") || args.includes("-h")) {
|
|
6573
|
+
printHelp();
|
|
6574
|
+
return;
|
|
6575
|
+
}
|
|
6576
|
+
if (args.includes("--version") || args.includes("-v")) {
|
|
6577
|
+
console.log(`contextstream-mcp v${VERSION}`);
|
|
6578
|
+
return;
|
|
6579
|
+
}
|
|
6546
6580
|
const config = loadConfig();
|
|
6547
6581
|
const client = new ContextStreamClient(config);
|
|
6548
6582
|
const server = new McpServer({
|
|
6549
6583
|
name: "contextstream-mcp",
|
|
6550
|
-
version:
|
|
6584
|
+
version: VERSION
|
|
6551
6585
|
});
|
|
6552
6586
|
const sessionManager = new SessionManager(server, client);
|
|
6553
6587
|
registerTools(server, client, sessionManager);
|
package/package.json
CHANGED