@frontmcp/protocol 1.8.7 → 1.9.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/browser-stdio-client.js +34 -0
- package/browser-stdio-server.js +34 -0
- package/esm/browser-stdio-client.mjs +9 -0
- package/esm/browser-stdio-server.mjs +9 -0
- package/esm/index.mjs +3 -5
- package/esm/node-stdio-client.mjs +5 -0
- package/esm/node-stdio-server.mjs +5 -0
- package/index.js +5 -7
- package/node-stdio-client.js +30 -0
- package/node-stdio-server.js +30 -0
- package/package.json +21 -6
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
});
|
package/esm/index.mjs
CHANGED
|
@@ -100,12 +100,10 @@ function readDeclaredProtocolVersion(body) {
|
|
|
100
100
|
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
101
101
|
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
|
102
102
|
import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js";
|
|
103
|
+
import { StdioClientTransport } from "#stdio-client";
|
|
103
104
|
|
|
104
|
-
// libs/protocol/src/
|
|
105
|
-
import {
|
|
106
|
-
|
|
107
|
-
// libs/protocol/src/node-stdio-server.ts
|
|
108
|
-
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
105
|
+
// libs/protocol/src/stdio.ts
|
|
106
|
+
import { StdioServerTransport } from "#stdio-server";
|
|
109
107
|
|
|
110
108
|
// libs/protocol/src/in-memory.ts
|
|
111
109
|
import { InMemoryTransport } from "@modelcontextprotocol/sdk/inMemory.js";
|
package/index.js
CHANGED
|
@@ -34,8 +34,8 @@ __export(index_exports, {
|
|
|
34
34
|
PROTOCOL_2026_07_28: () => PROTOCOL_2026_07_28,
|
|
35
35
|
SSEClientTransport: () => import_sse.SSEClientTransport,
|
|
36
36
|
SUBSCRIPTIONS_ACKNOWLEDGED_METHOD: () => SUBSCRIPTIONS_ACKNOWLEDGED_METHOD,
|
|
37
|
-
StdioClientTransport: () =>
|
|
38
|
-
StdioServerTransport: () =>
|
|
37
|
+
StdioClientTransport: () => import_stdio_client.StdioClientTransport,
|
|
38
|
+
StdioServerTransport: () => import_stdio_server.StdioServerTransport,
|
|
39
39
|
StreamableHTTPClientTransport: () => import_streamableHttp.StreamableHTTPClientTransport,
|
|
40
40
|
StreamableHTTPServerTransport: () => import_mcp_streamable_http.StreamableHTTPServerTransport,
|
|
41
41
|
WebStandardStreamableHTTPServerTransport: () => import_mcp_streamable_http.WebStandardStreamableHTTPServerTransport,
|
|
@@ -102,12 +102,10 @@ function readDeclaredProtocolVersion(body) {
|
|
|
102
102
|
var import_client = require("@modelcontextprotocol/sdk/client/index.js");
|
|
103
103
|
var import_streamableHttp = require("@modelcontextprotocol/sdk/client/streamableHttp.js");
|
|
104
104
|
var import_sse = require("@modelcontextprotocol/sdk/client/sse.js");
|
|
105
|
+
var import_stdio_client = require("#stdio-client");
|
|
105
106
|
|
|
106
|
-
// libs/protocol/src/
|
|
107
|
-
var
|
|
108
|
-
|
|
109
|
-
// libs/protocol/src/node-stdio-server.ts
|
|
110
|
-
var import_stdio2 = require("@modelcontextprotocol/sdk/server/stdio.js");
|
|
107
|
+
// libs/protocol/src/stdio.ts
|
|
108
|
+
var import_stdio_server = require("#stdio-server");
|
|
111
109
|
|
|
112
110
|
// libs/protocol/src/in-memory.ts
|
|
113
111
|
var import_inMemory = require("@modelcontextprotocol/sdk/inMemory.js");
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/protocol",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "Centralized MCP protocol types, server, and client re-exports for FrontMCP",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,27 +30,42 @@
|
|
|
30
30
|
"imports": {
|
|
31
31
|
"#mcp-streamable-http": {
|
|
32
32
|
"worker": "./node-mcp-streamable-http.js",
|
|
33
|
-
"browser":
|
|
33
|
+
"browser": {
|
|
34
|
+
"import": "./esm/browser-mcp-streamable-http.mjs",
|
|
35
|
+
"default": "./browser-mcp-streamable-http.js"
|
|
36
|
+
},
|
|
34
37
|
"default": "./node-mcp-streamable-http.js"
|
|
35
38
|
},
|
|
36
39
|
"#mcp-server": {
|
|
37
40
|
"worker": "./node-mcp-server.js",
|
|
38
|
-
"browser":
|
|
41
|
+
"browser": {
|
|
42
|
+
"import": "./esm/browser-mcp-server.mjs",
|
|
43
|
+
"default": "./browser-mcp-server.js"
|
|
44
|
+
},
|
|
39
45
|
"default": "./node-mcp-server.js"
|
|
40
46
|
},
|
|
41
47
|
"#server-types": {
|
|
42
48
|
"worker": "./node-server-types.js",
|
|
43
|
-
"browser":
|
|
49
|
+
"browser": {
|
|
50
|
+
"import": "./esm/browser-server-types.mjs",
|
|
51
|
+
"default": "./browser-server-types.js"
|
|
52
|
+
},
|
|
44
53
|
"default": "./node-server-types.js"
|
|
45
54
|
},
|
|
46
55
|
"#stdio-client": {
|
|
47
56
|
"worker": "./browser-stdio-client.js",
|
|
48
|
-
"browser":
|
|
57
|
+
"browser": {
|
|
58
|
+
"import": "./esm/browser-stdio-client.mjs",
|
|
59
|
+
"default": "./browser-stdio-client.js"
|
|
60
|
+
},
|
|
49
61
|
"default": "./node-stdio-client.js"
|
|
50
62
|
},
|
|
51
63
|
"#stdio-server": {
|
|
52
64
|
"worker": "./browser-stdio-server.js",
|
|
53
|
-
"browser":
|
|
65
|
+
"browser": {
|
|
66
|
+
"import": "./esm/browser-stdio-server.mjs",
|
|
67
|
+
"default": "./browser-stdio-server.js"
|
|
68
|
+
},
|
|
54
69
|
"default": "./node-stdio-server.js"
|
|
55
70
|
}
|
|
56
71
|
},
|