asrai-mcp 0.5.8 → 0.6.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asrai-mcp",
3
- "version": "0.5.8",
3
+ "version": "0.6.0",
4
4
  "description": "Asrai crypto analysis MCP server — pay-per-use via x402 on Base. Zero install: just npx.",
5
5
  "keywords": [
6
6
  "mcp",
package/src/server.js CHANGED
@@ -71,7 +71,7 @@ async function handleTool(name, args) {
71
71
  export function createServer() {
72
72
  const server = new Server(
73
73
  { name: "asrai", version: "0.5.5" },
74
- { capabilities: { tools: {} }, requestHandlerTimeout: 120_000 }
74
+ { capabilities: { tools: {} } }
75
75
  );
76
76
 
77
77
  server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: TOOLS }));
package/src/tools.js CHANGED
@@ -78,13 +78,13 @@ async function _post(path, body) {
78
78
  }
79
79
 
80
80
  async function _gather(...paths) {
81
- // Sequential parallel x402 payments from same wallet can conflict
82
- const results = {};
83
- for (const path of paths) {
84
- try { results[path] = await _get(path); }
85
- catch (e) { results[path] = String(e); }
86
- }
87
- return results;
81
+ const entries = await Promise.all(
82
+ paths.map(async (path) => {
83
+ try { return [path, await _get(path)]; }
84
+ catch (e) { return [path, String(e)]; }
85
+ })
86
+ );
87
+ return Object.fromEntries(entries);
88
88
  }
89
89
 
90
90
  // ── Shared handlers (from tool-endpoints.js) ──────────────────────────────────