nuwax-mcp-stdio-proxy 1.4.2 → 1.4.3

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/index.js CHANGED
@@ -6809,7 +6809,9 @@ var logError = (msg) => log("ERROR", msg);
6809
6809
 
6810
6810
  // src/types.ts
6811
6811
  function isSseEntry(entry) {
6812
- return "url" in entry && entry.transport === "sse";
6812
+ if (!("url" in entry)) return false;
6813
+ const e = entry;
6814
+ return e.transport === "sse" || !e.transport && /\/sse(?:\?|$)/i.test(e.url);
6813
6815
  }
6814
6816
  function isStreamableEntry(entry) {
6815
6817
  return "url" in entry && typeof entry.url === "string" && !isSseEntry(entry);
@@ -23761,7 +23763,7 @@ var StdioServerTransport = class {
23761
23763
 
23762
23764
  // src/constants.ts
23763
23765
  var PKG_NAME = "nuwax-mcp-stdio-proxy";
23764
- var PKG_VERSION = "1.4.2";
23766
+ var PKG_VERSION = "1.4.3";
23765
23767
 
23766
23768
  // src/shared.ts
23767
23769
  async function discoverTools(client) {
package/dist/types.js CHANGED
@@ -2,7 +2,11 @@
2
2
  * Types for MCP server configuration
3
3
  */
4
4
  export function isSseEntry(entry) {
5
- return 'url' in entry && entry.transport === 'sse';
5
+ if (!('url' in entry))
6
+ return false;
7
+ const e = entry;
8
+ // Explicit transport: 'sse' or URL path contains /sse (auto-detect)
9
+ return e.transport === 'sse' || (!e.transport && /\/sse(?:\?|$)/i.test(e.url));
6
10
  }
7
11
  export function isStreamableEntry(entry) {
8
12
  return ('url' in entry &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuwax-mcp-stdio-proxy",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "TypeScript MCP proxy — aggregates multiple MCP servers (stdio + streamable-http + SSE) with convert & proxy modes",
5
5
  "type": "module",
6
6
  "bin": {