devbcn-mcp-server 0.0.0-202510201341 → 0.0.0-202510220523
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 +36 -58
- package/package.json +2 -2
package/bun.lock
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
"": {
|
|
5
5
|
"name": "devbcn-mcp-server",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@modelcontextprotocol/sdk": "1.
|
|
7
|
+
"@modelcontextprotocol/sdk": "1.20.1",
|
|
8
8
|
"express": "5.1.0",
|
|
9
9
|
},
|
|
10
10
|
},
|
|
11
11
|
},
|
|
12
12
|
"packages": {
|
|
13
|
-
"@modelcontextprotocol/sdk": ["@modelcontextprotocol/sdk@1.
|
|
13
|
+
"@modelcontextprotocol/sdk": ["@modelcontextprotocol/sdk@1.20.1", "", { "dependencies": { "ajv": "^6.12.6", "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", "pkce-challenge": "^5.0.0", "raw-body": "^3.0.0", "zod": "^3.23.8", "zod-to-json-schema": "^3.24.1" } }, "sha512-j/P+yuxXfgxb+mW7OEoRCM3G47zCTDqUPivJo/VzpjbG8I9csTXtOprCf5FfOfHK4whOJny0aHuBEON+kS7CCA=="],
|
|
14
14
|
|
|
15
15
|
"accepts": ["accepts@2.0.0", "", { "dependencies": { "mime-types": "^3.0.0", "negotiator": "^1.0.0" } }, "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng=="],
|
|
16
16
|
|
package/dist/index.js
CHANGED
|
@@ -37074,12 +37074,7 @@ var NEVER = INVALID;
|
|
|
37074
37074
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
37075
37075
|
var LATEST_PROTOCOL_VERSION = "2025-06-18";
|
|
37076
37076
|
var DEFAULT_NEGOTIATED_PROTOCOL_VERSION = "2025-03-26";
|
|
37077
|
-
var SUPPORTED_PROTOCOL_VERSIONS = [
|
|
37078
|
-
LATEST_PROTOCOL_VERSION,
|
|
37079
|
-
"2025-03-26",
|
|
37080
|
-
"2024-11-05",
|
|
37081
|
-
"2024-10-07"
|
|
37082
|
-
];
|
|
37077
|
+
var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
37083
37078
|
var JSONRPC_VERSION = "2.0";
|
|
37084
37079
|
var ProgressTokenSchema = exports_external.union([exports_external.string(), exports_external.number().int()]);
|
|
37085
37080
|
var CursorSchema = exports_external.string();
|
|
@@ -37139,12 +37134,7 @@ var JSONRPCErrorSchema = exports_external.object({
|
|
|
37139
37134
|
})
|
|
37140
37135
|
}).strict();
|
|
37141
37136
|
var isJSONRPCError = (value) => JSONRPCErrorSchema.safeParse(value).success;
|
|
37142
|
-
var JSONRPCMessageSchema = exports_external.union([
|
|
37143
|
-
JSONRPCRequestSchema,
|
|
37144
|
-
JSONRPCNotificationSchema,
|
|
37145
|
-
JSONRPCResponseSchema,
|
|
37146
|
-
JSONRPCErrorSchema
|
|
37147
|
-
]);
|
|
37137
|
+
var JSONRPCMessageSchema = exports_external.union([JSONRPCRequestSchema, JSONRPCNotificationSchema, JSONRPCResponseSchema, JSONRPCErrorSchema]);
|
|
37148
37138
|
var EmptyResultSchema = ResultSchema.strict();
|
|
37149
37139
|
var CancelledNotificationSchema = NotificationSchema.extend({
|
|
37150
37140
|
method: exports_external.literal("notifications/cancelled"),
|
|
@@ -37156,7 +37146,10 @@ var CancelledNotificationSchema = NotificationSchema.extend({
|
|
|
37156
37146
|
var IconSchema = exports_external.object({
|
|
37157
37147
|
src: exports_external.string(),
|
|
37158
37148
|
mimeType: exports_external.optional(exports_external.string()),
|
|
37159
|
-
sizes: exports_external.optional(exports_external.string())
|
|
37149
|
+
sizes: exports_external.optional(exports_external.array(exports_external.string()))
|
|
37150
|
+
}).passthrough();
|
|
37151
|
+
var IconsSchema = exports_external.object({
|
|
37152
|
+
icons: exports_external.array(IconSchema).optional()
|
|
37160
37153
|
}).passthrough();
|
|
37161
37154
|
var BaseMetadataSchema = exports_external.object({
|
|
37162
37155
|
name: exports_external.string(),
|
|
@@ -37164,9 +37157,8 @@ var BaseMetadataSchema = exports_external.object({
|
|
|
37164
37157
|
}).passthrough();
|
|
37165
37158
|
var ImplementationSchema = BaseMetadataSchema.extend({
|
|
37166
37159
|
version: exports_external.string(),
|
|
37167
|
-
websiteUrl: exports_external.optional(exports_external.string())
|
|
37168
|
-
|
|
37169
|
-
});
|
|
37160
|
+
websiteUrl: exports_external.optional(exports_external.string())
|
|
37161
|
+
}).merge(IconsSchema);
|
|
37170
37162
|
var ClientCapabilitiesSchema = exports_external.object({
|
|
37171
37163
|
experimental: exports_external.optional(exports_external.object({}).passthrough()),
|
|
37172
37164
|
sampling: exports_external.optional(exports_external.object({}).passthrough()),
|
|
@@ -37253,15 +37245,14 @@ var ResourceSchema = BaseMetadataSchema.extend({
|
|
|
37253
37245
|
uri: exports_external.string(),
|
|
37254
37246
|
description: exports_external.optional(exports_external.string()),
|
|
37255
37247
|
mimeType: exports_external.optional(exports_external.string()),
|
|
37256
|
-
icons: exports_external.optional(exports_external.array(IconSchema)),
|
|
37257
37248
|
_meta: exports_external.optional(exports_external.object({}).passthrough())
|
|
37258
|
-
});
|
|
37249
|
+
}).merge(IconsSchema);
|
|
37259
37250
|
var ResourceTemplateSchema = BaseMetadataSchema.extend({
|
|
37260
37251
|
uriTemplate: exports_external.string(),
|
|
37261
37252
|
description: exports_external.optional(exports_external.string()),
|
|
37262
37253
|
mimeType: exports_external.optional(exports_external.string()),
|
|
37263
37254
|
_meta: exports_external.optional(exports_external.object({}).passthrough())
|
|
37264
|
-
});
|
|
37255
|
+
}).merge(IconsSchema);
|
|
37265
37256
|
var ListResourcesRequestSchema = PaginatedRequestSchema.extend({
|
|
37266
37257
|
method: exports_external.literal("resources/list")
|
|
37267
37258
|
});
|
|
@@ -37312,9 +37303,8 @@ var PromptArgumentSchema = exports_external.object({
|
|
|
37312
37303
|
var PromptSchema = BaseMetadataSchema.extend({
|
|
37313
37304
|
description: exports_external.optional(exports_external.string()),
|
|
37314
37305
|
arguments: exports_external.optional(exports_external.array(PromptArgumentSchema)),
|
|
37315
|
-
icons: exports_external.optional(exports_external.array(IconSchema)),
|
|
37316
37306
|
_meta: exports_external.optional(exports_external.object({}).passthrough())
|
|
37317
|
-
});
|
|
37307
|
+
}).merge(IconsSchema);
|
|
37318
37308
|
var ListPromptsRequestSchema = PaginatedRequestSchema.extend({
|
|
37319
37309
|
method: exports_external.literal("prompts/list")
|
|
37320
37310
|
});
|
|
@@ -37391,9 +37381,8 @@ var ToolSchema = BaseMetadataSchema.extend({
|
|
|
37391
37381
|
required: exports_external.optional(exports_external.array(exports_external.string()))
|
|
37392
37382
|
}).passthrough()),
|
|
37393
37383
|
annotations: exports_external.optional(ToolAnnotationsSchema),
|
|
37394
|
-
icons: exports_external.optional(exports_external.array(IconSchema)),
|
|
37395
37384
|
_meta: exports_external.optional(exports_external.object({}).passthrough())
|
|
37396
|
-
});
|
|
37385
|
+
}).merge(IconsSchema);
|
|
37397
37386
|
var ListToolsRequestSchema = PaginatedRequestSchema.extend({
|
|
37398
37387
|
method: exports_external.literal("tools/list")
|
|
37399
37388
|
});
|
|
@@ -37418,16 +37407,7 @@ var CallToolRequestSchema = RequestSchema.extend({
|
|
|
37418
37407
|
var ToolListChangedNotificationSchema = NotificationSchema.extend({
|
|
37419
37408
|
method: exports_external.literal("notifications/tools/list_changed")
|
|
37420
37409
|
});
|
|
37421
|
-
var LoggingLevelSchema = exports_external.enum([
|
|
37422
|
-
"debug",
|
|
37423
|
-
"info",
|
|
37424
|
-
"notice",
|
|
37425
|
-
"warning",
|
|
37426
|
-
"error",
|
|
37427
|
-
"critical",
|
|
37428
|
-
"alert",
|
|
37429
|
-
"emergency"
|
|
37430
|
-
]);
|
|
37410
|
+
var LoggingLevelSchema = exports_external.enum(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]);
|
|
37431
37411
|
var SetLevelRequestSchema = RequestSchema.extend({
|
|
37432
37412
|
method: exports_external.literal("logging/setLevel"),
|
|
37433
37413
|
params: BaseRequestParamsSchema.extend({
|
|
@@ -37472,11 +37452,7 @@ var CreateMessageResultSchema = ResultSchema.extend({
|
|
|
37472
37452
|
model: exports_external.string(),
|
|
37473
37453
|
stopReason: exports_external.optional(exports_external.enum(["endTurn", "stopSequence", "maxTokens"]).or(exports_external.string())),
|
|
37474
37454
|
role: exports_external.enum(["user", "assistant"]),
|
|
37475
|
-
content: exports_external.discriminatedUnion("type", [
|
|
37476
|
-
TextContentSchema,
|
|
37477
|
-
ImageContentSchema,
|
|
37478
|
-
AudioContentSchema
|
|
37479
|
-
])
|
|
37455
|
+
content: exports_external.discriminatedUnion("type", [TextContentSchema, ImageContentSchema, AudioContentSchema])
|
|
37480
37456
|
});
|
|
37481
37457
|
var BooleanSchemaSchema = exports_external.object({
|
|
37482
37458
|
type: exports_external.literal("boolean"),
|
|
@@ -37506,12 +37482,7 @@ var EnumSchemaSchema = exports_external.object({
|
|
|
37506
37482
|
enum: exports_external.array(exports_external.string()),
|
|
37507
37483
|
enumNames: exports_external.optional(exports_external.array(exports_external.string()))
|
|
37508
37484
|
}).passthrough();
|
|
37509
|
-
var PrimitiveSchemaDefinitionSchema = exports_external.union([
|
|
37510
|
-
BooleanSchemaSchema,
|
|
37511
|
-
StringSchemaSchema,
|
|
37512
|
-
NumberSchemaSchema,
|
|
37513
|
-
EnumSchemaSchema
|
|
37514
|
-
]);
|
|
37485
|
+
var PrimitiveSchemaDefinitionSchema = exports_external.union([BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema, EnumSchemaSchema]);
|
|
37515
37486
|
var ElicitRequestSchema = RequestSchema.extend({
|
|
37516
37487
|
method: exports_external.literal("elicitation/create"),
|
|
37517
37488
|
params: BaseRequestParamsSchema.extend({
|
|
@@ -37590,18 +37561,8 @@ var ClientNotificationSchema = exports_external.union([
|
|
|
37590
37561
|
InitializedNotificationSchema,
|
|
37591
37562
|
RootsListChangedNotificationSchema
|
|
37592
37563
|
]);
|
|
37593
|
-
var ClientResultSchema = exports_external.union([
|
|
37594
|
-
|
|
37595
|
-
CreateMessageResultSchema,
|
|
37596
|
-
ElicitResultSchema,
|
|
37597
|
-
ListRootsResultSchema
|
|
37598
|
-
]);
|
|
37599
|
-
var ServerRequestSchema = exports_external.union([
|
|
37600
|
-
PingRequestSchema,
|
|
37601
|
-
CreateMessageRequestSchema,
|
|
37602
|
-
ElicitRequestSchema,
|
|
37603
|
-
ListRootsRequestSchema
|
|
37604
|
-
]);
|
|
37564
|
+
var ClientResultSchema = exports_external.union([EmptyResultSchema, CreateMessageResultSchema, ElicitResultSchema, ListRootsResultSchema]);
|
|
37565
|
+
var ServerRequestSchema = exports_external.union([PingRequestSchema, CreateMessageRequestSchema, ElicitRequestSchema, ListRootsRequestSchema]);
|
|
37605
37566
|
var ServerNotificationSchema = exports_external.union([
|
|
37606
37567
|
CancelledNotificationSchema,
|
|
37607
37568
|
ProgressNotificationSchema,
|
|
@@ -37673,7 +37634,10 @@ class Protocol {
|
|
|
37673
37634
|
const totalElapsed = Date.now() - info.startTime;
|
|
37674
37635
|
if (info.maxTotalTimeout && totalElapsed >= info.maxTotalTimeout) {
|
|
37675
37636
|
this._timeoutInfo.delete(messageId);
|
|
37676
|
-
throw new McpError(ErrorCode.RequestTimeout, "Maximum total timeout exceeded", {
|
|
37637
|
+
throw new McpError(ErrorCode.RequestTimeout, "Maximum total timeout exceeded", {
|
|
37638
|
+
maxTotalTimeout: info.maxTotalTimeout,
|
|
37639
|
+
totalElapsed
|
|
37640
|
+
});
|
|
37677
37641
|
}
|
|
37678
37642
|
clearTimeout(info.timeoutId);
|
|
37679
37643
|
info.timeoutId = setTimeout(info.onTimeout, info.timeout);
|
|
@@ -39507,7 +39471,9 @@ class McpServer {
|
|
|
39507
39471
|
_meta: tool._meta
|
|
39508
39472
|
};
|
|
39509
39473
|
if (tool.outputSchema) {
|
|
39510
|
-
toolDefinition.outputSchema = zodToJsonSchema(tool.outputSchema, {
|
|
39474
|
+
toolDefinition.outputSchema = zodToJsonSchema(tool.outputSchema, {
|
|
39475
|
+
strictUnions: true
|
|
39476
|
+
});
|
|
39511
39477
|
}
|
|
39512
39478
|
return toolDefinition;
|
|
39513
39479
|
})
|
|
@@ -40246,6 +40212,10 @@ class StreamableHTTPServerTransport {
|
|
|
40246
40212
|
res.on("close", () => {
|
|
40247
40213
|
this._streamMapping.delete(this._standaloneSseStreamId);
|
|
40248
40214
|
});
|
|
40215
|
+
res.on("error", (error) => {
|
|
40216
|
+
var _a;
|
|
40217
|
+
(_a = this.onerror) === null || _a === undefined || _a.call(this, error);
|
|
40218
|
+
});
|
|
40249
40219
|
}
|
|
40250
40220
|
async replayEvents(lastEventId, res) {
|
|
40251
40221
|
var _a, _b;
|
|
@@ -40272,6 +40242,10 @@ class StreamableHTTPServerTransport {
|
|
|
40272
40242
|
}
|
|
40273
40243
|
}));
|
|
40274
40244
|
this._streamMapping.set(streamId, res);
|
|
40245
|
+
res.on("error", (error) => {
|
|
40246
|
+
var _a2;
|
|
40247
|
+
(_a2 = this.onerror) === null || _a2 === undefined || _a2.call(this, error);
|
|
40248
|
+
});
|
|
40275
40249
|
} catch (error) {
|
|
40276
40250
|
(_b = this.onerror) === null || _b === undefined || _b.call(this, error);
|
|
40277
40251
|
}
|
|
@@ -40412,6 +40386,10 @@ class StreamableHTTPServerTransport {
|
|
|
40412
40386
|
res.on("close", () => {
|
|
40413
40387
|
this._streamMapping.delete(streamId);
|
|
40414
40388
|
});
|
|
40389
|
+
res.on("error", (error) => {
|
|
40390
|
+
var _a2;
|
|
40391
|
+
(_a2 = this.onerror) === null || _a2 === undefined || _a2.call(this, error);
|
|
40392
|
+
});
|
|
40415
40393
|
for (const message of messages) {
|
|
40416
40394
|
(_d = this.onmessage) === null || _d === undefined || _d.call(this, message, { authInfo, requestInfo });
|
|
40417
40395
|
}
|
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-202510220523",
|
|
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.20.1",
|
|
18
18
|
"express": "5.1.0"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|