fdic-mcp-server 1.2.2 → 1.2.4
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 +7 -20
- package/dist/server.js +7 -20
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -32,7 +32,7 @@ var import_types = require("@modelcontextprotocol/sdk/types.js");
|
|
|
32
32
|
var import_express = __toESM(require("express"));
|
|
33
33
|
|
|
34
34
|
// src/constants.ts
|
|
35
|
-
var VERSION = true ? "1.2.
|
|
35
|
+
var VERSION = true ? "1.2.4" : 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;
|
|
@@ -32802,7 +32802,9 @@ function buildAnalysisOutput(params) {
|
|
|
32802
32802
|
sort_by: params.sortBy,
|
|
32803
32803
|
sort_order: params.sortOrder,
|
|
32804
32804
|
warnings: params.warnings,
|
|
32805
|
-
insights: buildTopLevelInsights(
|
|
32805
|
+
insights: buildTopLevelInsights(
|
|
32806
|
+
params.insightComparisons ?? params.comparisons
|
|
32807
|
+
),
|
|
32806
32808
|
...buildPaginationInfo(params.analyzedCount, offset, count),
|
|
32807
32809
|
comparisons: params.comparisons
|
|
32808
32810
|
};
|
|
@@ -33093,7 +33095,7 @@ Returns concise comparison text plus structured deltas, derived metrics, and ins
|
|
|
33093
33095
|
server.server,
|
|
33094
33096
|
progressToken,
|
|
33095
33097
|
0.3,
|
|
33096
|
-
"Fetching financial time series"
|
|
33098
|
+
include_demographics ? "Fetching financial and demographic time series" : "Fetching financial time series"
|
|
33097
33099
|
);
|
|
33098
33100
|
const [financialSeriesResult, demographicsSeriesResult] = await Promise.all([
|
|
33099
33101
|
fetchSeriesRecords(
|
|
@@ -33120,14 +33122,6 @@ Returns concise comparison text plus structured deltas, derived metrics, and ins
|
|
|
33120
33122
|
...financialSeriesResult.warnings,
|
|
33121
33123
|
...demographicsSeriesResult.warnings
|
|
33122
33124
|
);
|
|
33123
|
-
if (include_demographics) {
|
|
33124
|
-
await sendProgressNotification(
|
|
33125
|
-
server.server,
|
|
33126
|
-
progressToken,
|
|
33127
|
-
0.7,
|
|
33128
|
-
"Fetching demographics time series"
|
|
33129
|
-
);
|
|
33130
|
-
}
|
|
33131
33125
|
await sendProgressNotification(
|
|
33132
33126
|
server.server,
|
|
33133
33127
|
progressToken,
|
|
@@ -33153,7 +33147,7 @@ Returns concise comparison text plus structured deltas, derived metrics, and ins
|
|
|
33153
33147
|
server.server,
|
|
33154
33148
|
progressToken,
|
|
33155
33149
|
0.3,
|
|
33156
|
-
"Fetching financial snapshots"
|
|
33150
|
+
include_demographics ? "Fetching financial and demographic snapshots" : "Fetching financial snapshots"
|
|
33157
33151
|
);
|
|
33158
33152
|
const [financialSnapshotsResult, demographicSnapshotsResult] = await Promise.all([
|
|
33159
33153
|
fetchBatchedRecordsForDates(
|
|
@@ -33178,14 +33172,6 @@ Returns concise comparison text plus structured deltas, derived metrics, and ins
|
|
|
33178
33172
|
...financialSnapshotsResult.warnings,
|
|
33179
33173
|
...demographicSnapshotsResult.warnings
|
|
33180
33174
|
);
|
|
33181
|
-
if (include_demographics) {
|
|
33182
|
-
await sendProgressNotification(
|
|
33183
|
-
server.server,
|
|
33184
|
-
progressToken,
|
|
33185
|
-
0.7,
|
|
33186
|
-
"Fetching demographic snapshots"
|
|
33187
|
-
);
|
|
33188
|
-
}
|
|
33189
33175
|
await sendProgressNotification(
|
|
33190
33176
|
server.server,
|
|
33191
33177
|
progressToken,
|
|
@@ -33230,6 +33216,7 @@ Returns concise comparison text plus structured deltas, derived metrics, and ins
|
|
|
33230
33216
|
sortOrder: sort_order,
|
|
33231
33217
|
warnings,
|
|
33232
33218
|
comparisons: ranked,
|
|
33219
|
+
insightComparisons: sortedComparisons,
|
|
33233
33220
|
limitCount: ranked.length
|
|
33234
33221
|
});
|
|
33235
33222
|
const text = truncateIfNeeded(
|
package/dist/server.js
CHANGED
|
@@ -46,7 +46,7 @@ var import_types = require("@modelcontextprotocol/sdk/types.js");
|
|
|
46
46
|
var import_express = __toESM(require("express"));
|
|
47
47
|
|
|
48
48
|
// src/constants.ts
|
|
49
|
-
var VERSION = true ? "1.2.
|
|
49
|
+
var VERSION = true ? "1.2.4" : 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;
|
|
@@ -32816,7 +32816,9 @@ function buildAnalysisOutput(params) {
|
|
|
32816
32816
|
sort_by: params.sortBy,
|
|
32817
32817
|
sort_order: params.sortOrder,
|
|
32818
32818
|
warnings: params.warnings,
|
|
32819
|
-
insights: buildTopLevelInsights(
|
|
32819
|
+
insights: buildTopLevelInsights(
|
|
32820
|
+
params.insightComparisons ?? params.comparisons
|
|
32821
|
+
),
|
|
32820
32822
|
...buildPaginationInfo(params.analyzedCount, offset, count),
|
|
32821
32823
|
comparisons: params.comparisons
|
|
32822
32824
|
};
|
|
@@ -33107,7 +33109,7 @@ Returns concise comparison text plus structured deltas, derived metrics, and ins
|
|
|
33107
33109
|
server.server,
|
|
33108
33110
|
progressToken,
|
|
33109
33111
|
0.3,
|
|
33110
|
-
"Fetching financial time series"
|
|
33112
|
+
include_demographics ? "Fetching financial and demographic time series" : "Fetching financial time series"
|
|
33111
33113
|
);
|
|
33112
33114
|
const [financialSeriesResult, demographicsSeriesResult] = await Promise.all([
|
|
33113
33115
|
fetchSeriesRecords(
|
|
@@ -33134,14 +33136,6 @@ Returns concise comparison text plus structured deltas, derived metrics, and ins
|
|
|
33134
33136
|
...financialSeriesResult.warnings,
|
|
33135
33137
|
...demographicsSeriesResult.warnings
|
|
33136
33138
|
);
|
|
33137
|
-
if (include_demographics) {
|
|
33138
|
-
await sendProgressNotification(
|
|
33139
|
-
server.server,
|
|
33140
|
-
progressToken,
|
|
33141
|
-
0.7,
|
|
33142
|
-
"Fetching demographics time series"
|
|
33143
|
-
);
|
|
33144
|
-
}
|
|
33145
33139
|
await sendProgressNotification(
|
|
33146
33140
|
server.server,
|
|
33147
33141
|
progressToken,
|
|
@@ -33167,7 +33161,7 @@ Returns concise comparison text plus structured deltas, derived metrics, and ins
|
|
|
33167
33161
|
server.server,
|
|
33168
33162
|
progressToken,
|
|
33169
33163
|
0.3,
|
|
33170
|
-
"Fetching financial snapshots"
|
|
33164
|
+
include_demographics ? "Fetching financial and demographic snapshots" : "Fetching financial snapshots"
|
|
33171
33165
|
);
|
|
33172
33166
|
const [financialSnapshotsResult, demographicSnapshotsResult] = await Promise.all([
|
|
33173
33167
|
fetchBatchedRecordsForDates(
|
|
@@ -33192,14 +33186,6 @@ Returns concise comparison text plus structured deltas, derived metrics, and ins
|
|
|
33192
33186
|
...financialSnapshotsResult.warnings,
|
|
33193
33187
|
...demographicSnapshotsResult.warnings
|
|
33194
33188
|
);
|
|
33195
|
-
if (include_demographics) {
|
|
33196
|
-
await sendProgressNotification(
|
|
33197
|
-
server.server,
|
|
33198
|
-
progressToken,
|
|
33199
|
-
0.7,
|
|
33200
|
-
"Fetching demographic snapshots"
|
|
33201
|
-
);
|
|
33202
|
-
}
|
|
33203
33189
|
await sendProgressNotification(
|
|
33204
33190
|
server.server,
|
|
33205
33191
|
progressToken,
|
|
@@ -33244,6 +33230,7 @@ Returns concise comparison text plus structured deltas, derived metrics, and ins
|
|
|
33244
33230
|
sortOrder: sort_order,
|
|
33245
33231
|
warnings,
|
|
33246
33232
|
comparisons: ranked,
|
|
33233
|
+
insightComparisons: sortedComparisons,
|
|
33247
33234
|
limitCount: ranked.length
|
|
33248
33235
|
});
|
|
33249
33236
|
const text = truncateIfNeeded(
|