@frontmcp/protocol 1.10.9-rc.1 → 1.10.9-rc.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/browser-mcp-server.js +1 -30
- package/browser-mcp-streamable-http.js +1 -41
- package/browser-server-types.js +1 -41
- package/browser-stdio-client.js +1 -34
- package/browser-stdio-server.js +1 -34
- package/client.js +1 -0
- package/esm/browser-mcp-server.mjs +1 -5
- package/esm/browser-mcp-streamable-http.mjs +1 -15
- package/esm/browser-server-types.mjs +1 -15
- package/esm/browser-stdio-client.mjs +1 -9
- package/esm/browser-stdio-server.mjs +1 -9
- package/esm/client.mjs +1 -0
- package/esm/index.mjs +1 -139
- package/esm/lazy-client.mjs +4 -0
- package/esm/lazy-mcp-streamable-http.mjs +4 -0
- package/esm/node-mcp-server.mjs +1 -5
- package/esm/node-mcp-streamable-http.mjs +1 -9
- package/esm/node-server-types.mjs +1 -6
- package/esm/node-stdio-client.mjs +1 -5
- package/esm/node-stdio-server.mjs +1 -5
- package/index.d.ts +1 -1
- package/index.js +1 -139
- package/lazy-client.d.ts +1 -0
- package/lazy-client.js +1 -0
- package/lazy-mcp-streamable-http.d.ts +1 -0
- package/lazy-mcp-streamable-http.js +1 -0
- package/node-mcp-server.js +1 -30
- package/node-mcp-streamable-http.js +1 -33
- package/node-server-types.js +1 -32
- package/node-stdio-client.js +1 -30
- package/node-stdio-server.js +1 -30
- package/package.json +14 -1
package/browser-mcp-server.js
CHANGED
|
@@ -1,30 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// libs/protocol/src/browser-mcp-server.ts
|
|
21
|
-
var browser_mcp_server_exports = {};
|
|
22
|
-
__export(browser_mcp_server_exports, {
|
|
23
|
-
Server: () => import_server.Server
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(browser_mcp_server_exports);
|
|
26
|
-
var import_server = require("@modelcontextprotocol/sdk/server/index.js");
|
|
27
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
28
|
-
0 && (module.exports = {
|
|
29
|
-
Server
|
|
30
|
-
});
|
|
1
|
+
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var browser_mcp_server_exports={};__export(browser_mcp_server_exports,{Server:()=>import_server.Server});module.exports=__toCommonJS(browser_mcp_server_exports);var import_server=require("@modelcontextprotocol/sdk/server/index.js");0&&(module.exports={Server});
|
|
@@ -1,41 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// libs/protocol/src/browser-mcp-streamable-http.ts
|
|
21
|
-
var browser_mcp_streamable_http_exports = {};
|
|
22
|
-
__export(browser_mcp_streamable_http_exports, {
|
|
23
|
-
StreamableHTTPServerTransport: () => StreamableHTTPServerTransport,
|
|
24
|
-
WebStandardStreamableHTTPServerTransport: () => WebStandardStreamableHTTPServerTransport
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(browser_mcp_streamable_http_exports);
|
|
27
|
-
var StreamableHTTPServerTransport = class {
|
|
28
|
-
constructor(_options) {
|
|
29
|
-
throw new Error("StreamableHTTPServerTransport is not available in browser environments");
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
var WebStandardStreamableHTTPServerTransport = class {
|
|
33
|
-
constructor(_options) {
|
|
34
|
-
throw new Error("WebStandardStreamableHTTPServerTransport is not available in browser environments");
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {
|
|
39
|
-
StreamableHTTPServerTransport,
|
|
40
|
-
WebStandardStreamableHTTPServerTransport
|
|
41
|
-
});
|
|
1
|
+
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var browser_mcp_streamable_http_exports={};__export(browser_mcp_streamable_http_exports,{StreamableHTTPServerTransport:()=>StreamableHTTPServerTransport,WebStandardStreamableHTTPServerTransport:()=>WebStandardStreamableHTTPServerTransport});module.exports=__toCommonJS(browser_mcp_streamable_http_exports);var StreamableHTTPServerTransport=class{constructor(_options){throw new Error("StreamableHTTPServerTransport is not available in browser environments")}};var WebStandardStreamableHTTPServerTransport=class{constructor(_options){throw new Error("WebStandardStreamableHTTPServerTransport is not available in browser environments")}};0&&(module.exports={StreamableHTTPServerTransport,WebStandardStreamableHTTPServerTransport});
|
package/browser-server-types.js
CHANGED
|
@@ -1,41 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// libs/protocol/src/browser-server-types.ts
|
|
21
|
-
var browser_server_types_exports = {};
|
|
22
|
-
__export(browser_server_types_exports, {
|
|
23
|
-
HttpServerResponse: () => HttpServerResponse,
|
|
24
|
-
IncomingMessage: () => IncomingMessage
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(browser_server_types_exports);
|
|
27
|
-
var IncomingMessage = class {
|
|
28
|
-
method;
|
|
29
|
-
url;
|
|
30
|
-
headers = {};
|
|
31
|
-
};
|
|
32
|
-
var HttpServerResponse = class {
|
|
33
|
-
statusCode;
|
|
34
|
-
end() {
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {
|
|
39
|
-
HttpServerResponse,
|
|
40
|
-
IncomingMessage
|
|
41
|
-
});
|
|
1
|
+
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var browser_server_types_exports={};__export(browser_server_types_exports,{HttpServerResponse:()=>HttpServerResponse,IncomingMessage:()=>IncomingMessage});module.exports=__toCommonJS(browser_server_types_exports);var IncomingMessage=class{method;url;headers={}};var HttpServerResponse=class{statusCode;end(){}};0&&(module.exports={HttpServerResponse,IncomingMessage});
|
package/browser-stdio-client.js
CHANGED
|
@@ -1,34 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// libs/protocol/src/browser-stdio-client.ts
|
|
21
|
-
var browser_stdio_client_exports = {};
|
|
22
|
-
__export(browser_stdio_client_exports, {
|
|
23
|
-
StdioClientTransport: () => StdioClientTransport
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(browser_stdio_client_exports);
|
|
26
|
-
var StdioClientTransport = class {
|
|
27
|
-
constructor(_options) {
|
|
28
|
-
throw new Error("StdioClientTransport is not available in browser environments");
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
-
0 && (module.exports = {
|
|
33
|
-
StdioClientTransport
|
|
34
|
-
});
|
|
1
|
+
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var browser_stdio_client_exports={};__export(browser_stdio_client_exports,{StdioClientTransport:()=>StdioClientTransport});module.exports=__toCommonJS(browser_stdio_client_exports);var StdioClientTransport=class{constructor(_options){throw new Error("StdioClientTransport is not available in browser environments")}};0&&(module.exports={StdioClientTransport});
|
package/browser-stdio-server.js
CHANGED
|
@@ -1,34 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// libs/protocol/src/browser-stdio-server.ts
|
|
21
|
-
var browser_stdio_server_exports = {};
|
|
22
|
-
__export(browser_stdio_server_exports, {
|
|
23
|
-
StdioServerTransport: () => StdioServerTransport
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(browser_stdio_server_exports);
|
|
26
|
-
var StdioServerTransport = class {
|
|
27
|
-
constructor() {
|
|
28
|
-
throw new Error("StdioServerTransport is not available in browser environments");
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
-
0 && (module.exports = {
|
|
33
|
-
StdioServerTransport
|
|
34
|
-
});
|
|
1
|
+
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var browser_stdio_server_exports={};__export(browser_stdio_server_exports,{StdioServerTransport:()=>StdioServerTransport});module.exports=__toCommonJS(browser_stdio_server_exports);var StdioServerTransport=class{constructor(){throw new Error("StdioServerTransport is not available in browser environments")}};0&&(module.exports={StdioServerTransport});
|
package/client.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var client_exports={};__export(client_exports,{Client:()=>import_client.Client,SSEClientTransport:()=>import_sse.SSEClientTransport,StdioClientTransport:()=>import_stdio_client.StdioClientTransport,StreamableHTTPClientTransport:()=>import_streamableHttp.StreamableHTTPClientTransport});module.exports=__toCommonJS(client_exports);var import_client=require("@modelcontextprotocol/sdk/client/index.js");var import_streamableHttp=require("@modelcontextprotocol/sdk/client/streamableHttp.js");var import_sse=require("@modelcontextprotocol/sdk/client/sse.js");var import_stdio_client=require("#stdio-client");0&&(module.exports={Client,SSEClientTransport,StdioClientTransport,StreamableHTTPClientTransport});
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var StreamableHTTPServerTransport = class {
|
|
3
|
-
constructor(_options) {
|
|
4
|
-
throw new Error("StreamableHTTPServerTransport is not available in browser environments");
|
|
5
|
-
}
|
|
6
|
-
};
|
|
7
|
-
var WebStandardStreamableHTTPServerTransport = class {
|
|
8
|
-
constructor(_options) {
|
|
9
|
-
throw new Error("WebStandardStreamableHTTPServerTransport is not available in browser environments");
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
StreamableHTTPServerTransport,
|
|
14
|
-
WebStandardStreamableHTTPServerTransport
|
|
15
|
-
};
|
|
1
|
+
var StreamableHTTPServerTransport=class{constructor(_options){throw new Error("StreamableHTTPServerTransport is not available in browser environments")}};var WebStandardStreamableHTTPServerTransport=class{constructor(_options){throw new Error("WebStandardStreamableHTTPServerTransport is not available in browser environments")}};export{StreamableHTTPServerTransport,WebStandardStreamableHTTPServerTransport};
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var IncomingMessage = class {
|
|
3
|
-
method;
|
|
4
|
-
url;
|
|
5
|
-
headers = {};
|
|
6
|
-
};
|
|
7
|
-
var HttpServerResponse = class {
|
|
8
|
-
statusCode;
|
|
9
|
-
end() {
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
HttpServerResponse,
|
|
14
|
-
IncomingMessage
|
|
15
|
-
};
|
|
1
|
+
var IncomingMessage=class{method;url;headers={}};var HttpServerResponse=class{statusCode;end(){}};export{HttpServerResponse,IncomingMessage};
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var StdioClientTransport = class {
|
|
3
|
-
constructor(_options) {
|
|
4
|
-
throw new Error("StdioClientTransport is not available in browser environments");
|
|
5
|
-
}
|
|
6
|
-
};
|
|
7
|
-
export {
|
|
8
|
-
StdioClientTransport
|
|
9
|
-
};
|
|
1
|
+
var StdioClientTransport=class{constructor(_options){throw new Error("StdioClientTransport is not available in browser environments")}};export{StdioClientTransport};
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var StdioServerTransport = class {
|
|
3
|
-
constructor() {
|
|
4
|
-
throw new Error("StdioServerTransport is not available in browser environments");
|
|
5
|
-
}
|
|
6
|
-
};
|
|
7
|
-
export {
|
|
8
|
-
StdioServerTransport
|
|
9
|
-
};
|
|
1
|
+
var StdioServerTransport=class{constructor(){throw new Error("StdioServerTransport is not available in browser environments")}};export{StdioServerTransport};
|
package/esm/client.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Client}from"@modelcontextprotocol/sdk/client/index.js";import{StreamableHTTPClientTransport}from"@modelcontextprotocol/sdk/client/streamableHttp.js";import{SSEClientTransport}from"@modelcontextprotocol/sdk/client/sse.js";import{StdioClientTransport}from"#stdio-client";export{Client,SSEClientTransport,StdioClientTransport,StreamableHTTPClientTransport};
|
package/esm/index.mjs
CHANGED
|
@@ -1,141 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
|
-
|
|
19
|
-
// libs/protocol/src/index.ts
|
|
20
|
-
var index_exports = {};
|
|
21
|
-
__export(index_exports, {
|
|
22
|
-
Client: () => Client,
|
|
23
|
-
HttpServerResponse: () => HttpServerResponse,
|
|
24
|
-
InMemoryTransport: () => InMemoryTransport,
|
|
25
|
-
IncomingMessage: () => IncomingMessage,
|
|
26
|
-
MCP_20260728_ADDED_METHODS: () => MCP_20260728_ADDED_METHODS,
|
|
27
|
-
MCP_20260728_ERROR_CODES: () => MCP_20260728_ERROR_CODES,
|
|
28
|
-
MCP_20260728_META: () => MCP_20260728_META,
|
|
29
|
-
MCP_20260728_REMOVED_METHODS: () => MCP_20260728_REMOVED_METHODS,
|
|
30
|
-
MCP_20260728_RETIRED_ERROR_CODES: () => MCP_20260728_RETIRED_ERROR_CODES,
|
|
31
|
-
McpServer: () => Server,
|
|
32
|
-
PROTOCOL_2026_07_28: () => PROTOCOL_2026_07_28,
|
|
33
|
-
SSEClientTransport: () => SSEClientTransport,
|
|
34
|
-
SUBSCRIPTIONS_ACKNOWLEDGED_METHOD: () => SUBSCRIPTIONS_ACKNOWLEDGED_METHOD,
|
|
35
|
-
StdioClientTransport: () => StdioClientTransport,
|
|
36
|
-
StdioServerTransport: () => StdioServerTransport,
|
|
37
|
-
StreamableHTTPClientTransport: () => StreamableHTTPClientTransport,
|
|
38
|
-
StreamableHTTPServerTransport: () => StreamableHTTPServerTransport,
|
|
39
|
-
WebStandardStreamableHTTPServerTransport: () => WebStandardStreamableHTTPServerTransport,
|
|
40
|
-
isProtocol20260728: () => isProtocol20260728,
|
|
41
|
-
readDeclaredProtocolVersion: () => readDeclaredProtocolVersion
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
// libs/protocol/src/types.ts
|
|
45
|
-
var types_exports = {};
|
|
46
|
-
__reExport(types_exports, types_star);
|
|
47
|
-
import * as types_star from "@modelcontextprotocol/sdk/types.js";
|
|
48
|
-
|
|
49
|
-
// libs/protocol/src/index.ts
|
|
50
|
-
__reExport(index_exports, types_exports);
|
|
51
|
-
|
|
52
|
-
// libs/protocol/src/types-20260728.ts
|
|
53
|
-
var PROTOCOL_2026_07_28 = "2026-07-28";
|
|
54
|
-
var MCP_20260728_META = {
|
|
55
|
-
/** Request: protocol version; MUST match the `MCP-Protocol-Version` header. */
|
|
56
|
-
protocolVersion: "io.modelcontextprotocol/protocolVersion",
|
|
57
|
-
/** Request: self-reported client identity. */
|
|
58
|
-
clientInfo: "io.modelcontextprotocol/clientInfo",
|
|
59
|
-
/** Request: capabilities for THIS request only — never inferred from prior ones. */
|
|
60
|
-
clientCapabilities: "io.modelcontextprotocol/clientCapabilities",
|
|
61
|
-
/** Request: opt-in log level; absent means "send me no `notifications/message`". */
|
|
62
|
-
logLevel: "io.modelcontextprotocol/logLevel",
|
|
63
|
-
/** Result: self-reported server identity. */
|
|
64
|
-
serverInfo: "io.modelcontextprotocol/serverInfo",
|
|
65
|
-
/** Notification/result: id of the `subscriptions/listen` stream it belongs to. */
|
|
66
|
-
subscriptionId: "io.modelcontextprotocol/subscriptionId"
|
|
67
|
-
};
|
|
68
|
-
var MCP_20260728_ERROR_CODES = {
|
|
69
|
-
/** Headers disagree with the body, or a required header is missing/malformed. */
|
|
70
|
-
headerMismatch: -32020,
|
|
71
|
-
/** The request needs a client capability that was not declared. */
|
|
72
|
-
missingRequiredClientCapability: -32021,
|
|
73
|
-
/** The requested protocol version is not supported by this server. */
|
|
74
|
-
unsupportedProtocolVersion: -32022
|
|
75
|
-
};
|
|
76
|
-
var MCP_20260728_RETIRED_ERROR_CODES = [-32002, -32042];
|
|
77
|
-
var MCP_20260728_REMOVED_METHODS = [
|
|
78
|
-
"initialize",
|
|
79
|
-
"notifications/initialized",
|
|
80
|
-
"ping",
|
|
81
|
-
"logging/setLevel",
|
|
82
|
-
"notifications/roots/list_changed",
|
|
83
|
-
"resources/subscribe",
|
|
84
|
-
"resources/unsubscribe",
|
|
85
|
-
"tasks/list",
|
|
86
|
-
"tasks/result"
|
|
87
|
-
];
|
|
88
|
-
var MCP_20260728_ADDED_METHODS = ["server/discover", "subscriptions/listen"];
|
|
89
|
-
var SUBSCRIPTIONS_ACKNOWLEDGED_METHOD = "notifications/subscriptions/acknowledged";
|
|
90
|
-
function isProtocol20260728(version) {
|
|
91
|
-
return version === PROTOCOL_2026_07_28;
|
|
92
|
-
}
|
|
93
|
-
function readDeclaredProtocolVersion(body) {
|
|
94
|
-
const params = body?.params;
|
|
95
|
-
const declared = params?._meta?.[MCP_20260728_META.protocolVersion];
|
|
96
|
-
return typeof declared === "string" ? declared : void 0;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// libs/protocol/src/client.ts
|
|
100
|
-
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
101
|
-
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
|
102
|
-
import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js";
|
|
103
|
-
import { StdioClientTransport } from "#stdio-client";
|
|
104
|
-
|
|
105
|
-
// libs/protocol/src/stdio.ts
|
|
106
|
-
import { StdioServerTransport } from "#stdio-server";
|
|
107
|
-
|
|
108
|
-
// libs/protocol/src/in-memory.ts
|
|
109
|
-
import { InMemoryTransport } from "@modelcontextprotocol/sdk/inMemory.js";
|
|
110
|
-
|
|
111
|
-
// libs/protocol/src/index.ts
|
|
112
|
-
import { Server } from "#mcp-server";
|
|
113
|
-
import {
|
|
114
|
-
StreamableHTTPServerTransport,
|
|
115
|
-
WebStandardStreamableHTTPServerTransport
|
|
116
|
-
} from "#mcp-streamable-http";
|
|
117
|
-
import { IncomingMessage, HttpServerResponse } from "#server-types";
|
|
118
|
-
export {
|
|
119
|
-
Client,
|
|
120
|
-
HttpServerResponse,
|
|
121
|
-
InMemoryTransport,
|
|
122
|
-
IncomingMessage,
|
|
123
|
-
MCP_20260728_ADDED_METHODS,
|
|
124
|
-
MCP_20260728_ERROR_CODES,
|
|
125
|
-
MCP_20260728_META,
|
|
126
|
-
MCP_20260728_REMOVED_METHODS,
|
|
127
|
-
MCP_20260728_RETIRED_ERROR_CODES,
|
|
128
|
-
Server as McpServer,
|
|
129
|
-
PROTOCOL_2026_07_28,
|
|
130
|
-
SSEClientTransport,
|
|
131
|
-
SUBSCRIPTIONS_ACKNOWLEDGED_METHOD,
|
|
132
|
-
StdioClientTransport,
|
|
133
|
-
StdioServerTransport,
|
|
134
|
-
StreamableHTTPClientTransport,
|
|
135
|
-
StreamableHTTPServerTransport,
|
|
136
|
-
WebStandardStreamableHTTPServerTransport,
|
|
137
|
-
isProtocol20260728,
|
|
138
|
-
readDeclaredProtocolVersion
|
|
139
|
-
};
|
|
1
|
+
var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __reExport=(target,mod,secondTarget)=>(__copyProps(target,mod,"default"),secondTarget&&__copyProps(secondTarget,mod,"default"));var index_exports={};__export(index_exports,{HttpServerResponse:()=>HttpServerResponse,InMemoryTransport:()=>InMemoryTransport,IncomingMessage:()=>IncomingMessage,MCP_20260728_ADDED_METHODS:()=>MCP_20260728_ADDED_METHODS,MCP_20260728_ERROR_CODES:()=>MCP_20260728_ERROR_CODES,MCP_20260728_META:()=>MCP_20260728_META,MCP_20260728_REMOVED_METHODS:()=>MCP_20260728_REMOVED_METHODS,MCP_20260728_RETIRED_ERROR_CODES:()=>MCP_20260728_RETIRED_ERROR_CODES,McpServer:()=>Server,PROTOCOL_2026_07_28:()=>PROTOCOL_2026_07_28,SUBSCRIPTIONS_ACKNOWLEDGED_METHOD:()=>SUBSCRIPTIONS_ACKNOWLEDGED_METHOD,StdioServerTransport:()=>StdioServerTransport,StreamableHTTPServerTransport:()=>StreamableHTTPServerTransport,WebStandardStreamableHTTPServerTransport:()=>WebStandardStreamableHTTPServerTransport,isProtocol20260728:()=>isProtocol20260728,readDeclaredProtocolVersion:()=>readDeclaredProtocolVersion});var types_exports={};__reExport(types_exports,types_star);import*as types_star from"@modelcontextprotocol/sdk/types.js";__reExport(index_exports,types_exports);var PROTOCOL_2026_07_28="2026-07-28";var MCP_20260728_META={protocolVersion:"io.modelcontextprotocol/protocolVersion",clientInfo:"io.modelcontextprotocol/clientInfo",clientCapabilities:"io.modelcontextprotocol/clientCapabilities",logLevel:"io.modelcontextprotocol/logLevel",serverInfo:"io.modelcontextprotocol/serverInfo",subscriptionId:"io.modelcontextprotocol/subscriptionId"};var MCP_20260728_ERROR_CODES={headerMismatch:-32020,missingRequiredClientCapability:-32021,unsupportedProtocolVersion:-32022};var MCP_20260728_RETIRED_ERROR_CODES=[-32002,-32042];var MCP_20260728_REMOVED_METHODS=["initialize","notifications/initialized","ping","logging/setLevel","notifications/roots/list_changed","resources/subscribe","resources/unsubscribe","tasks/list","tasks/result"];var MCP_20260728_ADDED_METHODS=["server/discover","subscriptions/listen"];var SUBSCRIPTIONS_ACKNOWLEDGED_METHOD="notifications/subscriptions/acknowledged";function isProtocol20260728(version){return version===PROTOCOL_2026_07_28}function readDeclaredProtocolVersion(body){const params=body?.params;const declared=params?._meta?.[MCP_20260728_META.protocolVersion];return typeof declared==="string"?declared:void 0}export*from"#client";import{StdioServerTransport}from"#stdio-server";import{InMemoryTransport}from"@modelcontextprotocol/sdk/inMemory.js";import{Server}from"#mcp-server";import{StreamableHTTPServerTransport,WebStandardStreamableHTTPServerTransport}from"#mcp-streamable-http";import{IncomingMessage,HttpServerResponse}from"#server-types";export{HttpServerResponse,InMemoryTransport,IncomingMessage,MCP_20260728_ADDED_METHODS,MCP_20260728_ERROR_CODES,MCP_20260728_META,MCP_20260728_REMOVED_METHODS,MCP_20260728_RETIRED_ERROR_CODES,Server as McpServer,PROTOCOL_2026_07_28,SUBSCRIPTIONS_ACKNOWLEDGED_METHOD,StdioServerTransport,StreamableHTTPServerTransport,WebStandardStreamableHTTPServerTransport,isProtocol20260728,readDeclaredProtocolVersion};
|
|
140
2
|
|
|
141
3
|
export * from "@modelcontextprotocol/sdk/types.js";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var __frontmcpModule = typeof process !== "undefined" && typeof process.getBuiltinModule === "function" ? process.getBuiltinModule("module") : undefined;
|
|
2
|
+
const require = __frontmcpModule ? __frontmcpModule.createRequire(import.meta.url || 'file:///') : undefined;
|
|
3
|
+
// __frontmcpCreateRequire
|
|
4
|
+
var __getOwnPropNames=Object.getOwnPropertyNames;var __require=(x=>typeof require!=="undefined"?require:typeof Proxy!=="undefined"?new Proxy(x,{get:(a,b)=>(typeof require!=="undefined"?require:a)[b]}):x)(function(x){if(typeof require!=="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+x+'" is not supported')});var __commonJS=(cb,mod)=>function __require2(){try{return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports}catch(e){throw mod=0,e}};var require_lazy_client=__commonJS({"libs/protocol/src/lazy-client.ts"(exports){Object.defineProperties(exports,{Client:{enumerable:true,get:()=>__require("@modelcontextprotocol/sdk/client/index.js").Client},StreamableHTTPClientTransport:{enumerable:true,get:()=>__require("@modelcontextprotocol/sdk/client/streamableHttp.js").StreamableHTTPClientTransport},SSEClientTransport:{enumerable:true,get:()=>__require("@modelcontextprotocol/sdk/client/sse.js").SSEClientTransport},StdioClientTransport:{enumerable:true,get:()=>__require("#stdio-client").StdioClientTransport}})}});export default require_lazy_client();
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var __frontmcpModule = typeof process !== "undefined" && typeof process.getBuiltinModule === "function" ? process.getBuiltinModule("module") : undefined;
|
|
2
|
+
const require = __frontmcpModule ? __frontmcpModule.createRequire(import.meta.url || 'file:///') : undefined;
|
|
3
|
+
// __frontmcpCreateRequire
|
|
4
|
+
var __getOwnPropNames=Object.getOwnPropertyNames;var __require=(x=>typeof require!=="undefined"?require:typeof Proxy!=="undefined"?new Proxy(x,{get:(a,b)=>(typeof require!=="undefined"?require:a)[b]}):x)(function(x){if(typeof require!=="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+x+'" is not supported')});var __commonJS=(cb,mod)=>function __require2(){try{return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports}catch(e){throw mod=0,e}};var require_lazy_mcp_streamable_http=__commonJS({"libs/protocol/src/lazy-mcp-streamable-http.ts"(exports){Object.defineProperties(exports,{StreamableHTTPServerTransport:{enumerable:true,get:()=>__require("@modelcontextprotocol/sdk/server/streamableHttp.js").StreamableHTTPServerTransport},WebStandardStreamableHTTPServerTransport:{enumerable:true,get:()=>__require("@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js").WebStandardStreamableHTTPServerTransport}})}});export default require_lazy_mcp_streamable_http();
|
package/esm/node-mcp-server.mjs
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
StreamableHTTPServerTransport
|
|
4
|
-
} from "@modelcontextprotocol/sdk/server/streamableHttp.js";
|
|
5
|
-
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
6
|
-
export {
|
|
7
|
-
StreamableHTTPServerTransport,
|
|
8
|
-
WebStandardStreamableHTTPServerTransport
|
|
9
|
-
};
|
|
1
|
+
import{StreamableHTTPServerTransport}from"@modelcontextprotocol/sdk/server/streamableHttp.js";import{WebStandardStreamableHTTPServerTransport}from"@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";export{StreamableHTTPServerTransport,WebStandardStreamableHTTPServerTransport};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { IncomingMessage, ServerResponse } from "http";
|
|
3
|
-
export {
|
|
4
|
-
ServerResponse as HttpServerResponse,
|
|
5
|
-
IncomingMessage
|
|
6
|
-
};
|
|
1
|
+
import{IncomingMessage,ServerResponse}from"http";export{ServerResponse as HttpServerResponse,IncomingMessage};
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
|
|
3
|
-
export {
|
|
4
|
-
StdioClientTransport
|
|
5
|
-
};
|
|
1
|
+
import{StdioClientTransport}from"@modelcontextprotocol/sdk/client/stdio.js";export{StdioClientTransport};
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
3
|
-
export {
|
|
4
|
-
StdioServerTransport
|
|
5
|
-
};
|
|
1
|
+
import{StdioServerTransport}from"@modelcontextprotocol/sdk/server/stdio.js";export{StdioServerTransport};
|
package/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export * from './types';
|
|
|
10
10
|
export * from './types-20260728';
|
|
11
11
|
export * from './auth-types';
|
|
12
12
|
export * from './shared';
|
|
13
|
-
export * from '
|
|
13
|
+
export * from '#client';
|
|
14
14
|
export * from './stdio';
|
|
15
15
|
export * from './in-memory';
|
|
16
16
|
export { Server as McpServer, type ServerOptions as McpServerOptions } from '#mcp-server';
|
package/index.js
CHANGED
|
@@ -1,139 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// libs/protocol/src/index.ts
|
|
22
|
-
var index_exports = {};
|
|
23
|
-
__export(index_exports, {
|
|
24
|
-
Client: () => import_client.Client,
|
|
25
|
-
HttpServerResponse: () => import_server_types.HttpServerResponse,
|
|
26
|
-
InMemoryTransport: () => import_inMemory.InMemoryTransport,
|
|
27
|
-
IncomingMessage: () => import_server_types.IncomingMessage,
|
|
28
|
-
MCP_20260728_ADDED_METHODS: () => MCP_20260728_ADDED_METHODS,
|
|
29
|
-
MCP_20260728_ERROR_CODES: () => MCP_20260728_ERROR_CODES,
|
|
30
|
-
MCP_20260728_META: () => MCP_20260728_META,
|
|
31
|
-
MCP_20260728_REMOVED_METHODS: () => MCP_20260728_REMOVED_METHODS,
|
|
32
|
-
MCP_20260728_RETIRED_ERROR_CODES: () => MCP_20260728_RETIRED_ERROR_CODES,
|
|
33
|
-
McpServer: () => import_mcp_server.Server,
|
|
34
|
-
PROTOCOL_2026_07_28: () => PROTOCOL_2026_07_28,
|
|
35
|
-
SSEClientTransport: () => import_sse.SSEClientTransport,
|
|
36
|
-
SUBSCRIPTIONS_ACKNOWLEDGED_METHOD: () => SUBSCRIPTIONS_ACKNOWLEDGED_METHOD,
|
|
37
|
-
StdioClientTransport: () => import_stdio_client.StdioClientTransport,
|
|
38
|
-
StdioServerTransport: () => import_stdio_server.StdioServerTransport,
|
|
39
|
-
StreamableHTTPClientTransport: () => import_streamableHttp.StreamableHTTPClientTransport,
|
|
40
|
-
StreamableHTTPServerTransport: () => import_mcp_streamable_http.StreamableHTTPServerTransport,
|
|
41
|
-
WebStandardStreamableHTTPServerTransport: () => import_mcp_streamable_http.WebStandardStreamableHTTPServerTransport,
|
|
42
|
-
isProtocol20260728: () => isProtocol20260728,
|
|
43
|
-
readDeclaredProtocolVersion: () => readDeclaredProtocolVersion
|
|
44
|
-
});
|
|
45
|
-
module.exports = __toCommonJS(index_exports);
|
|
46
|
-
|
|
47
|
-
// libs/protocol/src/types.ts
|
|
48
|
-
var types_exports = {};
|
|
49
|
-
__reExport(types_exports, require("@modelcontextprotocol/sdk/types.js"));
|
|
50
|
-
|
|
51
|
-
// libs/protocol/src/index.ts
|
|
52
|
-
__reExport(index_exports, types_exports, module.exports);
|
|
53
|
-
|
|
54
|
-
// libs/protocol/src/types-20260728.ts
|
|
55
|
-
var PROTOCOL_2026_07_28 = "2026-07-28";
|
|
56
|
-
var MCP_20260728_META = {
|
|
57
|
-
/** Request: protocol version; MUST match the `MCP-Protocol-Version` header. */
|
|
58
|
-
protocolVersion: "io.modelcontextprotocol/protocolVersion",
|
|
59
|
-
/** Request: self-reported client identity. */
|
|
60
|
-
clientInfo: "io.modelcontextprotocol/clientInfo",
|
|
61
|
-
/** Request: capabilities for THIS request only — never inferred from prior ones. */
|
|
62
|
-
clientCapabilities: "io.modelcontextprotocol/clientCapabilities",
|
|
63
|
-
/** Request: opt-in log level; absent means "send me no `notifications/message`". */
|
|
64
|
-
logLevel: "io.modelcontextprotocol/logLevel",
|
|
65
|
-
/** Result: self-reported server identity. */
|
|
66
|
-
serverInfo: "io.modelcontextprotocol/serverInfo",
|
|
67
|
-
/** Notification/result: id of the `subscriptions/listen` stream it belongs to. */
|
|
68
|
-
subscriptionId: "io.modelcontextprotocol/subscriptionId"
|
|
69
|
-
};
|
|
70
|
-
var MCP_20260728_ERROR_CODES = {
|
|
71
|
-
/** Headers disagree with the body, or a required header is missing/malformed. */
|
|
72
|
-
headerMismatch: -32020,
|
|
73
|
-
/** The request needs a client capability that was not declared. */
|
|
74
|
-
missingRequiredClientCapability: -32021,
|
|
75
|
-
/** The requested protocol version is not supported by this server. */
|
|
76
|
-
unsupportedProtocolVersion: -32022
|
|
77
|
-
};
|
|
78
|
-
var MCP_20260728_RETIRED_ERROR_CODES = [-32002, -32042];
|
|
79
|
-
var MCP_20260728_REMOVED_METHODS = [
|
|
80
|
-
"initialize",
|
|
81
|
-
"notifications/initialized",
|
|
82
|
-
"ping",
|
|
83
|
-
"logging/setLevel",
|
|
84
|
-
"notifications/roots/list_changed",
|
|
85
|
-
"resources/subscribe",
|
|
86
|
-
"resources/unsubscribe",
|
|
87
|
-
"tasks/list",
|
|
88
|
-
"tasks/result"
|
|
89
|
-
];
|
|
90
|
-
var MCP_20260728_ADDED_METHODS = ["server/discover", "subscriptions/listen"];
|
|
91
|
-
var SUBSCRIPTIONS_ACKNOWLEDGED_METHOD = "notifications/subscriptions/acknowledged";
|
|
92
|
-
function isProtocol20260728(version) {
|
|
93
|
-
return version === PROTOCOL_2026_07_28;
|
|
94
|
-
}
|
|
95
|
-
function readDeclaredProtocolVersion(body) {
|
|
96
|
-
const params = body?.params;
|
|
97
|
-
const declared = params?._meta?.[MCP_20260728_META.protocolVersion];
|
|
98
|
-
return typeof declared === "string" ? declared : void 0;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// libs/protocol/src/client.ts
|
|
102
|
-
var import_client = require("@modelcontextprotocol/sdk/client/index.js");
|
|
103
|
-
var import_streamableHttp = require("@modelcontextprotocol/sdk/client/streamableHttp.js");
|
|
104
|
-
var import_sse = require("@modelcontextprotocol/sdk/client/sse.js");
|
|
105
|
-
var import_stdio_client = require("#stdio-client");
|
|
106
|
-
|
|
107
|
-
// libs/protocol/src/stdio.ts
|
|
108
|
-
var import_stdio_server = require("#stdio-server");
|
|
109
|
-
|
|
110
|
-
// libs/protocol/src/in-memory.ts
|
|
111
|
-
var import_inMemory = require("@modelcontextprotocol/sdk/inMemory.js");
|
|
112
|
-
|
|
113
|
-
// libs/protocol/src/index.ts
|
|
114
|
-
var import_mcp_server = require("#mcp-server");
|
|
115
|
-
var import_mcp_streamable_http = require("#mcp-streamable-http");
|
|
116
|
-
var import_server_types = require("#server-types");
|
|
117
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
118
|
-
0 && (module.exports = {
|
|
119
|
-
Client,
|
|
120
|
-
HttpServerResponse,
|
|
121
|
-
InMemoryTransport,
|
|
122
|
-
IncomingMessage,
|
|
123
|
-
MCP_20260728_ADDED_METHODS,
|
|
124
|
-
MCP_20260728_ERROR_CODES,
|
|
125
|
-
MCP_20260728_META,
|
|
126
|
-
MCP_20260728_REMOVED_METHODS,
|
|
127
|
-
MCP_20260728_RETIRED_ERROR_CODES,
|
|
128
|
-
McpServer,
|
|
129
|
-
PROTOCOL_2026_07_28,
|
|
130
|
-
SSEClientTransport,
|
|
131
|
-
SUBSCRIPTIONS_ACKNOWLEDGED_METHOD,
|
|
132
|
-
StdioClientTransport,
|
|
133
|
-
StdioServerTransport,
|
|
134
|
-
StreamableHTTPClientTransport,
|
|
135
|
-
StreamableHTTPServerTransport,
|
|
136
|
-
WebStandardStreamableHTTPServerTransport,
|
|
137
|
-
isProtocol20260728,
|
|
138
|
-
readDeclaredProtocolVersion
|
|
139
|
-
});
|
|
1
|
+
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __reExport=(target,mod,secondTarget)=>(__copyProps(target,mod,"default"),secondTarget&&__copyProps(secondTarget,mod,"default"));var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var index_exports={};__export(index_exports,{HttpServerResponse:()=>import_server_types.HttpServerResponse,InMemoryTransport:()=>import_inMemory.InMemoryTransport,IncomingMessage:()=>import_server_types.IncomingMessage,MCP_20260728_ADDED_METHODS:()=>MCP_20260728_ADDED_METHODS,MCP_20260728_ERROR_CODES:()=>MCP_20260728_ERROR_CODES,MCP_20260728_META:()=>MCP_20260728_META,MCP_20260728_REMOVED_METHODS:()=>MCP_20260728_REMOVED_METHODS,MCP_20260728_RETIRED_ERROR_CODES:()=>MCP_20260728_RETIRED_ERROR_CODES,McpServer:()=>import_mcp_server.Server,PROTOCOL_2026_07_28:()=>PROTOCOL_2026_07_28,SUBSCRIPTIONS_ACKNOWLEDGED_METHOD:()=>SUBSCRIPTIONS_ACKNOWLEDGED_METHOD,StdioServerTransport:()=>import_stdio_server.StdioServerTransport,StreamableHTTPServerTransport:()=>import_mcp_streamable_http.StreamableHTTPServerTransport,WebStandardStreamableHTTPServerTransport:()=>import_mcp_streamable_http.WebStandardStreamableHTTPServerTransport,isProtocol20260728:()=>isProtocol20260728,readDeclaredProtocolVersion:()=>readDeclaredProtocolVersion});module.exports=__toCommonJS(index_exports);var types_exports={};__reExport(types_exports,require("@modelcontextprotocol/sdk/types.js"));__reExport(index_exports,types_exports,module.exports);var PROTOCOL_2026_07_28="2026-07-28";var MCP_20260728_META={protocolVersion:"io.modelcontextprotocol/protocolVersion",clientInfo:"io.modelcontextprotocol/clientInfo",clientCapabilities:"io.modelcontextprotocol/clientCapabilities",logLevel:"io.modelcontextprotocol/logLevel",serverInfo:"io.modelcontextprotocol/serverInfo",subscriptionId:"io.modelcontextprotocol/subscriptionId"};var MCP_20260728_ERROR_CODES={headerMismatch:-32020,missingRequiredClientCapability:-32021,unsupportedProtocolVersion:-32022};var MCP_20260728_RETIRED_ERROR_CODES=[-32002,-32042];var MCP_20260728_REMOVED_METHODS=["initialize","notifications/initialized","ping","logging/setLevel","notifications/roots/list_changed","resources/subscribe","resources/unsubscribe","tasks/list","tasks/result"];var MCP_20260728_ADDED_METHODS=["server/discover","subscriptions/listen"];var SUBSCRIPTIONS_ACKNOWLEDGED_METHOD="notifications/subscriptions/acknowledged";function isProtocol20260728(version){return version===PROTOCOL_2026_07_28}function readDeclaredProtocolVersion(body){const params=body?.params;const declared=params?._meta?.[MCP_20260728_META.protocolVersion];return typeof declared==="string"?declared:void 0}__reExport(index_exports,require("#client"),module.exports);var import_stdio_server=require("#stdio-server");var import_inMemory=require("@modelcontextprotocol/sdk/inMemory.js");var import_mcp_server=require("#mcp-server");var import_mcp_streamable_http=require("#mcp-streamable-http");var import_server_types=require("#server-types");0&&(module.exports={HttpServerResponse,InMemoryTransport,IncomingMessage,MCP_20260728_ADDED_METHODS,MCP_20260728_ERROR_CODES,MCP_20260728_META,MCP_20260728_REMOVED_METHODS,MCP_20260728_RETIRED_ERROR_CODES,McpServer,PROTOCOL_2026_07_28,SUBSCRIPTIONS_ACKNOWLEDGED_METHOD,StdioServerTransport,StreamableHTTPServerTransport,WebStandardStreamableHTTPServerTransport,isProtocol20260728,readDeclaredProtocolVersion,...require("#client")});
|
package/lazy-client.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lazy-client.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{Client:{enumerable:true,get:()=>require("@modelcontextprotocol/sdk/client/index.js").Client},StreamableHTTPClientTransport:{enumerable:true,get:()=>require("@modelcontextprotocol/sdk/client/streamableHttp.js").StreamableHTTPClientTransport},SSEClientTransport:{enumerable:true,get:()=>require("@modelcontextprotocol/sdk/client/sse.js").SSEClientTransport},StdioClientTransport:{enumerable:true,get:()=>require("#stdio-client").StdioClientTransport}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{StreamableHTTPServerTransport:{enumerable:true,get:()=>require("@modelcontextprotocol/sdk/server/streamableHttp.js").StreamableHTTPServerTransport},WebStandardStreamableHTTPServerTransport:{enumerable:true,get:()=>require("@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js").WebStandardStreamableHTTPServerTransport}});
|
package/node-mcp-server.js
CHANGED
|
@@ -1,30 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// libs/protocol/src/node-mcp-server.ts
|
|
21
|
-
var node_mcp_server_exports = {};
|
|
22
|
-
__export(node_mcp_server_exports, {
|
|
23
|
-
Server: () => import_server.Server
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(node_mcp_server_exports);
|
|
26
|
-
var import_server = require("@modelcontextprotocol/sdk/server/index.js");
|
|
27
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
28
|
-
0 && (module.exports = {
|
|
29
|
-
Server
|
|
30
|
-
});
|
|
1
|
+
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var node_mcp_server_exports={};__export(node_mcp_server_exports,{Server:()=>import_server.Server});module.exports=__toCommonJS(node_mcp_server_exports);var import_server=require("@modelcontextprotocol/sdk/server/index.js");0&&(module.exports={Server});
|
|
@@ -1,33 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// libs/protocol/src/node-mcp-streamable-http.ts
|
|
21
|
-
var node_mcp_streamable_http_exports = {};
|
|
22
|
-
__export(node_mcp_streamable_http_exports, {
|
|
23
|
-
StreamableHTTPServerTransport: () => import_streamableHttp.StreamableHTTPServerTransport,
|
|
24
|
-
WebStandardStreamableHTTPServerTransport: () => import_webStandardStreamableHttp.WebStandardStreamableHTTPServerTransport
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(node_mcp_streamable_http_exports);
|
|
27
|
-
var import_streamableHttp = require("@modelcontextprotocol/sdk/server/streamableHttp.js");
|
|
28
|
-
var import_webStandardStreamableHttp = require("@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js");
|
|
29
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
-
0 && (module.exports = {
|
|
31
|
-
StreamableHTTPServerTransport,
|
|
32
|
-
WebStandardStreamableHTTPServerTransport
|
|
33
|
-
});
|
|
1
|
+
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var node_mcp_streamable_http_exports={};__export(node_mcp_streamable_http_exports,{StreamableHTTPServerTransport:()=>import_streamableHttp.StreamableHTTPServerTransport,WebStandardStreamableHTTPServerTransport:()=>import_webStandardStreamableHttp.WebStandardStreamableHTTPServerTransport});module.exports=__toCommonJS(node_mcp_streamable_http_exports);var import_streamableHttp=require("@modelcontextprotocol/sdk/server/streamableHttp.js");var import_webStandardStreamableHttp=require("@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js");0&&(module.exports={StreamableHTTPServerTransport,WebStandardStreamableHTTPServerTransport});
|
package/node-server-types.js
CHANGED
|
@@ -1,32 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// libs/protocol/src/node-server-types.ts
|
|
21
|
-
var node_server_types_exports = {};
|
|
22
|
-
__export(node_server_types_exports, {
|
|
23
|
-
HttpServerResponse: () => import_http.ServerResponse,
|
|
24
|
-
IncomingMessage: () => import_http.IncomingMessage
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(node_server_types_exports);
|
|
27
|
-
var import_http = require("http");
|
|
28
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
-
0 && (module.exports = {
|
|
30
|
-
HttpServerResponse,
|
|
31
|
-
IncomingMessage
|
|
32
|
-
});
|
|
1
|
+
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var node_server_types_exports={};__export(node_server_types_exports,{HttpServerResponse:()=>import_http.ServerResponse,IncomingMessage:()=>import_http.IncomingMessage});module.exports=__toCommonJS(node_server_types_exports);var import_http=require("http");0&&(module.exports={HttpServerResponse,IncomingMessage});
|
package/node-stdio-client.js
CHANGED
|
@@ -1,30 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// libs/protocol/src/node-stdio-client.ts
|
|
21
|
-
var node_stdio_client_exports = {};
|
|
22
|
-
__export(node_stdio_client_exports, {
|
|
23
|
-
StdioClientTransport: () => import_stdio.StdioClientTransport
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(node_stdio_client_exports);
|
|
26
|
-
var import_stdio = require("@modelcontextprotocol/sdk/client/stdio.js");
|
|
27
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
28
|
-
0 && (module.exports = {
|
|
29
|
-
StdioClientTransport
|
|
30
|
-
});
|
|
1
|
+
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var node_stdio_client_exports={};__export(node_stdio_client_exports,{StdioClientTransport:()=>import_stdio.StdioClientTransport});module.exports=__toCommonJS(node_stdio_client_exports);var import_stdio=require("@modelcontextprotocol/sdk/client/stdio.js");0&&(module.exports={StdioClientTransport});
|
package/node-stdio-server.js
CHANGED
|
@@ -1,30 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// libs/protocol/src/node-stdio-server.ts
|
|
21
|
-
var node_stdio_server_exports = {};
|
|
22
|
-
__export(node_stdio_server_exports, {
|
|
23
|
-
StdioServerTransport: () => import_stdio.StdioServerTransport
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(node_stdio_server_exports);
|
|
26
|
-
var import_stdio = require("@modelcontextprotocol/sdk/server/stdio.js");
|
|
27
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
28
|
-
0 && (module.exports = {
|
|
29
|
-
StdioServerTransport
|
|
30
|
-
});
|
|
1
|
+
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var node_stdio_server_exports={};__export(node_stdio_server_exports,{StdioServerTransport:()=>import_stdio.StdioServerTransport});module.exports=__toCommonJS(node_stdio_server_exports);var import_stdio=require("@modelcontextprotocol/sdk/server/stdio.js");0&&(module.exports={StdioServerTransport});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/protocol",
|
|
3
|
-
"version": "1.10.9-rc.
|
|
3
|
+
"version": "1.10.9-rc.2",
|
|
4
4
|
"description": "Internal FrontMCP package: the single re-export point for @modelcontextprotocol/sdk types, server, client and transports",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,11 +30,13 @@
|
|
|
30
30
|
},
|
|
31
31
|
"imports": {
|
|
32
32
|
"#mcp-streamable-http": {
|
|
33
|
+
"types": "./node-mcp-streamable-http.js",
|
|
33
34
|
"worker": "./node-mcp-streamable-http.js",
|
|
34
35
|
"browser": {
|
|
35
36
|
"import": "./esm/browser-mcp-streamable-http.mjs",
|
|
36
37
|
"default": "./browser-mcp-streamable-http.js"
|
|
37
38
|
},
|
|
39
|
+
"require": "./lazy-mcp-streamable-http.js",
|
|
38
40
|
"default": "./node-mcp-streamable-http.js"
|
|
39
41
|
},
|
|
40
42
|
"#mcp-server": {
|
|
@@ -68,6 +70,17 @@
|
|
|
68
70
|
"default": "./browser-stdio-server.js"
|
|
69
71
|
},
|
|
70
72
|
"default": "./node-stdio-server.js"
|
|
73
|
+
},
|
|
74
|
+
"#client": {
|
|
75
|
+
"types": "./client.js",
|
|
76
|
+
"worker": "./client.js",
|
|
77
|
+
"browser": {
|
|
78
|
+
"import": "./esm/client.mjs",
|
|
79
|
+
"default": "./client.js"
|
|
80
|
+
},
|
|
81
|
+
"require": "./lazy-client.js",
|
|
82
|
+
"import": "./esm/client.mjs",
|
|
83
|
+
"default": "./client.js"
|
|
71
84
|
}
|
|
72
85
|
},
|
|
73
86
|
"type": "commonjs",
|