@aiwerk/mcp-bridge 2.7.1 → 2.7.2
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.
|
@@ -153,15 +153,12 @@ export class StdioTransport extends BaseTransport {
|
|
|
153
153
|
this.process.once("error", onProcessError);
|
|
154
154
|
this.process.once("exit", onProcessExit);
|
|
155
155
|
timeout = setTimeout(() => {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
// Ignore kill errors and reject with timeout
|
|
163
|
-
}
|
|
164
|
-
settleReject(timeoutError);
|
|
156
|
+
// Many MCP servers (e.g. firecrawl) don't write anything to stdout until
|
|
157
|
+
// they receive the client's `initialize` request. Instead of killing the
|
|
158
|
+
// process, resolve optimistically — initializeProtocol() will validate
|
|
159
|
+
// the connection by sending `initialize` and waiting for a response.
|
|
160
|
+
this.logger.info(`[mcp-bridge] No stdout data within ${connectionTimeout}ms — process still running, proceeding to initialize`);
|
|
161
|
+
settleResolve();
|
|
165
162
|
}, connectionTimeout);
|
|
166
163
|
});
|
|
167
164
|
}
|