@socialneuron/mcp-server 1.3.0 → 1.3.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  All notable changes to `@socialneuron/mcp-server` will be documented in this file.
4
4
 
5
+ ## [1.3.2] - 2026-03-13
6
+
7
+ ### Fixed
8
+ - **TypeScript strict mode**: Added `@types/express`, fixed `AuthenticatedRequest` type to extend express `Request`, corrected `StreamableHTTPServerTransport` constructor usage
9
+ - **Optional dependency stubs**: Added ambient declarations for `playwright`, `@remotion/bundler`, `@remotion/renderer` (dynamically imported, not required at runtime)
10
+ - **Removed unused directive**: Cleaned up stale `@ts-expect-error` in REPL module
11
+ - **Release CI**: Typecheck now passes in GitHub Actions release workflow
12
+
13
+ ## [1.3.1] - 2026-03-13
14
+
15
+ ### Fixed
16
+ - **zod v4 compatibility**: Updated `zod` dependency from v3 to v4 to match `@modelcontextprotocol/sdk` peer requirement, fixing `ERR_PACKAGE_PATH_NOT_EXPORTED` crash on `npx` install
17
+ - **Test domain**: Fixed test fixtures using deprecated `socialneuron.ai` domain (now `socialneuron.com`)
18
+ - **CLI E2E timeout**: Increased envelope test timeout to avoid false failures
19
+
5
20
  ## [1.3.0] - 2026-03-13
6
21
 
7
22
  ### Added
package/dist/http.js CHANGED
@@ -6215,7 +6215,7 @@ init_supabase();
6215
6215
  import { z as z14 } from "zod";
6216
6216
 
6217
6217
  // src/lib/version.ts
6218
- var MCP_VERSION = "1.3.0";
6218
+ var MCP_VERSION = "1.3.2";
6219
6219
 
6220
6220
  // src/tools/usage.ts
6221
6221
  function asEnvelope10(data) {
@@ -8613,7 +8613,15 @@ app.post("/mcp", authenticateRequest, async (req, res) => {
8613
8613
  applyScopeEnforcement(server, () => getRequestScopes() ?? auth.scopes);
8614
8614
  registerAllTools(server, { skipScreenshots: true });
8615
8615
  const transport = new StreamableHTTPServerTransport({
8616
- sessionIdGenerator: () => randomUUID3()
8616
+ sessionIdGenerator: () => randomUUID3(),
8617
+ onsessioninitialized: (sessionId) => {
8618
+ sessions.set(sessionId, {
8619
+ transport,
8620
+ server,
8621
+ lastActivity: Date.now(),
8622
+ userId: auth.userId
8623
+ });
8624
+ }
8617
8625
  });
8618
8626
  transport.onclose = () => {
8619
8627
  if (transport.sessionId) {
@@ -8621,16 +8629,6 @@ app.post("/mcp", authenticateRequest, async (req, res) => {
8621
8629
  }
8622
8630
  };
8623
8631
  await server.connect(transport);
8624
- const originalOnSessionInit = transport.onsessioninitialized;
8625
- transport.onsessioninitialized = async (sessionId) => {
8626
- if (originalOnSessionInit) await originalOnSessionInit(sessionId);
8627
- sessions.set(sessionId, {
8628
- transport,
8629
- server,
8630
- lastActivity: Date.now(),
8631
- userId: auth.userId
8632
- });
8633
- };
8634
8632
  await requestContext.run(
8635
8633
  { userId: auth.userId, scopes: auth.scopes, creditsUsed: 0, assetsGenerated: 0 },
8636
8634
  () => transport.handleRequest(req, res, req.body)
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var MCP_VERSION;
14
14
  var init_version = __esm({
15
15
  "src/lib/version.ts"() {
16
16
  "use strict";
17
- MCP_VERSION = "1.3.0";
17
+ MCP_VERSION = "1.3.2";
18
18
  }
19
19
  });
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socialneuron/mcp-server",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "MCP server for Social Neuron - AI content creation platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -66,9 +66,10 @@
66
66
  "jose": "^6.2.1",
67
67
  "open": "10.0.0",
68
68
  "posthog-node": "^5.28.0",
69
- "zod": "3.24.0"
69
+ "zod": "^4.0.0"
70
70
  },
71
71
  "devDependencies": {
72
+ "@types/express": "^5.0.6",
72
73
  "@types/node": "^25.3.5",
73
74
  "esbuild": "^0.27.3",
74
75
  "typescript": "^5.9.3",