@contextstream/mcp-server 0.4.28 → 0.4.29

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.
@@ -4153,7 +4153,7 @@ async function startMcpServer() {
4153
4153
  pendingRequests.delete(response.id);
4154
4154
  pending.resolve(response);
4155
4155
  }
4156
- } catch (e) {
4156
+ } catch {
4157
4157
  }
4158
4158
  });
4159
4159
  mcpProcess.on("error", (err) => {
@@ -4211,10 +4211,12 @@ async function initializeMcp() {
4211
4211
  throw new Error(`MCP initialization failed: ${response.error.message}`);
4212
4212
  }
4213
4213
  if (mcpProcess?.stdin) {
4214
- mcpProcess.stdin.write(JSON.stringify({
4215
- jsonrpc: "2.0",
4216
- method: "notifications/initialized"
4217
- }) + "\n");
4214
+ mcpProcess.stdin.write(
4215
+ JSON.stringify({
4216
+ jsonrpc: "2.0",
4217
+ method: "notifications/initialized"
4218
+ }) + "\n"
4219
+ );
4218
4220
  }
4219
4221
  initialized = true;
4220
4222
  console.log("[MCP Test Server] MCP connection initialized");
@@ -4251,7 +4253,7 @@ async function parseBody(req) {
4251
4253
  req.on("end", () => {
4252
4254
  try {
4253
4255
  resolve(body ? JSON.parse(body) : {});
4254
- } catch (e) {
4256
+ } catch {
4255
4257
  reject(new Error("Invalid JSON"));
4256
4258
  }
4257
4259
  });
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.28",
4
+ "version": "0.4.29",
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",
@@ -19,17 +19,30 @@
19
19
  "start": "node dist/index.js",
20
20
  "test-server": "tsx src/test-server.ts",
21
21
  "test-server:start": "node dist/test-server.js",
22
- "typecheck": "tsc --noEmit"
22
+ "typecheck": "tsc --noEmit",
23
+ "test": "vitest run",
24
+ "test:watch": "vitest",
25
+ "lint": "eslint src/",
26
+ "lint:fix": "eslint src/ --fix",
27
+ "format": "prettier --write src/",
28
+ "format:check": "prettier --check src/"
23
29
  },
24
30
  "dependencies": {
25
31
  "@modelcontextprotocol/sdk": "^1.25.1",
26
32
  "zod": "^3.23.8"
27
33
  },
28
34
  "devDependencies": {
35
+ "@eslint/js": "^9.39.2",
29
36
  "@types/node": "^20.10.0",
37
+ "@typescript-eslint/eslint-plugin": "^8.52.0",
38
+ "@typescript-eslint/parser": "^8.52.0",
30
39
  "esbuild": "^0.27.0",
40
+ "eslint": "^9.39.2",
41
+ "prettier": "^3.7.4",
31
42
  "tsx": "^4.15.4",
32
- "typescript": "^5.6.3"
43
+ "typescript": "^5.6.3",
44
+ "typescript-eslint": "^8.52.0",
45
+ "vitest": "^4.0.16"
33
46
  },
34
47
  "engines": {
35
48
  "node": ">=18"