@elsium-ai/mcp 0.2.3 → 0.3.0
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/dist/index.js +7 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -143,6 +143,11 @@ function createLogger(options = {}) {
|
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
+
// ../core/src/schema.ts
|
|
147
|
+
var log = createLogger();
|
|
148
|
+
// ../core/src/registry.ts
|
|
149
|
+
var log2 = createLogger();
|
|
150
|
+
var BLOCKED_KEYS = new Set(["__proto__", "constructor", "prototype"]);
|
|
146
151
|
// src/client.ts
|
|
147
152
|
function createMCPClient(config) {
|
|
148
153
|
let process2 = null;
|
|
@@ -353,7 +358,7 @@ function createMCPClient(config) {
|
|
|
353
358
|
};
|
|
354
359
|
}
|
|
355
360
|
// src/server.ts
|
|
356
|
-
var
|
|
361
|
+
var log3 = createLogger();
|
|
357
362
|
function createMCPServer(config) {
|
|
358
363
|
let running = false;
|
|
359
364
|
const toolMap = new Map(config.tools.map((t) => [t.name, t]));
|
|
@@ -488,7 +493,7 @@ function createMCPServer(config) {
|
|
|
488
493
|
pendingChunks.shift();
|
|
489
494
|
buffer += chunk;
|
|
490
495
|
if (buffer.length > MAX_BUFFER_SIZE) {
|
|
491
|
-
|
|
496
|
+
log3.error("MCP server: buffer size limit exceeded, resetting");
|
|
492
497
|
buffer = "";
|
|
493
498
|
continue;
|
|
494
499
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elsium-ai/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Model Context Protocol (MCP) support for ElsiumAI — bidirectional bridge",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Eric Utrera <ebutrera9103@gmail.com>",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"dev": "bun --watch src/index.ts"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@elsium-ai/core": "^0.
|
|
30
|
-
"@elsium-ai/tools": "^0.
|
|
29
|
+
"@elsium-ai/core": "^0.3.0",
|
|
30
|
+
"@elsium-ai/tools": "^0.3.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"typescript": "^5.7.0"
|