@markcolabs/mcp 0.3.0 → 0.4.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.
Files changed (114) hide show
  1. package/dist/index.d.ts +9 -35
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +52 -285
  4. package/dist/index.js.map +1 -1
  5. package/package.json +7 -12
  6. package/LICENSE-API.md +0 -111
  7. package/dist/disclaimers/ymyl.d.ts +0 -16
  8. package/dist/disclaimers/ymyl.d.ts.map +0 -1
  9. package/dist/disclaimers/ymyl.js +0 -20
  10. package/dist/disclaimers/ymyl.js.map +0 -1
  11. package/dist/engines/compoundInterest.d.ts +0 -75
  12. package/dist/engines/compoundInterest.d.ts.map +0 -1
  13. package/dist/engines/compoundInterest.js +0 -74
  14. package/dist/engines/compoundInterest.js.map +0 -1
  15. package/dist/engines/data/federalTax.d.ts +0 -47
  16. package/dist/engines/data/federalTax.d.ts.map +0 -1
  17. package/dist/engines/data/federalTax.js +0 -111
  18. package/dist/engines/data/federalTax.js.map +0 -1
  19. package/dist/engines/data/irs2026.d.ts +0 -137
  20. package/dist/engines/data/irs2026.d.ts.map +0 -1
  21. package/dist/engines/data/irs2026.js +0 -113
  22. package/dist/engines/data/irs2026.js.map +0 -1
  23. package/dist/engines/data/rmd2026.d.ts +0 -59
  24. package/dist/engines/data/rmd2026.d.ts.map +0 -1
  25. package/dist/engines/data/rmd2026.js +0 -75
  26. package/dist/engines/data/rmd2026.js.map +0 -1
  27. package/dist/engines/data/ssa.d.ts +0 -39
  28. package/dist/engines/data/ssa.d.ts.map +0 -1
  29. package/dist/engines/data/ssa.js +0 -55
  30. package/dist/engines/data/ssa.js.map +0 -1
  31. package/dist/engines/data/stateTax2026.d.ts +0 -114
  32. package/dist/engines/data/stateTax2026.d.ts.map +0 -1
  33. package/dist/engines/data/stateTax2026.js +0 -348
  34. package/dist/engines/data/stateTax2026.js.map +0 -1
  35. package/dist/engines/hsa.d.ts +0 -110
  36. package/dist/engines/hsa.d.ts.map +0 -1
  37. package/dist/engines/hsa.js +0 -83
  38. package/dist/engines/hsa.js.map +0 -1
  39. package/dist/engines/ira.d.ts +0 -115
  40. package/dist/engines/ira.d.ts.map +0 -1
  41. package/dist/engines/ira.js +0 -127
  42. package/dist/engines/ira.js.map +0 -1
  43. package/dist/engines/mortgage.d.ts +0 -70
  44. package/dist/engines/mortgage.d.ts.map +0 -1
  45. package/dist/engines/mortgage.js +0 -60
  46. package/dist/engines/mortgage.js.map +0 -1
  47. package/dist/engines/paycheck.d.ts +0 -128
  48. package/dist/engines/paycheck.d.ts.map +0 -1
  49. package/dist/engines/paycheck.js +0 -142
  50. package/dist/engines/paycheck.js.map +0 -1
  51. package/dist/engines/retirement401k.d.ts +0 -109
  52. package/dist/engines/retirement401k.d.ts.map +0 -1
  53. package/dist/engines/retirement401k.js +0 -130
  54. package/dist/engines/retirement401k.js.map +0 -1
  55. package/dist/engines/rmd.d.ts +0 -107
  56. package/dist/engines/rmd.d.ts.map +0 -1
  57. package/dist/engines/rmd.js +0 -109
  58. package/dist/engines/rmd.js.map +0 -1
  59. package/dist/engines/rothConversion.d.ts +0 -124
  60. package/dist/engines/rothConversion.d.ts.map +0 -1
  61. package/dist/engines/rothConversion.js +0 -145
  62. package/dist/engines/rothConversion.js.map +0 -1
  63. package/dist/engines/socialSecurity.d.ts +0 -63
  64. package/dist/engines/socialSecurity.d.ts.map +0 -1
  65. package/dist/engines/socialSecurity.js +0 -139
  66. package/dist/engines/socialSecurity.js.map +0 -1
  67. package/dist/envelope.d.ts +0 -76
  68. package/dist/envelope.d.ts.map +0 -1
  69. package/dist/envelope.js +0 -34
  70. package/dist/envelope.js.map +0 -1
  71. package/dist/shared/bounds.d.ts +0 -133
  72. package/dist/shared/bounds.d.ts.map +0 -1
  73. package/dist/shared/bounds.js +0 -206
  74. package/dist/shared/bounds.js.map +0 -1
  75. package/dist/tools/compoundInterest.d.ts +0 -48
  76. package/dist/tools/compoundInterest.d.ts.map +0 -1
  77. package/dist/tools/compoundInterest.js +0 -107
  78. package/dist/tools/compoundInterest.js.map +0 -1
  79. package/dist/tools/hsa.d.ts +0 -58
  80. package/dist/tools/hsa.d.ts.map +0 -1
  81. package/dist/tools/hsa.js +0 -129
  82. package/dist/tools/hsa.js.map +0 -1
  83. package/dist/tools/ira.d.ts +0 -55
  84. package/dist/tools/ira.d.ts.map +0 -1
  85. package/dist/tools/ira.js +0 -117
  86. package/dist/tools/ira.js.map +0 -1
  87. package/dist/tools/mortgage.d.ts +0 -51
  88. package/dist/tools/mortgage.d.ts.map +0 -1
  89. package/dist/tools/mortgage.js +0 -112
  90. package/dist/tools/mortgage.js.map +0 -1
  91. package/dist/tools/paycheck.d.ts +0 -61
  92. package/dist/tools/paycheck.d.ts.map +0 -1
  93. package/dist/tools/paycheck.js +0 -135
  94. package/dist/tools/paycheck.js.map +0 -1
  95. package/dist/tools/retirement401k.d.ts +0 -85
  96. package/dist/tools/retirement401k.d.ts.map +0 -1
  97. package/dist/tools/retirement401k.js +0 -141
  98. package/dist/tools/retirement401k.js.map +0 -1
  99. package/dist/tools/rmd.d.ts +0 -60
  100. package/dist/tools/rmd.d.ts.map +0 -1
  101. package/dist/tools/rmd.js +0 -130
  102. package/dist/tools/rmd.js.map +0 -1
  103. package/dist/tools/rothConversion.d.ts +0 -66
  104. package/dist/tools/rothConversion.d.ts.map +0 -1
  105. package/dist/tools/rothConversion.js +0 -141
  106. package/dist/tools/rothConversion.js.map +0 -1
  107. package/dist/tools/socialSecurity.d.ts +0 -51
  108. package/dist/tools/socialSecurity.d.ts.map +0 -1
  109. package/dist/tools/socialSecurity.js +0 -117
  110. package/dist/tools/socialSecurity.js.map +0 -1
  111. package/dist/util/zod-to-json-schema.d.ts +0 -28
  112. package/dist/util/zod-to-json-schema.d.ts.map +0 -1
  113. package/dist/util/zod-to-json-schema.js +0 -98
  114. package/dist/util/zod-to-json-schema.js.map +0 -1
@@ -1,141 +0,0 @@
1
- /**
2
- * MCP tool wrapper for `dc.calculator.rothConversion.taxImpact`.
3
- *
4
- * Per ADR-0039 § 1: tool name locked.
5
- * Per ADR-0039 § 2: Zod input with bounds from shared/bounds.ts; rate as
6
- * whole-number Percent; enum for filing status.
7
- * Per ADR-0039 § 3: returns ToolResult<RothConversionTaxImpactResult>.
8
- * Per ADR-0039 § 4: errors funnel through ToolError.
9
- *
10
- * Scope per S141 Risk #2: SINGLE-CONVERSION tax impact only. Multi-year
11
- * conversion-ladder optimization is a future tool. State tax and IRMAA tier
12
- * impact are out of scope (documented in the tool description).
13
- */
14
- import { z } from "zod";
15
- import { taxImpact, ENGINE_VERSION, } from "../engines/rothConversion.js";
16
- import { ROTH_CONVERSION_BOUNDS } from "../shared/bounds.js";
17
- import { FEDERAL_FILING_STATUS } from "../shared/bounds.js";
18
- import { YMYL_DISCLAIMER } from "../disclaimers/ymyl.js";
19
- import { makeResult, makeError, } from "../envelope.js";
20
- /** Locked tool name per ADR-0039 § 1. */
21
- export const TOOL_NAME = "dc.calculator.rothConversion.taxImpact";
22
- /** Methodology pointer — ADR-0039 § 3. */
23
- const METHODOLOGY = {
24
- url: "https://www.digitalcalculator.info/roth-conversion-calculator/",
25
- version: "2026-05-27",
26
- };
27
- /**
28
- * Zod input schema. Bounds come from shared/bounds.ts. Filing status uses
29
- * the paycheck-engine FEDERAL_FILING_STATUS enum (single | married |
30
- * marriedSeparate | headOfHousehold) for consistency with other federal-tax
31
- * tools.
32
- */
33
- export const RothConversionTaxImpactInputSchema = z.object({
34
- conversionAmount: z
35
- .number()
36
- .min(ROTH_CONVERSION_BOUNDS.MIN_CONVERSION)
37
- .max(ROTH_CONVERSION_BOUNDS.MAX_CONVERSION)
38
- .describe("Conversion amount in USD."),
39
- age: z
40
- .number()
41
- .int()
42
- .min(ROTH_CONVERSION_BOUNDS.MIN_AGE)
43
- .max(ROTH_CONVERSION_BOUNDS.MAX_AGE)
44
- .describe("Current age. Drives the Roth 5-year-rule flag (applies if age < 59.5)."),
45
- filingStatus: z
46
- .enum(FEDERAL_FILING_STATUS)
47
- .describe("Federal filing status: single | married | marriedSeparate | headOfHousehold."),
48
- currentTaxableIncome: z
49
- .number()
50
- .min(ROTH_CONVERSION_BOUNDS.MIN_TAXABLE_INCOME)
51
- .max(ROTH_CONVERSION_BOUNDS.MAX_TAXABLE_INCOME)
52
- .describe("Current federal taxable income BEFORE adding the conversion, USD. Used as the lower bound for the incremental-tax bracket walk."),
53
- retirementMarginalRatePercent: z
54
- .number()
55
- .min(ROTH_CONVERSION_BOUNDS.MIN_RETIREMENT_RATE_PERCENT)
56
- .max(ROTH_CONVERSION_BOUNDS.MAX_RETIREMENT_RATE_PERCENT)
57
- .optional()
58
- .describe("Optional expected retirement marginal federal tax rate, whole-number percent (e.g., 12 for 12%). When omitted, breakEvenYears returns null."),
59
- expectedReturnPercent: z
60
- .number()
61
- .min(ROTH_CONVERSION_BOUNDS.MIN_RETURN_PERCENT)
62
- .max(ROTH_CONVERSION_BOUNDS.MAX_RETURN_PERCENT)
63
- .optional()
64
- .describe("Optional real annual return on the converted Roth balance, whole-number percent. Defaults to 7. Used only for the break-even calculation."),
65
- });
66
- /** Tool description used in mcp.tools/list. */
67
- export const TOOL_DESCRIPTION = "Compute the federal income tax impact of a SINGLE Roth conversion using " +
68
- "2026 IRS brackets. Returns the incremental tax owed, the top marginal " +
69
- "bracket the conversion pushes you into, the effective rate, a Roth 5-year-" +
70
- "rule flag, and optional break-even years if you provide your expected " +
71
- "retirement marginal rate. SCOPE LIMITS: single-conversion only (multi-year " +
72
- "optimization is a future tool); state tax and IRMAA tier impact are NOT " +
73
- "modeled — caller is responsible for those.";
74
- /**
75
- * Execute the tool. Validation + engine call wrapped in the standard envelope.
76
- *
77
- * Tagged-union return:
78
- * { ok: true, value: ToolResult<...> }
79
- * { ok: false, error: ToolError }
80
- *
81
- * The MCP SDK adapter at src/index.ts maps `ok=false` to `isError: true`.
82
- */
83
- export function execute(rawInput) {
84
- const parsed = RothConversionTaxImpactInputSchema.safeParse(rawInput);
85
- if (!parsed.success) {
86
- const first = parsed.error.issues[0];
87
- return {
88
- ok: false,
89
- error: makeError({
90
- code: "INPUT_VALIDATION",
91
- message: first?.message ?? "Invalid input.",
92
- field: first?.path.join(".") || undefined,
93
- retriable: false,
94
- }),
95
- };
96
- }
97
- const input = parsed.data;
98
- let payload;
99
- try {
100
- payload = taxImpact(input);
101
- }
102
- catch (err) {
103
- return {
104
- ok: false,
105
- error: makeError({
106
- code: "INTERNAL",
107
- message: "Engine error computing Roth conversion tax impact.",
108
- retriable: false,
109
- }),
110
- };
111
- }
112
- // Sanity check: NaN / non-finite results are an internal failure.
113
- // breakEvenYears may legitimately be null (no retirement rate given) or
114
- // Infinity (mathematically unreachable), both of which we allow.
115
- const beOk = payload.breakEvenYears === null ||
116
- payload.breakEvenYears === Infinity ||
117
- Number.isFinite(payload.breakEvenYears);
118
- if (!Number.isFinite(payload.taxOwed) ||
119
- !Number.isFinite(payload.marginalRateOnConversion) ||
120
- !Number.isFinite(payload.effectiveRateOnConversion) ||
121
- !beOk) {
122
- return {
123
- ok: false,
124
- error: makeError({
125
- code: "INTERNAL",
126
- message: "Roth conversion engine produced a non-finite result.",
127
- retriable: false,
128
- }),
129
- };
130
- }
131
- return {
132
- ok: true,
133
- value: makeResult({
134
- result: payload,
135
- methodology: METHODOLOGY,
136
- engineVersion: ENGINE_VERSION,
137
- disclaimer: YMYL_DISCLAIMER,
138
- }),
139
- };
140
- }
141
- //# sourceMappingURL=rothConversion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rothConversion.js","sourceRoot":"","sources":["../../src/tools/rothConversion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,SAAS,EACT,cAAc,GAEf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,qBAAqB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E,wEAAwE;IACxE,iEAAiE;IACjE,MAAM,IAAI,GACR,OAAO,CAAC,cAAc,KAAK,IAAI;QAC/B,OAAO,CAAC,cAAc,KAAK,QAAQ;QACnC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IAC1C,IACE,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC;QACjC,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,wBAAwB,CAAC;QAClD,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,yBAAyB,CAAC;QACnD,CAAC,IAAI,EACL,CAAC;QACD,OAAO;YACL,EAAE,EAAE,KAAK;YACT,KAAK,EAAE,SAAS,CAAC;gBACf,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE,sDAAsD;gBAC/D,SAAS,EAAE,KAAK;aACjB,CAAC;SACH,CAAC;IACJ,CAAC;IAED,OAAO;QACL,EAAE,EAAE,IAAI;QACR,KAAK,EAAE,UAAU,CAAC;YAChB,MAAM,EAAE,OAAO;YACf,WAAW,EAAE,WAAW;YACxB,aAAa,EAAE,cAAc;YAC7B,UAAU,EAAE,eAAe;SAC5B,CAAC;KACH,CAAC;AACJ,CAAC"}
@@ -1,51 +0,0 @@
1
- /**
2
- * MCP tool wrapper for `dc.calculator.socialSecurity.estimatedBenefit`.
3
- *
4
- * Per ADR-0039 § 1: tool name is locked.
5
- * Per ADR-0039 § 2: Zod input schema with bounds from shared/bounds.ts.
6
- * Per ADR-0039 § 3: returns ToolResult<SocialSecurityEstimateResult>.
7
- * Per ADR-0039 § 4: failures funnel through ToolError; tools never throw.
8
- *
9
- * YMYL note: SS benefits depend on a person's specific 35-year earnings
10
- * history; this engine uses the SSA-public bend-points formula on a
11
- * simplified earnings approximation (`estimateAIME`). For an authoritative
12
- * estimate, callers should be directed to https://www.ssa.gov/myaccount/.
13
- * The methodology link covers the simplified-AIME caveat.
14
- */
15
- import { z } from "zod";
16
- import { type SocialSecurityEstimateResult } from "../engines/socialSecurity.js";
17
- import { type ToolResult, type ToolError } from "../envelope.js";
18
- /** Locked tool name per ADR-0039 § 1 (corrected v0.2.0 per ADR-0041 D2). */
19
- export declare const TOOL_NAME = "dc.calculator.socialSecurity.estimatedBenefit";
20
- export declare const SocialSecurityEstimateInputSchema: z.ZodObject<{
21
- birthYear: z.ZodNumber;
22
- currentEarnings: z.ZodNumber;
23
- claimAge: z.ZodNumber;
24
- yearsWorked: z.ZodOptional<z.ZodNumber>;
25
- lifeExpectancy: z.ZodOptional<z.ZodNumber>;
26
- }, "strip", z.ZodTypeAny, {
27
- birthYear: number;
28
- currentEarnings: number;
29
- claimAge: number;
30
- yearsWorked?: number | undefined;
31
- lifeExpectancy?: number | undefined;
32
- }, {
33
- birthYear: number;
34
- currentEarnings: number;
35
- claimAge: number;
36
- yearsWorked?: number | undefined;
37
- lifeExpectancy?: number | undefined;
38
- }>;
39
- export type SocialSecurityEstimateToolInput = z.infer<typeof SocialSecurityEstimateInputSchema>;
40
- export declare const TOOL_DESCRIPTION: string;
41
- /**
42
- * Execute the tool.
43
- */
44
- export declare function execute(rawInput: unknown): {
45
- ok: true;
46
- value: ToolResult<SocialSecurityEstimateResult>;
47
- } | {
48
- ok: false;
49
- error: ToolError;
50
- };
51
- //# sourceMappingURL=socialSecurity.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"socialSecurity.d.ts","sourceRoot":"","sources":["../../src/tools/socialSecurity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGL,KAAK,4BAA4B,EAClC,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAGL,KAAK,UAAU,EACf,KAAK,SAAS,EACf,MAAM,gBAAgB,CAAC;AAExB,4EAA4E;AAC5E,eAAO,MAAM,SAAS,kDAAkD,CAAC;AAOzE,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;EAsC5C,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,iCAAiC,CACzC,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAMmC,CAAC;AAEjE;;GAEG;AACH,wBAAgB,OAAO,CACrB,QAAQ,EAAE,OAAO,GAEf;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,UAAU,CAAC,4BAA4B,CAAC,CAAA;CAAE,GAC7D;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CAAE,CAuDlC"}
@@ -1,117 +0,0 @@
1
- /**
2
- * MCP tool wrapper for `dc.calculator.socialSecurity.estimatedBenefit`.
3
- *
4
- * Per ADR-0039 § 1: tool name is locked.
5
- * Per ADR-0039 § 2: Zod input schema with bounds from shared/bounds.ts.
6
- * Per ADR-0039 § 3: returns ToolResult<SocialSecurityEstimateResult>.
7
- * Per ADR-0039 § 4: failures funnel through ToolError; tools never throw.
8
- *
9
- * YMYL note: SS benefits depend on a person's specific 35-year earnings
10
- * history; this engine uses the SSA-public bend-points formula on a
11
- * simplified earnings approximation (`estimateAIME`). For an authoritative
12
- * estimate, callers should be directed to https://www.ssa.gov/myaccount/.
13
- * The methodology link covers the simplified-AIME caveat.
14
- */
15
- import { z } from "zod";
16
- import { estimate, ENGINE_VERSION, } from "../engines/socialSecurity.js";
17
- import { SOCIAL_SECURITY_BOUNDS } from "../shared/bounds.js";
18
- import { YMYL_DISCLAIMER } from "../disclaimers/ymyl.js";
19
- import { makeResult, makeError, } from "../envelope.js";
20
- /** Locked tool name per ADR-0039 § 1 (corrected v0.2.0 per ADR-0041 D2). */
21
- export const TOOL_NAME = "dc.calculator.socialSecurity.estimatedBenefit";
22
- const METHODOLOGY = {
23
- url: "https://www.digitalcalculator.info/social-security-calculator/methodology/",
24
- version: "2026-05-09",
25
- };
26
- export const SocialSecurityEstimateInputSchema = z.object({
27
- birthYear: z
28
- .number()
29
- .int()
30
- .min(SOCIAL_SECURITY_BOUNDS.MIN_BIRTH_YEAR)
31
- .max(SOCIAL_SECURITY_BOUNDS.MAX_BIRTH_YEAR)
32
- .describe("Birth year. SSA bend-point lookups support eligibility years (birthYear + 62) from 2014 onward."),
33
- currentEarnings: z
34
- .number()
35
- .min(SOCIAL_SECURITY_BOUNDS.MIN_CURRENT_EARNINGS)
36
- .max(SOCIAL_SECURITY_BOUNDS.MAX_CURRENT_EARNINGS)
37
- .describe("Current/final annual earnings in USD."),
38
- claimAge: z
39
- .number()
40
- .min(SOCIAL_SECURITY_BOUNDS.MIN_CLAIM_AGE)
41
- .max(SOCIAL_SECURITY_BOUNDS.MAX_CLAIM_AGE)
42
- .describe("Age at which to start claiming benefits (62-70). Earlier = reduced; later = delayed credit."),
43
- yearsWorked: z
44
- .number()
45
- .int()
46
- .min(SOCIAL_SECURITY_BOUNDS.MIN_YEARS_WORKED)
47
- .max(SOCIAL_SECURITY_BOUNDS.MAX_YEARS_WORKED)
48
- .optional()
49
- .describe("Years of work earning SS credits. Defaults to 35 (the SSA averaging window)."),
50
- lifeExpectancy: z
51
- .number()
52
- .min(SOCIAL_SECURITY_BOUNDS.MIN_LIFE_EXPECTANCY)
53
- .max(SOCIAL_SECURITY_BOUNDS.MAX_LIFE_EXPECTANCY)
54
- .optional()
55
- .describe("Life expectancy assumption for lifetime benefit projection. Defaults to 85."),
56
- });
57
- export const TOOL_DESCRIPTION = "Estimate Social Security retirement benefits using the SSA bend-point " +
58
- "formula and a simplified AIME approximation. Returns monthly benefit at " +
59
- "Full Retirement Age, the adjusted monthly benefit at the chosen claim " +
60
- "age (early reduction or delayed credit), and a lifetime projection to " +
61
- "the assumed life expectancy. For an authoritative estimate based on your " +
62
- "actual earnings history, see https://www.ssa.gov/myaccount/.";
63
- /**
64
- * Execute the tool.
65
- */
66
- export function execute(rawInput) {
67
- const parsed = SocialSecurityEstimateInputSchema.safeParse(rawInput);
68
- if (!parsed.success) {
69
- const first = parsed.error.issues[0];
70
- return {
71
- ok: false,
72
- error: makeError({
73
- code: "INPUT_VALIDATION",
74
- message: first?.message ?? "Invalid input.",
75
- field: first?.path.join(".") || undefined,
76
- retriable: false,
77
- }),
78
- };
79
- }
80
- const input = parsed.data;
81
- let payload;
82
- try {
83
- payload = estimate(input);
84
- }
85
- catch (err) {
86
- return {
87
- ok: false,
88
- error: makeError({
89
- code: "INTERNAL",
90
- message: "Engine error computing Social Security estimate.",
91
- retriable: false,
92
- }),
93
- };
94
- }
95
- if (!Number.isFinite(payload.monthlyBenefitAtFRA) ||
96
- !Number.isFinite(payload.adjustedMonthlyBenefit) ||
97
- !Number.isFinite(payload.lifetimeBenefitProjection)) {
98
- return {
99
- ok: false,
100
- error: makeError({
101
- code: "INTERNAL",
102
- message: "Social Security engine produced a non-finite result.",
103
- retriable: false,
104
- }),
105
- };
106
- }
107
- return {
108
- ok: true,
109
- value: makeResult({
110
- result: payload,
111
- methodology: METHODOLOGY,
112
- engineVersion: ENGINE_VERSION,
113
- disclaimer: YMYL_DISCLAIMER,
114
- }),
115
- };
116
- }
117
- //# sourceMappingURL=socialSecurity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"socialSecurity.js","sourceRoot":"","sources":["../../src/tools/socialSecurity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,QAAQ,EACR,cAAc,GAEf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EACL,UAAU,EACV,SAAS,GAGV,MAAM,gBAAgB,CAAC;AAExB,4EAA4E;AAC5E,MAAM,CAAC,MAAM,SAAS,GAAG,+CAA+C,CAAC;AAEzE,MAAM,WAAW,GAAG;IAClB,GAAG,EAAE,4EAA4E;IACjF,OAAO,EAAE,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YAChB,MAAM,EAAE,OAAO;YACf,WAAW,EAAE,WAAW;YACxB,aAAa,EAAE,cAAc;YAC7B,UAAU,EAAE,eAAe;SAC5B,CAAC;KACH,CAAC;AACJ,CAAC"}
@@ -1,28 +0,0 @@
1
- /**
2
- * Minimal Zod → JSON Schema converter for the MCP `tools/list` `inputSchema` field.
3
- *
4
- * The MCP SDK expects a JSON Schema object on each tool descriptor. Rather than
5
- * pulling in the `zod-to-json-schema` npm package (extra dep, infrequent updates),
6
- * this file implements the small subset we need for v1 input shapes:
7
- * - z.object({...})
8
- * - z.number() with .min()/.max()/.int()
9
- * - z.enum([...])
10
- * - .optional() / .describe() metadata
11
- *
12
- * If a schema feature added later isn't supported here, extend this util — or
13
- * swap in the `zod-to-json-schema` package.
14
- */
15
- import { type ZodTypeAny } from "zod";
16
- interface JsonSchema {
17
- type?: string;
18
- properties?: Record<string, JsonSchema>;
19
- required?: string[];
20
- description?: string;
21
- minimum?: number;
22
- maximum?: number;
23
- enum?: string[];
24
- additionalProperties?: boolean;
25
- }
26
- export declare function zodToJsonSchema(schema: ZodTypeAny): JsonSchema;
27
- export {};
28
- //# sourceMappingURL=zod-to-json-schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zod-to-json-schema.d.ts","sourceRoot":"","sources":["../../src/util/zod-to-json-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAK,KAAK,UAAU,EAAE,MAAM,KAAK,CAAC;AAEzC,UAAU,UAAU;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACxC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAE9D"}
@@ -1,98 +0,0 @@
1
- /**
2
- * Minimal Zod → JSON Schema converter for the MCP `tools/list` `inputSchema` field.
3
- *
4
- * The MCP SDK expects a JSON Schema object on each tool descriptor. Rather than
5
- * pulling in the `zod-to-json-schema` npm package (extra dep, infrequent updates),
6
- * this file implements the small subset we need for v1 input shapes:
7
- * - z.object({...})
8
- * - z.number() with .min()/.max()/.int()
9
- * - z.enum([...])
10
- * - .optional() / .describe() metadata
11
- *
12
- * If a schema feature added later isn't supported here, extend this util — or
13
- * swap in the `zod-to-json-schema` package.
14
- */
15
- import { z } from "zod";
16
- export function zodToJsonSchema(schema) {
17
- return convert(schema);
18
- }
19
- function convert(schema) {
20
- const def = schema._def;
21
- const description = def?.description;
22
- // ZodOptional / ZodDefault unwrapping (we still mark the field as optional in
23
- // the parent object; here we just convert the inner type).
24
- if (schema instanceof z.ZodOptional) {
25
- return { ...convert(def.innerType), description };
26
- }
27
- if (schema instanceof z.ZodDefault) {
28
- return { ...convert(def.innerType), description };
29
- }
30
- // ZodEffects wraps schemas built with .refine() / .transform() / .preprocess().
31
- // Cross-field rules can't be expressed in JSON Schema, but the runtime check
32
- // still fires inside the tool's safeParse(), so unwrapping to the inner schema
33
- // exposes a valid JSON Schema to MCP clients without losing validation.
34
- if (schema instanceof z.ZodEffects) {
35
- return { ...convert(def.schema), description };
36
- }
37
- if (schema instanceof z.ZodObject) {
38
- const shape = schema.shape;
39
- const properties = {};
40
- const required = [];
41
- for (const [key, child] of Object.entries(shape)) {
42
- const childSchema = child;
43
- properties[key] = convert(childSchema);
44
- const isOptional = childSchema instanceof z.ZodOptional ||
45
- childSchema instanceof z.ZodDefault;
46
- if (!isOptional)
47
- required.push(key);
48
- }
49
- const out = {
50
- type: "object",
51
- properties,
52
- additionalProperties: false,
53
- };
54
- if (required.length)
55
- out.required = required;
56
- if (description)
57
- out.description = description;
58
- return out;
59
- }
60
- if (schema instanceof z.ZodNumber) {
61
- const out = { type: "number" };
62
- // Iterate Zod's check list to extract min/max/int.
63
- const checks = def.checks ?? [];
64
- for (const c of checks) {
65
- if (c.kind === "min" && typeof c.value === "number")
66
- out.minimum = c.value;
67
- if (c.kind === "max" && typeof c.value === "number")
68
- out.maximum = c.value;
69
- if (c.kind === "int")
70
- out.type = "integer";
71
- }
72
- if (description)
73
- out.description = description;
74
- return out;
75
- }
76
- if (schema instanceof z.ZodEnum) {
77
- return {
78
- type: "string",
79
- enum: [...schema.options],
80
- ...(description ? { description } : {}),
81
- };
82
- }
83
- if (schema instanceof z.ZodString) {
84
- return {
85
- type: "string",
86
- ...(description ? { description } : {}),
87
- };
88
- }
89
- if (schema instanceof z.ZodBoolean) {
90
- return {
91
- type: "boolean",
92
- ...(description ? { description } : {}),
93
- };
94
- }
95
- // Fallback — accept anything; widen as needed in future sprints.
96
- return {};
97
- }
98
- //# sourceMappingURL=zod-to-json-schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zod-to-json-schema.js","sourceRoot":"","sources":["../../src/util/zod-to-json-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,CAAC,EAAmB,MAAM,KAAK,CAAC;AAazC,MAAM,UAAU,eAAe,CAAC,MAAkB;IAChD,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;AACzB,CAAC;AAED,SAAS,OAAO,CAAC,MAAkB;IACjC,MAAM,GAAG,GAAS,MAAc,CAAC,IAAI,CAAC;IACtC,MAAM,WAAW,GAAuB,GAAG,EAAE,WAAW,CAAC;IAEzD,8EAA8E;IAC9E,2DAA2D;IAC3D,IAAI,MAAM,YAAY,CAAC,CAAC,WAAW,EAAE,CAAC;QACpC,OAAO,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,SAAuB,CAAC,EAAE,WAAW,EAAE,CAAC;IAClE,CAAC;IACD,IA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