@luutuankiet/mcp-proxy-shim 1.0.7 → 1.0.8
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/core.d.ts +40 -0
- package/dist/core.js +496 -0
- package/dist/core.js.map +1 -0
- package/dist/http-server.d.ts +32 -0
- package/dist/http-server.js +238 -0
- package/dist/http-server.js.map +1 -0
- package/dist/index.d.ts +10 -18
- package/dist/index.js +42 -573
- package/dist/index.js.map +1 -1
- package/dist/stdio.d.ts +6 -0
- package/dist/stdio.js +18 -0
- package/dist/stdio.js.map +1 -0
- package/package.json +6 -2
package/dist/stdio.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP Proxy Shim — Stdio Transport
|
|
3
|
+
*
|
|
4
|
+
* Imported by index.ts when no subcommand is given (default mode).
|
|
5
|
+
*/
|
|
6
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
7
|
+
import { createShimServer, log } from "./core.js";
|
|
8
|
+
async function main() {
|
|
9
|
+
const server = await createShimServer();
|
|
10
|
+
const transport = new StdioServerTransport();
|
|
11
|
+
await server.connect(transport);
|
|
12
|
+
log("Stdio transport connected — shim is live");
|
|
13
|
+
}
|
|
14
|
+
main().catch((err) => {
|
|
15
|
+
log("Fatal:", err);
|
|
16
|
+
process.exit(1);
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=stdio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stdio.js","sourceRoot":"","sources":["../src/stdio.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAElD,KAAK,UAAU,IAAI;IACjB,MAAM,MAAM,GAAG,MAAM,gBAAgB,EAAE,CAAC;IAExC,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAEhC,GAAG,CAAC,0CAA0C,CAAC,CAAC;AAClD,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACnB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luutuankiet/mcp-proxy-shim",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.8",
|
|
4
|
+
"description": "MCP proxy shim for mcpproxy-go — transforms call_tool_* args_json:string to native args:object. Supports stdio and HTTP Streamable transports.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"bin": {
|
|
@@ -14,7 +14,9 @@
|
|
|
14
14
|
"scripts": {
|
|
15
15
|
"build": "tsc",
|
|
16
16
|
"start": "node dist/index.js",
|
|
17
|
+
"start:http": "node dist/index.js serve",
|
|
17
18
|
"dev": "npx tsx src/index.ts",
|
|
19
|
+
"dev:http": "npx tsx src/index.ts serve",
|
|
18
20
|
"prepublishOnly": "npm run build"
|
|
19
21
|
},
|
|
20
22
|
"keywords": [
|
|
@@ -23,6 +25,8 @@
|
|
|
23
25
|
"proxy",
|
|
24
26
|
"shim",
|
|
25
27
|
"stdio",
|
|
28
|
+
"http",
|
|
29
|
+
"streamable-http",
|
|
26
30
|
"model-context-protocol",
|
|
27
31
|
"args-json",
|
|
28
32
|
"schema-transform",
|