mcp-remote 0.1.32 → 0.1.34
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 +1 -1
- package/dist/{chunk-K6EVCR35.js → chunk-AWBQ5KVS.js} +7 -4
- package/dist/client.js +1 -1
- package/dist/proxy.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11872,7 +11872,7 @@ var Client = class extends Protocol {
|
|
|
11872
11872
|
};
|
|
11873
11873
|
|
|
11874
11874
|
// package.json
|
|
11875
|
-
var version = "0.1.
|
|
11875
|
+
var version = "0.1.33";
|
|
11876
11876
|
|
|
11877
11877
|
// node_modules/.pnpm/pkce-challenge@5.0.0/node_modules/pkce-challenge/dist/index.node.js
|
|
11878
11878
|
var crypto;
|
|
@@ -14068,8 +14068,11 @@ async function connectToRemoteServer(client, serverUrl, authProvider, headers, a
|
|
|
14068
14068
|
log(`Connected to remote server using ${transport.constructor.name}`);
|
|
14069
14069
|
return transport;
|
|
14070
14070
|
} catch (error) {
|
|
14071
|
-
|
|
14072
|
-
|
|
14071
|
+
const isStreamableHTTPError = error instanceof StreamableHTTPError;
|
|
14072
|
+
const httpStatusCode = isStreamableHTTPError ? error.code : null;
|
|
14073
|
+
const shouldFallbackOnError = shouldAttemptFallback2 && error instanceof Error && (httpStatusCode === 404 || httpStatusCode === 405 || error.message.includes("405") || error.message.includes("Method Not Allowed") || error.message.includes("404") || error.message.includes("Not Found"));
|
|
14074
|
+
if (shouldFallbackOnError) {
|
|
14075
|
+
log(`Received error (status ${httpStatusCode ?? "unknown"}): ${error.message}`);
|
|
14073
14076
|
if (recursionReasons.has(REASON_TRANSPORT_FALLBACK)) {
|
|
14074
14077
|
const errorMessage = `Already attempted transport fallback. Giving up.`;
|
|
14075
14078
|
log(errorMessage);
|
|
@@ -14195,7 +14198,7 @@ function setupOAuthCallbackServerWithLongPoll(options) {
|
|
|
14195
14198
|
`);
|
|
14196
14199
|
options.events.emit("auth-code-received", code);
|
|
14197
14200
|
});
|
|
14198
|
-
const server = app.listen(options.port, () => {
|
|
14201
|
+
const server = app.listen(options.port, "127.0.0.1", () => {
|
|
14199
14202
|
log(`OAuth callback server running at http://127.0.0.1:${options.port}`);
|
|
14200
14203
|
});
|
|
14201
14204
|
const waitForAuthCode = () => {
|
package/dist/client.js
CHANGED
package/dist/proxy.js
CHANGED