@flutchai/flutch-sdk 0.1.13 → 0.1.15

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
@@ -5326,7 +5326,11 @@ var McpConverter = class _McpConverter {
5326
5326
  let zodProp;
5327
5327
  switch (prop.type) {
5328
5328
  case "string":
5329
- zodProp = z.string();
5329
+ if (prop.enum && Array.isArray(prop.enum) && prop.enum.length > 0) {
5330
+ zodProp = z.enum(prop.enum);
5331
+ } else {
5332
+ zodProp = z.string();
5333
+ }
5330
5334
  break;
5331
5335
  case "number":
5332
5336
  zodProp = z.number();
@@ -5688,13 +5692,13 @@ var McpRuntimeHttpClient = class {
5688
5692
  baseUrl;
5689
5693
  constructor(mcpRuntimeUrl) {
5690
5694
  this.baseUrl = mcpRuntimeUrl || process.env.MCP_RUNTIME_URL || "http://localhost:3004";
5695
+ const timeout = Number(process.env.MCP_RUNTIME_TIMEOUT || 9e5);
5691
5696
  this.httpClient = axios2.create({
5692
5697
  baseURL: this.baseUrl,
5693
- timeout: 3e4
5694
- // 30 seconds
5698
+ timeout
5695
5699
  });
5696
5700
  this.logger.log(
5697
- `MCP Runtime HTTP Client initialized with URL: ${this.baseUrl}`
5701
+ `MCP Runtime HTTP Client initialized with URL: ${this.baseUrl}, timeout: ${timeout}ms`
5698
5702
  );
5699
5703
  }
5700
5704
  /**