@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.cjs +8 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5355,7 +5355,11 @@ var McpConverter = class _McpConverter {
|
|
|
5355
5355
|
let zodProp;
|
|
5356
5356
|
switch (prop.type) {
|
|
5357
5357
|
case "string":
|
|
5358
|
-
|
|
5358
|
+
if (prop.enum && Array.isArray(prop.enum) && prop.enum.length > 0) {
|
|
5359
|
+
zodProp = zod.z.enum(prop.enum);
|
|
5360
|
+
} else {
|
|
5361
|
+
zodProp = zod.z.string();
|
|
5362
|
+
}
|
|
5359
5363
|
break;
|
|
5360
5364
|
case "number":
|
|
5361
5365
|
zodProp = zod.z.number();
|
|
@@ -5717,13 +5721,13 @@ exports.McpRuntimeHttpClient = class McpRuntimeHttpClient {
|
|
|
5717
5721
|
baseUrl;
|
|
5718
5722
|
constructor(mcpRuntimeUrl) {
|
|
5719
5723
|
this.baseUrl = mcpRuntimeUrl || process.env.MCP_RUNTIME_URL || "http://localhost:3004";
|
|
5724
|
+
const timeout = Number(process.env.MCP_RUNTIME_TIMEOUT || 9e5);
|
|
5720
5725
|
this.httpClient = axios2__default.default.create({
|
|
5721
5726
|
baseURL: this.baseUrl,
|
|
5722
|
-
timeout
|
|
5723
|
-
// 30 seconds
|
|
5727
|
+
timeout
|
|
5724
5728
|
});
|
|
5725
5729
|
this.logger.log(
|
|
5726
|
-
`MCP Runtime HTTP Client initialized with URL: ${this.baseUrl}`
|
|
5730
|
+
`MCP Runtime HTTP Client initialized with URL: ${this.baseUrl}, timeout: ${timeout}ms`
|
|
5727
5731
|
);
|
|
5728
5732
|
}
|
|
5729
5733
|
/**
|