devbcn-mcp-server 0.0.0-202508110530 → 0.0.0-202508110531
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 +20 -12
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -33649,8 +33649,16 @@ var ResourceContentsSchema = exports_external.object({
|
|
|
33649
33649
|
var TextResourceContentsSchema = ResourceContentsSchema.extend({
|
|
33650
33650
|
text: exports_external.string()
|
|
33651
33651
|
});
|
|
33652
|
+
var Base64Schema = exports_external.string().refine((val) => {
|
|
33653
|
+
try {
|
|
33654
|
+
atob(val);
|
|
33655
|
+
return true;
|
|
33656
|
+
} catch (_a) {
|
|
33657
|
+
return false;
|
|
33658
|
+
}
|
|
33659
|
+
}, { message: "Invalid Base64 string" });
|
|
33652
33660
|
var BlobResourceContentsSchema = ResourceContentsSchema.extend({
|
|
33653
|
-
blob:
|
|
33661
|
+
blob: Base64Schema
|
|
33654
33662
|
});
|
|
33655
33663
|
var ResourceSchema = BaseMetadataSchema.extend({
|
|
33656
33664
|
uri: exports_external.string(),
|
|
@@ -33736,13 +33744,13 @@ var TextContentSchema = exports_external.object({
|
|
|
33736
33744
|
}).passthrough();
|
|
33737
33745
|
var ImageContentSchema = exports_external.object({
|
|
33738
33746
|
type: exports_external.literal("image"),
|
|
33739
|
-
data:
|
|
33747
|
+
data: Base64Schema,
|
|
33740
33748
|
mimeType: exports_external.string(),
|
|
33741
33749
|
_meta: exports_external.optional(exports_external.object({}).passthrough())
|
|
33742
33750
|
}).passthrough();
|
|
33743
33751
|
var AudioContentSchema = exports_external.object({
|
|
33744
33752
|
type: exports_external.literal("audio"),
|
|
33745
|
-
data:
|
|
33753
|
+
data: Base64Schema,
|
|
33746
33754
|
mimeType: exports_external.string(),
|
|
33747
33755
|
_meta: exports_external.optional(exports_external.object({}).passthrough())
|
|
33748
33756
|
}).passthrough();
|
|
@@ -34140,10 +34148,11 @@ class Protocol {
|
|
|
34140
34148
|
Promise.resolve().then(() => handler(notification)).catch((error) => this._onerror(new Error(`Uncaught error in notification handler: ${error}`)));
|
|
34141
34149
|
}
|
|
34142
34150
|
_onrequest(request, extra) {
|
|
34143
|
-
var _a, _b
|
|
34151
|
+
var _a, _b;
|
|
34144
34152
|
const handler = (_a = this._requestHandlers.get(request.method)) !== null && _a !== undefined ? _a : this.fallbackRequestHandler;
|
|
34153
|
+
const capturedTransport = this._transport;
|
|
34145
34154
|
if (handler === undefined) {
|
|
34146
|
-
|
|
34155
|
+
capturedTransport === null || capturedTransport === undefined || capturedTransport.send({
|
|
34147
34156
|
jsonrpc: "2.0",
|
|
34148
34157
|
id: request.id,
|
|
34149
34158
|
error: {
|
|
@@ -34157,8 +34166,8 @@ class Protocol {
|
|
|
34157
34166
|
this._requestHandlerAbortControllers.set(request.id, abortController);
|
|
34158
34167
|
const fullExtra = {
|
|
34159
34168
|
signal: abortController.signal,
|
|
34160
|
-
sessionId:
|
|
34161
|
-
_meta: (
|
|
34169
|
+
sessionId: capturedTransport === null || capturedTransport === undefined ? undefined : capturedTransport.sessionId,
|
|
34170
|
+
_meta: (_b = request.params) === null || _b === undefined ? undefined : _b._meta,
|
|
34162
34171
|
sendNotification: (notification) => this.notification(notification, { relatedRequestId: request.id }),
|
|
34163
34172
|
sendRequest: (r, resultSchema, options) => this.request(r, resultSchema, { ...options, relatedRequestId: request.id }),
|
|
34164
34173
|
authInfo: extra === null || extra === undefined ? undefined : extra.authInfo,
|
|
@@ -34166,26 +34175,25 @@ class Protocol {
|
|
|
34166
34175
|
requestInfo: extra === null || extra === undefined ? undefined : extra.requestInfo
|
|
34167
34176
|
};
|
|
34168
34177
|
Promise.resolve().then(() => handler(request, fullExtra)).then((result) => {
|
|
34169
|
-
var _a2;
|
|
34170
34178
|
if (abortController.signal.aborted) {
|
|
34171
34179
|
return;
|
|
34172
34180
|
}
|
|
34173
|
-
return
|
|
34181
|
+
return capturedTransport === null || capturedTransport === undefined ? undefined : capturedTransport.send({
|
|
34174
34182
|
result,
|
|
34175
34183
|
jsonrpc: "2.0",
|
|
34176
34184
|
id: request.id
|
|
34177
34185
|
});
|
|
34178
34186
|
}, (error) => {
|
|
34179
|
-
var _a2
|
|
34187
|
+
var _a2;
|
|
34180
34188
|
if (abortController.signal.aborted) {
|
|
34181
34189
|
return;
|
|
34182
34190
|
}
|
|
34183
|
-
return
|
|
34191
|
+
return capturedTransport === null || capturedTransport === undefined ? undefined : capturedTransport.send({
|
|
34184
34192
|
jsonrpc: "2.0",
|
|
34185
34193
|
id: request.id,
|
|
34186
34194
|
error: {
|
|
34187
34195
|
code: Number.isSafeInteger(error["code"]) ? error["code"] : ErrorCode.InternalError,
|
|
34188
|
-
message: (
|
|
34196
|
+
message: (_a2 = error.message) !== null && _a2 !== undefined ? _a2 : "Internal error"
|
|
34189
34197
|
}
|
|
34190
34198
|
});
|
|
34191
34199
|
}).catch((error) => this._onerror(new Error(`Failed to send response: ${error}`))).finally(() => {
|
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-202508110531",
|
|
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.
|
|
17
|
+
"@modelcontextprotocol/sdk": "1.17.2",
|
|
18
18
|
"express": "5.1.0"
|
|
19
19
|
}
|
|
20
20
|
}
|