devbcn-mcp-server 0.0.0-202512051145 → 0.0.0-202512051204
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/bun.lock +2 -2
- package/dist/index.js +11 -6
- package/package.json +2 -2
package/bun.lock
CHANGED
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
"": {
|
|
6
6
|
"name": "devbcn-mcp-server",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@modelcontextprotocol/sdk": "1.24.
|
|
8
|
+
"@modelcontextprotocol/sdk": "1.24.3",
|
|
9
9
|
"express": "5.2.1",
|
|
10
10
|
},
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
13
|
"packages": {
|
|
14
|
-
"@modelcontextprotocol/sdk": ["@modelcontextprotocol/sdk@1.24.
|
|
14
|
+
"@modelcontextprotocol/sdk": ["@modelcontextprotocol/sdk@1.24.3", "", { "dependencies": { "ajv": "^8.17.1", "ajv-formats": "^3.0.1", "content-type": "^1.0.5", "cors": "^2.8.5", "cross-spawn": "^7.0.5", "eventsource": "^3.0.2", "eventsource-parser": "^3.0.0", "express": "^5.0.1", "express-rate-limit": "^7.5.0", "jose": "^6.1.1", "pkce-challenge": "^5.0.0", "raw-body": "^3.0.0", "zod": "^3.25 || ^4.0", "zod-to-json-schema": "^3.25.0" }, "peerDependencies": { "@cfworker/json-schema": "^4.1.1" }, "optionalPeers": ["@cfworker/json-schema"] }, "sha512-YgSHW29fuzKKAHTGe9zjNoo+yF8KaQPzDC2W9Pv41E7/57IfY+AMGJ/aDFlgTLcVVELoggKE4syABCE75u3NCw=="],
|
|
15
15
|
|
|
16
16
|
"accepts": ["accepts@2.0.0", "", { "dependencies": { "mime-types": "^3.0.0", "negotiator": "^1.0.0" } }, "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng=="],
|
|
17
17
|
|
package/dist/index.js
CHANGED
|
@@ -50608,10 +50608,13 @@ class StreamableHTTPServerTransport {
|
|
|
50608
50608
|
await this.handleUnsupportedRequest(res);
|
|
50609
50609
|
}
|
|
50610
50610
|
}
|
|
50611
|
-
async _maybeWritePrimingEvent(res, streamId) {
|
|
50611
|
+
async _maybeWritePrimingEvent(res, streamId, protocolVersion) {
|
|
50612
50612
|
if (!this._eventStore) {
|
|
50613
50613
|
return;
|
|
50614
50614
|
}
|
|
50615
|
+
if (protocolVersion < "2025-11-25") {
|
|
50616
|
+
return;
|
|
50617
|
+
}
|
|
50615
50618
|
const primingEventId = await this._eventStore.storeEvent(streamId, {});
|
|
50616
50619
|
let primingEvent = `id: ${primingEventId}
|
|
50617
50620
|
data:
|
|
@@ -50768,7 +50771,7 @@ data:
|
|
|
50768
50771
|
}));
|
|
50769
50772
|
}
|
|
50770
50773
|
async handlePostRequest(req, res, parsedBody) {
|
|
50771
|
-
var _a2, _b, _c, _d, _e;
|
|
50774
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
50772
50775
|
try {
|
|
50773
50776
|
const acceptHeader = req.headers.accept;
|
|
50774
50777
|
if (!(acceptHeader === null || acceptHeader === undefined ? undefined : acceptHeader.includes("application/json")) || !acceptHeader.includes("text/event-stream")) {
|
|
@@ -50859,6 +50862,8 @@ data:
|
|
|
50859
50862
|
}
|
|
50860
50863
|
} else if (hasRequests) {
|
|
50861
50864
|
const streamId = randomUUID();
|
|
50865
|
+
const initRequest = messages.find((m) => isInitializeRequest(m));
|
|
50866
|
+
const clientProtocolVersion = initRequest ? initRequest.params.protocolVersion : (_d = req.headers["mcp-protocol-version"]) !== null && _d !== undefined ? _d : DEFAULT_NEGOTIATED_PROTOCOL_VERSION;
|
|
50862
50867
|
if (!this._enableJsonResponse) {
|
|
50863
50868
|
const headers = {
|
|
50864
50869
|
"Content-Type": "text/event-stream",
|
|
@@ -50869,7 +50874,7 @@ data:
|
|
|
50869
50874
|
headers["mcp-session-id"] = this.sessionId;
|
|
50870
50875
|
}
|
|
50871
50876
|
res.writeHead(200, headers);
|
|
50872
|
-
await this._maybeWritePrimingEvent(res, streamId);
|
|
50877
|
+
await this._maybeWritePrimingEvent(res, streamId, clientProtocolVersion);
|
|
50873
50878
|
}
|
|
50874
50879
|
for (const message of messages) {
|
|
50875
50880
|
if (isJSONRPCRequest(message)) {
|
|
@@ -50887,7 +50892,7 @@ data:
|
|
|
50887
50892
|
for (const message of messages) {
|
|
50888
50893
|
let closeSSEStream;
|
|
50889
50894
|
let closeStandaloneSSEStream;
|
|
50890
|
-
if (isJSONRPCRequest(message) && this._eventStore) {
|
|
50895
|
+
if (isJSONRPCRequest(message) && this._eventStore && clientProtocolVersion >= "2025-11-25") {
|
|
50891
50896
|
closeSSEStream = () => {
|
|
50892
50897
|
this.closeSSEStream(message.id);
|
|
50893
50898
|
};
|
|
@@ -50895,7 +50900,7 @@ data:
|
|
|
50895
50900
|
this.closeStandaloneSSEStream();
|
|
50896
50901
|
};
|
|
50897
50902
|
}
|
|
50898
|
-
(
|
|
50903
|
+
(_e = this.onmessage) === null || _e === undefined || _e.call(this, message, { authInfo, requestInfo, closeSSEStream, closeStandaloneSSEStream });
|
|
50899
50904
|
}
|
|
50900
50905
|
}
|
|
50901
50906
|
} catch (error46) {
|
|
@@ -50908,7 +50913,7 @@ data:
|
|
|
50908
50913
|
},
|
|
50909
50914
|
id: null
|
|
50910
50915
|
}));
|
|
50911
|
-
(
|
|
50916
|
+
(_f = this.onerror) === null || _f === undefined || _f.call(this, error46);
|
|
50912
50917
|
}
|
|
50913
50918
|
}
|
|
50914
50919
|
async handleDeleteRequest(req, res) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "devbcn-mcp-server",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-202512051204",
|
|
4
4
|
"homepage": "https://github.com/marcnuri-demo/blog-tutorials",
|
|
5
5
|
"licenese": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"watch": "bun run --watch src/index.js"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@modelcontextprotocol/sdk": "1.24.
|
|
17
|
+
"@modelcontextprotocol/sdk": "1.24.3",
|
|
18
18
|
"express": "5.2.1"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|