@socialneuron/mcp-server 1.3.1 → 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 +8 -0
- package/dist/http.js +10 -12
- package/dist/index.js +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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
|
+
|
|
5
13
|
## [1.3.1] - 2026-03-13
|
|
6
14
|
|
|
7
15
|
### Fixed
|
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.
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socialneuron/mcp-server",
|
|
3
|
-
"version": "1.3.
|
|
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",
|
|
@@ -69,6 +69,7 @@
|
|
|
69
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",
|