@contextstream/mcp-server 0.4.8 → 0.4.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 (2) hide show
  1. package/dist/index.js +22 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -15222,6 +15222,7 @@ async function isEditorInstalled(editor) {
15222
15222
  return false;
15223
15223
  }
15224
15224
  }
15225
+ var IS_WINDOWS = process.platform === "win32";
15225
15226
  function buildContextStreamMcpServer(params) {
15226
15227
  const env = {
15227
15228
  CONTEXTSTREAM_API_URL: params.apiUrl,
@@ -15230,6 +15231,13 @@ function buildContextStreamMcpServer(params) {
15230
15231
  if (params.toolset === "router") {
15231
15232
  env.CONTEXTSTREAM_PROGRESSIVE_MODE = "true";
15232
15233
  }
15234
+ if (IS_WINDOWS) {
15235
+ return {
15236
+ command: "cmd",
15237
+ args: ["/c", "npx", "-y", "@contextstream/mcp-server"],
15238
+ env
15239
+ };
15240
+ }
15233
15241
  return {
15234
15242
  command: "npx",
15235
15243
  args: ["-y", "@contextstream/mcp-server"],
@@ -15244,6 +15252,14 @@ function buildContextStreamVsCodeServer(params) {
15244
15252
  if (params.toolset === "router") {
15245
15253
  env.CONTEXTSTREAM_PROGRESSIVE_MODE = "true";
15246
15254
  }
15255
+ if (IS_WINDOWS) {
15256
+ return {
15257
+ type: "stdio",
15258
+ command: "cmd",
15259
+ args: ["/c", "npx", "-y", "@contextstream/mcp-server"],
15260
+ env
15261
+ };
15262
+ }
15247
15263
  return {
15248
15264
  type: "stdio",
15249
15265
  command: "npx",
@@ -15326,13 +15342,16 @@ async function upsertCodexTomlConfig(filePath, params) {
15326
15342
  const envMarker = "[mcp_servers.contextstream.env]";
15327
15343
  const toolsetLine = params.toolset === "router" ? `CONTEXTSTREAM_PROGRESSIVE_MODE = "true"
15328
15344
  ` : "";
15345
+ const commandLine = IS_WINDOWS ? `command = "cmd"
15346
+ args = ["/c", "npx", "-y", "@contextstream/mcp-server"]
15347
+ ` : `command = "npx"
15348
+ args = ["-y", "@contextstream/mcp-server"]
15349
+ `;
15329
15350
  const block = `
15330
15351
 
15331
15352
  # ContextStream MCP server
15332
15353
  [mcp_servers.contextstream]
15333
- command = "npx"
15334
- args = ["-y", "@contextstream/mcp-server"]
15335
-
15354
+ ` + commandLine + `
15336
15355
  [mcp_servers.contextstream.env]
15337
15356
  CONTEXTSTREAM_API_URL = "${params.apiUrl}"
15338
15357
  CONTEXTSTREAM_API_KEY = "${params.apiKey}"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contextstream/mcp-server",
3
3
  "mcpName": "io.github.contextstreamio/mcp-server",
4
- "version": "0.4.8",
4
+ "version": "0.4.9",
5
5
  "description": "ContextStream MCP server - v0.4.x with consolidated domain tools (~11 tools, ~75% token reduction). Code context, memory, search, and AI tools.",
6
6
  "type": "module",
7
7
  "license": "MIT",