@arcadia-finance/mcp-server 0.3.0 → 0.3.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 CHANGED
@@ -58,12 +58,12 @@ if (transportMode === "http") {
58
58
  return;
59
59
  res.status(204).end();
60
60
  });
61
- const rateLimit = (await import("express-rate-limit")).default;
61
+ const { default: rateLimit, ipKeyGenerator } = await import("express-rate-limit");
62
62
  const rpm = parseInt(process.env.RATE_LIMIT_RPM ?? "60", 10);
63
63
  app.use("/mcp", rateLimit({
64
64
  windowMs: 60_000,
65
65
  max: rpm,
66
- keyGenerator: (req) => req.headers["mcp-session-id"] || req.ip || "unknown",
66
+ keyGenerator: (req) => req.headers["mcp-session-id"] || ipKeyGenerator(req.ip ?? "") || "unknown",
67
67
  standardHeaders: true,
68
68
  legacyHeaders: false,
69
69
  }));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arcadia-finance/mcp-server",
3
3
  "mcpName": "io.github.arcadia-finance/mcp-server",
4
- "version": "0.3.0",
4
+ "version": "0.3.1",
5
5
  "description": "MCP server for Arcadia Finance. Manage concentrated liquidity positions with leverage, automated rebalancing, and yield optimization on Base and Unichain.",
6
6
  "type": "module",
7
7
  "license": "AGPL-3.0",
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "io.github.arcadia-finance/mcp-server",
4
4
  "title": "Arcadia Finance",
5
5
  "description": "Manage Uniswap and Aerodrome liquidity positions with automated rebalancing and leverage.",
6
- "version": "0.3.0",
6
+ "version": "0.3.1",
7
7
  "websiteUrl": "https://arcadia.finance",
8
8
  "repository": {
9
9
  "url": "https://github.com/arcadia-finance/mcp-server",
@@ -13,7 +13,7 @@
13
13
  {
14
14
  "registryType": "npm",
15
15
  "identifier": "@arcadia-finance/mcp-server",
16
- "version": "0.3.0",
16
+ "version": "0.3.1",
17
17
  "transport": {
18
18
  "type": "stdio"
19
19
  },