wopee-mcp 1.24.1 → 1.25.0

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.
@@ -53,7 +53,7 @@ export async function generateAIDataFile(input) {
53
53
  const parsedInput = GenerateAIDataInputSchema.parse(generateAIDataInput);
54
54
  const generationResult = await requestClient(query, {
55
55
  input: parsedInput,
56
- });
56
+ }, { timeoutMs: 5 * 60 * 1000 });
57
57
  if (!generationResult?.[dataKey])
58
58
  return {
59
59
  content: [
@@ -22,7 +22,8 @@ function classifyGraphQLErrors(errors) {
22
22
  }
23
23
  return new RequestError(combined, "GRAPHQL_ERROR");
24
24
  }
25
- export const requestClient = async (query, variables) => {
25
+ const DEFAULT_TIMEOUT_MS = 30000;
26
+ export const requestClient = async (query, variables, options) => {
26
27
  const { WOPEE_API_URL, WOPEE_API_KEY, WOPEE_AUTH_TOKEN } = getConfig();
27
28
  if (!WOPEE_API_KEY && !WOPEE_AUTH_TOKEN) {
28
29
  throw new RequestError("WOPEE_API_KEY or WOPEE_AUTH_TOKEN must be set", "AUTH_ERROR");
@@ -42,7 +43,7 @@ export const requestClient = async (query, variables) => {
42
43
  method: "POST",
43
44
  headers,
44
45
  body: JSON.stringify({ query, variables }),
45
- signal: AbortSignal.timeout(30000),
46
+ signal: AbortSignal.timeout(options?.timeoutMs ?? DEFAULT_TIMEOUT_MS),
46
47
  });
47
48
  }
48
49
  catch (error) {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "bin": {
5
5
  "wopee-mcp": "./build/index.js"
6
6
  },
7
- "version": "1.24.1",
7
+ "version": "1.25.0",
8
8
  "mcpName": "io.github.Wopee-io/wopee-mcp",
9
9
  "description": "Wopee.io MCP server for autonomous testing platform",
10
10
  "main": "./build/index.js",