@fundtracer/mcp 1.0.5 → 1.0.6

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/fundtracer-mcp.js CHANGED
@@ -258,7 +258,7 @@ function err(message) {
258
258
  return { content: [{ type: "text", text: message }], isError: true };
259
259
  }
260
260
  function api() {
261
- const key = process.env.FUNDTRACER_MCP_API_KEY || "";
261
+ const key = _mcpCtx?.apiKey || process.env.FUNDTRACER_MCP_API_KEY || "";
262
262
  const headers = {
263
263
  Authorization: `Bearer ${key}`,
264
264
  "x-auth-token": key,
@@ -514,7 +514,8 @@ async function validateWithFirestore(rawKey) {
514
514
  return {
515
515
  userId: data.userId,
516
516
  tier: data.tier || "free",
517
- apiKeyPrefix: rawKey.substring(0, 15)
517
+ apiKeyPrefix: rawKey.substring(0, 15),
518
+ apiKey: rawKey
518
519
  };
519
520
  }
520
521
  const { hashAPIKey } = await import("../models/apiKey.js");
@@ -533,7 +534,8 @@ async function validateWithFirestore(rawKey) {
533
534
  return {
534
535
  userId: data.userId,
535
536
  tier: data.tier || "free",
536
- apiKeyPrefix: rawKey.substring(0, 15)
537
+ apiKeyPrefix: rawKey.substring(0, 15),
538
+ apiKey: rawKey
537
539
  };
538
540
  }
539
541
  }
@@ -558,7 +560,8 @@ async function validateViaHttp(rawKey) {
558
560
  return {
559
561
  userId: data.userId,
560
562
  tier: data.tier || "free",
561
- apiKeyPrefix: rawKey.substring(0, 15)
563
+ apiKeyPrefix: rawKey.substring(0, 15),
564
+ apiKey: rawKey
562
565
  };
563
566
  }
564
567
  async function trackUsage(userId, rawKey) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundtracer/mcp",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "FundTracer MCP Server — blockchain analysis for AI assistants (Claude Desktop, Claude Code, Cursor, etc.)",
5
5
  "type": "module",
6
6
  "main": "fundtracer-mcp.js",