@pipeworx/mcp-businesswire 0.1.2 → 0.1.3

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/README.md CHANGED
@@ -4,7 +4,7 @@ Live press releases from Business Wire's all-news RSS channel — headline,
4
4
  dateline, publish time, excerpt and Business Wire's own release id, newest
5
5
  first, across roughly the last seven days of the whole wire.
6
6
 
7
- Part of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 1851+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
7
+ Part of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 1875+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
8
8
 
9
9
  ## Tools
10
10
 
@@ -107,7 +107,7 @@ directly, instead of just this one's:
107
107
  }
108
108
  ```
109
109
 
110
- Both URLs reach the same gateway and the same 1851+ data sources. The
110
+ Both URLs reach the same gateway and the same 1875+ data sources. The
111
111
  only difference is which pack's tools are listed **directly**; `ask_pipeworx`
112
112
  reaches all of them from either one.
113
113
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipeworx/mcp-businesswire",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Business Wire MCP — press releases from Business Wire's all-news RSS feed.",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -26,7 +26,7 @@
26
26
  "@cloudflare/workers-types": "^4.20260405.1"
27
27
  },
28
28
  "pipeworx": {
29
- "sourceHash": "v1-eeb7bf3beee12f1318a2dd34d8c5f61815587670bbb99b098e8bffecba99dcc1",
30
- "sourceCommit": "5d8d3a58a457b8464c117515d81b8b6ecb53fdfb"
29
+ "sourceHash": "v1-52a0d0222a963555b011acf6fa51ea2150c80ccb03dd70375e89dec26166438d",
30
+ "sourceCommit": "70a4e816a9195016cd4af92dca2019485d4c3865"
31
31
  }
32
32
  }
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "io.github.pipeworx-io/businesswire",
4
4
  "title": "Businesswire",
5
5
  "description": "Business Wire MCP — press releases from Business Wire's all-news RSS feed.",
6
- "version": "0.1.2",
6
+ "version": "0.1.3",
7
7
  "websiteUrl": "https://pipeworx.io/packs/businesswire",
8
8
  "repository": {
9
9
  "url": "https://github.com/pipeworx-io/mcp-businesswire",
package/src/index.ts CHANGED
@@ -530,12 +530,28 @@ async function httpErrorMessage(res: Response, name: string): Promise<string> {
530
530
  // internal-host-class.ts; no-op for every third-party upstream, which is why
531
531
  // this touches 481 packs' error text and changes none of it.
532
532
  return markInternalOrigin(
533
- `${name}: ${res.status}${detailSuffix(await readDetail(res))}`,
533
+ `${name}: ${res.status}${detailSuffix(await readDetail(res))}${responseHints(res)}`,
534
534
  res.url,
535
535
  res.status,
536
536
  );
537
537
  }
538
538
 
539
+ /**
540
+ * Facts about a FAILED response that live in its headers, not its body, appended
541
+ * so the gateway's classifier (which only ever sees this string) can tell a limit
542
+ * from a wall from a refusal (fleet #3477). Both are standard, both are absent on
543
+ * almost every response, and neither is invented: `Retry-After` is the server
544
+ * saying "come back later" (the one thing that makes a 403 a throttle), and
545
+ * Cloudflare marks a bot challenge with `cf-mitigated: challenge`.
546
+ */
547
+ function responseHints(res: Response): string {
548
+ const hints: string[] = [];
549
+ const retryAfter = res.headers.get('retry-after');
550
+ if (retryAfter) hints.push(`retry-after: ${retryAfter.slice(0, 40)}`);
551
+ if ((res.headers.get('cf-mitigated') ?? '').toLowerCase() === 'challenge') hints.push('Cloudflare bot challenge (cf-mitigated: challenge)');
552
+ return hints.length ? ` (${hints.join('; ')})` : '';
553
+ }
554
+
539
555
  /**
540
556
  * Just the upstream's own explanation — no name, no status.
541
557
  *
package/src/server.ts CHANGED
@@ -10,7 +10,7 @@ import pack from './index.js';
10
10
 
11
11
 
12
12
  const server = new Server(
13
- { name: '@pipeworx/mcp-businesswire', version: '0.1.2' },
13
+ { name: '@pipeworx/mcp-businesswire', version: '0.1.3' },
14
14
  { capabilities: { tools: {} } },
15
15
  );
16
16