@flutchai/flutch-sdk 0.7.5 → 0.7.6

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 CHANGED
@@ -6844,6 +6844,7 @@ ${paramDescriptions.join("\n")}`;
6844
6844
  }
6845
6845
  }
6846
6846
  };
6847
+ var MCP_RUNTIME_TIMEOUT_MS = Number(process.env.MCP_RUNTIME_TIMEOUT_MS) || 2e4;
6847
6848
  var McpToolFilter = class _McpToolFilter {
6848
6849
  static {
6849
6850
  __name(this, "McpToolFilter");
@@ -6877,7 +6878,7 @@ var McpToolFilter = class _McpToolFilter {
6877
6878
  if (context) requestBody.context = context;
6878
6879
  this.logger.debug(`[DEBUG] Request body: ${JSON.stringify(requestBody)}`);
6879
6880
  const response = await axios2__default.default.post(`${this.mcpRuntimeUrl}/tools/schemas`, requestBody, {
6880
- timeout: 5e3,
6881
+ timeout: MCP_RUNTIME_TIMEOUT_MS,
6881
6882
  headers: {
6882
6883
  "Content-Type": "application/json"
6883
6884
  }
@@ -6920,7 +6921,7 @@ var McpToolFilter = class _McpToolFilter {
6920
6921
  async getAllTools() {
6921
6922
  try {
6922
6923
  const response = await axios2__default.default.get(`${this.mcpRuntimeUrl}/tools/list`, {
6923
- timeout: 5e3
6924
+ timeout: MCP_RUNTIME_TIMEOUT_MS
6924
6925
  });
6925
6926
  const allTools = Array.isArray(response.data) ? response.data : [];
6926
6927
  this.logger.debug(`Retrieved ${allTools.length} total MCP tools`);
@@ -6967,7 +6968,7 @@ var McpToolFilter = class _McpToolFilter {
6967
6968
  async getAvailableToolNames() {
6968
6969
  try {
6969
6970
  const response = await axios2__default.default.get(`${this.mcpRuntimeUrl}/tools/list`, {
6970
- timeout: 5e3
6971
+ timeout: MCP_RUNTIME_TIMEOUT_MS
6971
6972
  });
6972
6973
  const tools = Array.isArray(response.data) ? response.data : [];
6973
6974
  return tools.map((tool) => tool.name);