mcp-remote 0.1.27 → 0.1.29

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.
@@ -11872,7 +11872,7 @@ var Client = class extends Protocol {
11872
11872
  };
11873
11873
 
11874
11874
  // package.json
11875
- var version = "0.1.27";
11875
+ var version = "0.1.29";
11876
11876
 
11877
11877
  // node_modules/.pnpm/pkce-challenge@5.0.0/node_modules/pkce-challenge/dist/index.node.js
11878
11878
  var crypto;
@@ -13645,7 +13645,7 @@ import crypto2 from "crypto";
13645
13645
  import fs2 from "fs";
13646
13646
  import { readFile, rm } from "fs/promises";
13647
13647
  import path2 from "path";
13648
- import { fetch as fetch2, setGlobalDispatcher, EnvHttpProxyAgent } from "undici";
13648
+ import { EnvHttpProxyAgent, fetch as fetch2, Headers as Headers2, setGlobalDispatcher } from "undici";
13649
13649
  var REASON_AUTH_NEEDED = "authentication-needed";
13650
13650
  var REASON_TRANSPORT_FALLBACK = "falling-back-to-alternate-transport";
13651
13651
  var pid = process.pid;
@@ -13808,7 +13808,7 @@ async function connectToRemoteServer(client, serverUrl, authProvider, headers, a
13808
13808
  (tokens) => fetch2(url2, {
13809
13809
  ...init,
13810
13810
  headers: {
13811
- ...init?.headers,
13811
+ ...init?.headers instanceof Headers2 ? Object.fromEntries(init?.headers.entries()) : init?.headers || {},
13812
13812
  ...headers,
13813
13813
  ...tokens?.access_token ? { Authorization: `Bearer ${tokens.access_token}` } : {},
13814
13814
  Accept: "text/event-stream"
package/dist/client.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  parseCommandLineArgs,
12
12
  setupSignalHandlers,
13
13
  version
14
- } from "./chunk-MNGQEN7H.js";
14
+ } from "./chunk-AKJME7CQ.js";
15
15
 
16
16
  // src/client.ts
17
17
  import { EventEmitter } from "events";
package/dist/proxy.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  mcpProxy,
10
10
  parseCommandLineArgs,
11
11
  setupSignalHandlers
12
- } from "./chunk-MNGQEN7H.js";
12
+ } from "./chunk-AKJME7CQ.js";
13
13
 
14
14
  // src/proxy.ts
15
15
  import { EventEmitter } from "events";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-remote",
3
- "version": "0.1.27",
3
+ "version": "0.1.29",
4
4
  "description": "Remote proxy for Model Context Protocol, allowing local-only clients to connect to remote servers using oAuth",
5
5
  "keywords": [
6
6
  "mcp",