mcp-proxy 6.4.6 → 6.5.1
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/README.md +37 -1
- package/dist/bin/mcp-proxy.mjs +15 -1
- package/dist/bin/mcp-proxy.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{stdio-BGZrO8Rz.mjs → stdio-DN-u_q7a.mjs} +5 -1
- package/dist/{stdio-BGZrO8Rz.mjs.map → stdio-DN-u_q7a.mjs.map} +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/bin/mcp-proxy.ts +23 -0
- package/src/startHTTPServer.ts +8 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as NEVER, S as _coercedNumber, T as AuthenticationMiddleware, _ as looseObject, a as startHTTPServer, b as string, c as LATEST_PROTOCOL_VERSION, d as isJSONRPCResultResponse, f as ZodNumber, g as literal, h as boolean, i as Client, l as isInitializedNotification, m as array, n as serializeMessage, o as proxyServer, p as any, r as Server, s as JSONRPCMessageSchema, t as ReadBuffer, u as isJSONRPCRequest, v as number$1, w as InMemoryEventStore, x as url, y as object } from "./stdio-
|
|
1
|
+
import { C as NEVER, S as _coercedNumber, T as AuthenticationMiddleware, _ as looseObject, a as startHTTPServer, b as string, c as LATEST_PROTOCOL_VERSION, d as isJSONRPCResultResponse, f as ZodNumber, g as literal, h as boolean, i as Client, l as isInitializedNotification, m as array, n as serializeMessage, o as proxyServer, p as any, r as Server, s as JSONRPCMessageSchema, t as ReadBuffer, u as isJSONRPCRequest, v as number$1, w as InMemoryEventStore, x as url, y as object } from "./stdio-DN-u_q7a.mjs";
|
|
2
2
|
import process from "node:process";
|
|
3
3
|
|
|
4
4
|
//#region node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/compat.js
|
|
@@ -16140,6 +16140,10 @@ const handleStreamRequest = async ({ activeTransports, authenticate, authMiddlew
|
|
|
16140
16140
|
const sessionId = req.headers["mcp-session-id"];
|
|
16141
16141
|
const activeTransport = sessionId ? activeTransports[sessionId] : void 0;
|
|
16142
16142
|
if (!sessionId) {
|
|
16143
|
+
if (stateless) {
|
|
16144
|
+
res.writeHead(405, { Allow: "POST" }).end("Method Not Allowed");
|
|
16145
|
+
return true;
|
|
16146
|
+
}
|
|
16143
16147
|
res.writeHead(400).end("No sessionId");
|
|
16144
16148
|
return true;
|
|
16145
16149
|
}
|
|
@@ -24811,4 +24815,4 @@ function serializeMessage(message) {
|
|
|
24811
24815
|
|
|
24812
24816
|
//#endregion
|
|
24813
24817
|
export { NEVER as C, __toESM as D, __commonJSMin as E, _coercedNumber as S, AuthenticationMiddleware as T, looseObject as _, startHTTPServer as a, string as b, LATEST_PROTOCOL_VERSION as c, isJSONRPCResultResponse as d, ZodNumber as f, literal as g, boolean as h, Client as i, isInitializedNotification as l, array as m, serializeMessage as n, proxyServer as o, any as p, Server as r, JSONRPCMessageSchema as s, ReadBuffer as t, isJSONRPCRequest as u, number as v, InMemoryEventStore as w, url as x, object as y };
|
|
24814
|
-
//# sourceMappingURL=stdio-
|
|
24818
|
+
//# sourceMappingURL=stdio-DN-u_q7a.mjs.map
|