fdic-mcp-server 1.28.0 → 1.29.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/dist/index.js +21 -3
- package/dist/server.js +21 -3
- 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_express2 = __toESM(require("express"));
|
|
33
33
|
|
|
34
34
|
// src/constants.ts
|
|
35
|
-
var VERSION = true ? "1.
|
|
35
|
+
var VERSION = true ? "1.29.0" : 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;
|
|
@@ -32130,6 +32130,13 @@ var PeerHealthProxySummarySchema = import_zod2.z.object({
|
|
|
32130
32130
|
gaps: import_zod2.z.array(import_zod2.z.string())
|
|
32131
32131
|
})
|
|
32132
32132
|
});
|
|
32133
|
+
var DeprecationNoticeSchema = import_zod2.z.object({
|
|
32134
|
+
path: import_zod2.z.string(),
|
|
32135
|
+
status: import_zod2.z.literal("deprecated"),
|
|
32136
|
+
replacement: import_zod2.z.string(),
|
|
32137
|
+
removal_target: import_zod2.z.literal("future_major_release"),
|
|
32138
|
+
note: import_zod2.z.string()
|
|
32139
|
+
});
|
|
32133
32140
|
var FdicPeerHealthOutputSchema = import_zod2.z.object({
|
|
32134
32141
|
model: import_zod2.z.literal("public_camels_proxy_v1"),
|
|
32135
32142
|
official_status: import_zod2.z.literal("public off-site proxy, not official CAMELS"),
|
|
@@ -32143,6 +32150,7 @@ var FdicPeerHealthOutputSchema = import_zod2.z.object({
|
|
|
32143
32150
|
subject_rank: import_zod2.z.number().int().nullable(),
|
|
32144
32151
|
metrics: import_zod2.z.array(PeerHealthMetricRowSchema),
|
|
32145
32152
|
institutions: import_zod2.z.array(PeerHealthInstitutionSchema),
|
|
32153
|
+
deprecations: import_zod2.z.array(DeprecationNoticeSchema),
|
|
32146
32154
|
peer_context: import_zod2.z.object({
|
|
32147
32155
|
peer_count: import_zod2.z.number().int(),
|
|
32148
32156
|
peer_definition: import_zod2.z.string(),
|
|
@@ -35928,6 +35936,15 @@ function computePeerStats(subjectValue, peerValues, options) {
|
|
|
35928
35936
|
}
|
|
35929
35937
|
|
|
35930
35938
|
// src/tools/peerHealth.ts
|
|
35939
|
+
var PEER_HEALTH_DEPRECATIONS = [
|
|
35940
|
+
{
|
|
35941
|
+
path: "peer_context.subject_percentiles",
|
|
35942
|
+
status: "deprecated",
|
|
35943
|
+
replacement: "metrics",
|
|
35944
|
+
removal_target: "future_major_release",
|
|
35945
|
+
note: "Use metrics[] for new subject-vs-peer UI bindings. The legacy camelCase percentile map remains for backward compatibility until a coordinated major release."
|
|
35946
|
+
}
|
|
35947
|
+
];
|
|
35931
35948
|
var PEER_METRICS = [
|
|
35932
35949
|
// legacyKey preserves the original camelCase peer_context map keys for backward compatibility.
|
|
35933
35950
|
// New UI consumers should bind to the flat metrics[].name snake_case values instead.
|
|
@@ -36014,7 +36031,7 @@ Three usage modes:
|
|
|
36014
36031
|
|
|
36015
36032
|
Optionally provide cert to highlight a subject institution's position in the ranking.
|
|
36016
36033
|
|
|
36017
|
-
Output: structuredContent includes {model, official_status, report_date, institutions, metrics, peer_context, proxy_summary, proxy}. Institutions include proxy scores and name_source. When a subject cert is provided, metrics is
|
|
36034
|
+
Output: structuredContent includes {model, official_status, report_date, institutions, metrics, peer_context, proxy_summary, proxy, deprecations}. Institutions include proxy scores and name_source. When a subject cert is provided, metrics[] is the preferred subject-vs-peer array for new UI bindings and proxy_summary is a flattened subject proxy. peer_context.subject_percentiles is deprecated, remains for backward compatibility, and is targeted for removal only in a future coordinated major release. Auto-peer selection derives asset bands from report-date financials and broadens the cohort if fewer than 10 peers match.
|
|
36018
36035
|
|
|
36019
36036
|
NOTE: Public off-site analytical proxy \u2014 not official supervisory ratings.`,
|
|
36020
36037
|
inputSchema: PeerHealthInputSchema,
|
|
@@ -36412,7 +36429,8 @@ NOTE: Public off-site analytical proxy \u2014 not official supervisory ratings.`
|
|
|
36412
36429
|
subject_rank: subjectRank,
|
|
36413
36430
|
metrics: metricRows,
|
|
36414
36431
|
institutions: returned,
|
|
36415
|
-
peer_context: peerContext
|
|
36432
|
+
peer_context: peerContext,
|
|
36433
|
+
deprecations: PEER_HEALTH_DEPRECATIONS
|
|
36416
36434
|
}
|
|
36417
36435
|
};
|
|
36418
36436
|
} catch (err) {
|
package/dist/server.js
CHANGED
|
@@ -47,7 +47,7 @@ var import_types = require("@modelcontextprotocol/sdk/types.js");
|
|
|
47
47
|
var import_express2 = __toESM(require("express"));
|
|
48
48
|
|
|
49
49
|
// src/constants.ts
|
|
50
|
-
var VERSION = true ? "1.
|
|
50
|
+
var VERSION = true ? "1.29.0" : process.env.npm_package_version ?? "0.0.0-dev";
|
|
51
51
|
var FDIC_API_BASE_URL = "https://banks.data.fdic.gov/api";
|
|
52
52
|
var CHARACTER_LIMIT = 5e4;
|
|
53
53
|
var DEFAULT_FDIC_MAX_RESPONSE_BYTES = 5 * 1024 * 1024;
|
|
@@ -32145,6 +32145,13 @@ var PeerHealthProxySummarySchema = import_zod2.z.object({
|
|
|
32145
32145
|
gaps: import_zod2.z.array(import_zod2.z.string())
|
|
32146
32146
|
})
|
|
32147
32147
|
});
|
|
32148
|
+
var DeprecationNoticeSchema = import_zod2.z.object({
|
|
32149
|
+
path: import_zod2.z.string(),
|
|
32150
|
+
status: import_zod2.z.literal("deprecated"),
|
|
32151
|
+
replacement: import_zod2.z.string(),
|
|
32152
|
+
removal_target: import_zod2.z.literal("future_major_release"),
|
|
32153
|
+
note: import_zod2.z.string()
|
|
32154
|
+
});
|
|
32148
32155
|
var FdicPeerHealthOutputSchema = import_zod2.z.object({
|
|
32149
32156
|
model: import_zod2.z.literal("public_camels_proxy_v1"),
|
|
32150
32157
|
official_status: import_zod2.z.literal("public off-site proxy, not official CAMELS"),
|
|
@@ -32158,6 +32165,7 @@ var FdicPeerHealthOutputSchema = import_zod2.z.object({
|
|
|
32158
32165
|
subject_rank: import_zod2.z.number().int().nullable(),
|
|
32159
32166
|
metrics: import_zod2.z.array(PeerHealthMetricRowSchema),
|
|
32160
32167
|
institutions: import_zod2.z.array(PeerHealthInstitutionSchema),
|
|
32168
|
+
deprecations: import_zod2.z.array(DeprecationNoticeSchema),
|
|
32161
32169
|
peer_context: import_zod2.z.object({
|
|
32162
32170
|
peer_count: import_zod2.z.number().int(),
|
|
32163
32171
|
peer_definition: import_zod2.z.string(),
|
|
@@ -35943,6 +35951,15 @@ function computePeerStats(subjectValue, peerValues, options) {
|
|
|
35943
35951
|
}
|
|
35944
35952
|
|
|
35945
35953
|
// src/tools/peerHealth.ts
|
|
35954
|
+
var PEER_HEALTH_DEPRECATIONS = [
|
|
35955
|
+
{
|
|
35956
|
+
path: "peer_context.subject_percentiles",
|
|
35957
|
+
status: "deprecated",
|
|
35958
|
+
replacement: "metrics",
|
|
35959
|
+
removal_target: "future_major_release",
|
|
35960
|
+
note: "Use metrics[] for new subject-vs-peer UI bindings. The legacy camelCase percentile map remains for backward compatibility until a coordinated major release."
|
|
35961
|
+
}
|
|
35962
|
+
];
|
|
35946
35963
|
var PEER_METRICS = [
|
|
35947
35964
|
// legacyKey preserves the original camelCase peer_context map keys for backward compatibility.
|
|
35948
35965
|
// New UI consumers should bind to the flat metrics[].name snake_case values instead.
|
|
@@ -36029,7 +36046,7 @@ Three usage modes:
|
|
|
36029
36046
|
|
|
36030
36047
|
Optionally provide cert to highlight a subject institution's position in the ranking.
|
|
36031
36048
|
|
|
36032
|
-
Output: structuredContent includes {model, official_status, report_date, institutions, metrics, peer_context, proxy_summary, proxy}. Institutions include proxy scores and name_source. When a subject cert is provided, metrics is
|
|
36049
|
+
Output: structuredContent includes {model, official_status, report_date, institutions, metrics, peer_context, proxy_summary, proxy, deprecations}. Institutions include proxy scores and name_source. When a subject cert is provided, metrics[] is the preferred subject-vs-peer array for new UI bindings and proxy_summary is a flattened subject proxy. peer_context.subject_percentiles is deprecated, remains for backward compatibility, and is targeted for removal only in a future coordinated major release. Auto-peer selection derives asset bands from report-date financials and broadens the cohort if fewer than 10 peers match.
|
|
36033
36050
|
|
|
36034
36051
|
NOTE: Public off-site analytical proxy \u2014 not official supervisory ratings.`,
|
|
36035
36052
|
inputSchema: PeerHealthInputSchema,
|
|
@@ -36427,7 +36444,8 @@ NOTE: Public off-site analytical proxy \u2014 not official supervisory ratings.`
|
|
|
36427
36444
|
subject_rank: subjectRank,
|
|
36428
36445
|
metrics: metricRows,
|
|
36429
36446
|
institutions: returned,
|
|
36430
|
-
peer_context: peerContext
|
|
36447
|
+
peer_context: peerContext,
|
|
36448
|
+
deprecations: PEER_HEALTH_DEPRECATIONS
|
|
36431
36449
|
}
|
|
36432
36450
|
};
|
|
36433
36451
|
} catch (err) {
|