@contextstream/mcp-server 0.3.12 → 0.3.14

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 ContextStream
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # ContextStream MCP Server
2
2
 
3
3
  [![npm version](https://badge.fury.io/js/@contextstream%2Fmcp-server.svg)](https://www.npmjs.com/package/@contextstream/mcp-server)
4
+ [![GitHub](https://img.shields.io/github/license/contextstream/mcp-server)](https://github.com/contextstream/mcp-server)
4
5
 
5
6
  ## 🧠 Your AI's Permanent Brain — Across Every Tool, Every Conversation
6
7
 
@@ -364,6 +365,37 @@ Works with **all MCP clients** — no client-side changes required.
364
365
  - **Documentation:** [contextstream.io/docs](https://contextstream.io/docs)
365
366
  - **MCP Setup Guide:** [contextstream.io/docs/mcp](https://contextstream.io/docs/mcp)
366
367
  - **npm:** [@contextstream/mcp-server](https://www.npmjs.com/package/@contextstream/mcp-server)
368
+ - **GitHub:** [contextstream/mcp-server](https://github.com/contextstream/mcp-server)
369
+
370
+ ---
371
+
372
+ ## 🤝 Contributing
373
+
374
+ We welcome contributions! Here's how you can help:
375
+
376
+ 1. **Report bugs** — Open an issue at [GitHub Issues](https://github.com/contextstream/mcp-server/issues)
377
+ 2. **Request features** — Share your ideas in the issues
378
+ 3. **Submit PRs** — Fork the repo and submit pull requests
379
+
380
+ ### Development
381
+
382
+ ```bash
383
+ # Clone the repo
384
+ git clone https://github.com/contextstream/mcp-server.git
385
+ cd mcp-server
386
+
387
+ # Install dependencies
388
+ npm install
389
+
390
+ # Run in development mode
391
+ npm run dev
392
+
393
+ # Build for production
394
+ npm run build
395
+
396
+ # Type check
397
+ npm run typecheck
398
+ ```
367
399
 
368
400
  ---
369
401
 
package/dist/index.js CHANGED
@@ -3837,7 +3837,7 @@ ZodNaN.create = (params) => {
3837
3837
  ...processCreateParams(params)
3838
3838
  });
3839
3839
  };
3840
- var BRAND = Symbol("zod_brand");
3840
+ var BRAND = /* @__PURE__ */ Symbol("zod_brand");
3841
3841
  var ZodBranded = class extends ZodType {
3842
3842
  _parse(input) {
3843
3843
  const { ctx } = this._processInputParams(input);
@@ -4080,6 +4080,9 @@ function loadConfig() {
4080
4080
  return parsed.data;
4081
4081
  }
4082
4082
 
4083
+ // src/client.ts
4084
+ import { randomUUID } from "node:crypto";
4085
+
4083
4086
  // src/http.ts
4084
4087
  var HttpError = class extends Error {
4085
4088
  constructor(status, message, body) {
@@ -4880,7 +4883,7 @@ var ContextStreamClient = class {
4880
4883
  let projectId = params.project_id || this.config.defaultProjectId;
4881
4884
  let workspaceName;
4882
4885
  const context = {
4883
- session_id: params.session_id || crypto.randomUUID(),
4886
+ session_id: params.session_id || randomUUID(),
4884
4887
  initialized_at: (/* @__PURE__ */ new Date()).toISOString()
4885
4888
  };
4886
4889
  const rootPath = ideRoots.length > 0 ? ideRoots[0] : void 0;
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "@contextstream/mcp-server",
3
- "version": "0.3.12",
3
+ "version": "0.3.14",
4
4
  "description": "MCP server exposing ContextStream public API - code context, memory, search, and AI tools for developers",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
8
+ "files": [
9
+ "dist",
10
+ "README.md"
11
+ ],
8
12
  "bin": {
9
13
  "contextstream-mcp": "dist/index.js"
10
14
  },
@@ -35,5 +39,13 @@
35
39
  "code-context",
36
40
  "memory",
37
41
  "knowledge-graph"
38
- ]
42
+ ],
43
+ "repository": {
44
+ "type": "git",
45
+ "url": "https://github.com/contextstream/mcp-server.git"
46
+ },
47
+ "homepage": "https://github.com/contextstream/mcp-server#readme",
48
+ "bugs": {
49
+ "url": "https://github.com/contextstream/mcp-server/issues"
50
+ }
39
51
  }