@blockrun/mcp 0.19.0 → 0.19.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.
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -338,8 +338,9 @@ ${parts.join("\n")}`;
|
|
|
338
338
|
}
|
|
339
339
|
function formatError(message) {
|
|
340
340
|
const msgLower = message.toLowerCase();
|
|
341
|
-
const
|
|
342
|
-
const
|
|
341
|
+
const hasStatus = (code) => new RegExp(`(^|[^0-9.])${code}([^0-9]|$)`).test(msgLower);
|
|
342
|
+
const isPaymentError = hasStatus("402") || msgLower.includes("balance") || msgLower.includes("insufficient") || msgLower.includes("payment") && !hasStatus("500");
|
|
343
|
+
const isServerError = hasStatus("500") || msgLower.includes("api error after payment");
|
|
343
344
|
let errorText = `Error: ${message}`;
|
|
344
345
|
if (isServerError) {
|
|
345
346
|
errorText += `
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockrun/mcp",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.1",
|
|
4
4
|
"mcpName": "io.github.BlockRunAI/blockrun-mcp",
|
|
5
5
|
"description": "BlockRun MCP Server - Give your AI agent web search, deep research, prediction markets, crypto data, X/Twitter intelligence. Paid via x402 micropayments.",
|
|
6
6
|
"type": "module",
|