@etsquare/mcp-server-sec 0.5.0 → 0.5.1

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.
@@ -32,7 +32,11 @@ export class ETSquareClient {
32
32
  async request(path, init) {
33
33
  const url = `${this.baseUrl}${path}`;
34
34
  try {
35
- const res = await fetch(url, init);
35
+ const controller = new AbortController();
36
+ const timeoutMs = parseInt(process.env.ETSQUARE_FETCH_TIMEOUT_MS || '600000', 10);
37
+ const timer = setTimeout(() => controller.abort(), timeoutMs);
38
+ const res = await fetch(url, { ...init, signal: controller.signal });
39
+ clearTimeout(timer);
36
40
  return this.handleResponse(res);
37
41
  }
38
42
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsquare/mcp-server-sec",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "description": "MCP server for Claude Desktop: search SEC filing sections, financial statements, insider trades, institutional ownership, earnings actuals, XBRL metrics, and company lookup.",
6
6
  "main": "dist/index.js",