fdic-mcp-server 1.23.1 → 1.23.2

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
@@ -32,7 +32,7 @@ var import_types = require("@modelcontextprotocol/sdk/types.js");
32
32
  var import_express2 = __toESM(require("express"));
33
33
 
34
34
  // src/constants.ts
35
- var VERSION = true ? "1.23.1" : process.env.npm_package_version ?? "0.0.0-dev";
35
+ var VERSION = true ? "1.23.2" : process.env.npm_package_version ?? "0.0.0-dev";
36
36
  var FDIC_API_BASE_URL = "https://banks.data.fdic.gov/api";
37
37
  var CHARACTER_LIMIT = 5e4;
38
38
  var DEFAULT_FDIC_MAX_RESPONSE_BYTES = 5 * 1024 * 1024;
@@ -99,7 +99,7 @@ var DEFAULT_CHAT_RATE_LIMIT_MAX_REQUESTS = 10;
99
99
  var DEFAULT_CHAT_RATE_LIMIT_WINDOW_MS = 6e4;
100
100
  var DEFAULT_CHAT_MAX_MESSAGES = 20;
101
101
  var DEFAULT_CHAT_MAX_MESSAGE_LENGTH = 500;
102
- var DEFAULT_CHAT_MAX_TOOL_ROUNDS = 5;
102
+ var DEFAULT_CHAT_MAX_TOOL_ROUNDS = 15;
103
103
  var DEFAULT_CHAT_GENERATE_RETRIES = 2;
104
104
  var genAIModulePromise;
105
105
  function loadGenAIModule() {
@@ -343,7 +343,10 @@ async function runConversation(ai, model, functionDeclarations, server, history)
343
343
  }
344
344
  return { history: contents, reply };
345
345
  }
346
- throw new Error("Chat tool-call limit exceeded");
346
+ return {
347
+ history: contents,
348
+ reply: "I used several tools but couldn\u2019t reach a final answer. Try a more specific question."
349
+ };
347
350
  }
348
351
  function sweepIdleChatSessions(sessions, idleTimeoutMs, now) {
349
352
  for (const [sessionId, session] of sessions.entries()) {
@@ -432,8 +435,7 @@ function createChatRouter(options) {
432
435
  error
433
436
  });
434
437
  const message = error instanceof Error ? error.message : "Failed to process chat request";
435
- const status = message === "Chat tool-call limit exceeded" ? 502 : 500;
436
- res.status(status).json({ error: message });
438
+ res.status(500).json({ error: message });
437
439
  }
438
440
  });
439
441
  return router;
package/dist/server.js CHANGED
@@ -46,7 +46,7 @@ var import_types = require("@modelcontextprotocol/sdk/types.js");
46
46
  var import_express2 = __toESM(require("express"));
47
47
 
48
48
  // src/constants.ts
49
- var VERSION = true ? "1.23.1" : process.env.npm_package_version ?? "0.0.0-dev";
49
+ var VERSION = true ? "1.23.2" : process.env.npm_package_version ?? "0.0.0-dev";
50
50
  var FDIC_API_BASE_URL = "https://banks.data.fdic.gov/api";
51
51
  var CHARACTER_LIMIT = 5e4;
52
52
  var DEFAULT_FDIC_MAX_RESPONSE_BYTES = 5 * 1024 * 1024;
@@ -113,7 +113,7 @@ var DEFAULT_CHAT_RATE_LIMIT_MAX_REQUESTS = 10;
113
113
  var DEFAULT_CHAT_RATE_LIMIT_WINDOW_MS = 6e4;
114
114
  var DEFAULT_CHAT_MAX_MESSAGES = 20;
115
115
  var DEFAULT_CHAT_MAX_MESSAGE_LENGTH = 500;
116
- var DEFAULT_CHAT_MAX_TOOL_ROUNDS = 5;
116
+ var DEFAULT_CHAT_MAX_TOOL_ROUNDS = 15;
117
117
  var DEFAULT_CHAT_GENERATE_RETRIES = 2;
118
118
  var genAIModulePromise;
119
119
  function loadGenAIModule() {
@@ -357,7 +357,10 @@ async function runConversation(ai, model, functionDeclarations, server, history)
357
357
  }
358
358
  return { history: contents, reply };
359
359
  }
360
- throw new Error("Chat tool-call limit exceeded");
360
+ return {
361
+ history: contents,
362
+ reply: "I used several tools but couldn\u2019t reach a final answer. Try a more specific question."
363
+ };
361
364
  }
362
365
  function sweepIdleChatSessions(sessions, idleTimeoutMs, now) {
363
366
  for (const [sessionId, session] of sessions.entries()) {
@@ -446,8 +449,7 @@ function createChatRouter(options) {
446
449
  error
447
450
  });
448
451
  const message = error instanceof Error ? error.message : "Failed to process chat request";
449
- const status = message === "Chat tool-call limit exceeded" ? 502 : 500;
450
- res.status(status).json({ error: message });
452
+ res.status(500).json({ error: message });
451
453
  }
452
454
  });
453
455
  return router;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fdic-mcp-server",
3
- "version": "1.23.1",
3
+ "version": "1.23.2",
4
4
  "description": "MCP server for the FDIC BankFind Suite API",
5
5
  "mcpName": "io.github.jflamb/fdic-mcp-server",
6
6
  "main": "dist/server.js",