@nannykeeper/mcp-server 1.4.0 → 1.6.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/CLAUDE.md CHANGED
@@ -7,11 +7,12 @@ Calculate nanny taxes for all 50 US states.
7
7
  - `calculate_nanny_taxes` — Full federal + state tax breakdown
8
8
  - `check_threshold` — Whether wages trigger employer tax obligations
9
9
  - `preview_payroll` — Dry-run payroll calc, returns taxes/net pay without creating a record (Starter+ required)
10
- - `run_payroll` — End-to-end payroll: create, approve, and process in a single call. Finalized response reflects real status (processing / pending_funding / completed). No UI intervention needed. (Starter+ required)
10
+ - `run_payroll` — End-to-end payroll: create, approve, and process (or schedule) in a single call. Finalized response reflects real status (`processing` / `pending_funding` / `completed` / **`scheduled`** as of 1.5.0). No UI intervention needed. (Starter+ required)
11
11
 
12
12
  ## Pay-date handling (run_payroll, preview_payroll)
13
13
  - `pay_date` is optional. When omitted, the server picks the earliest valid pay date based on ACH submission lead time (5 business days ahead, holiday-aware) and echoes it back in the response.
14
14
  - If `pay_date` is supplied and past the submission deadline, the API rejects with HTTP 400 and includes `next_valid_pay_date` in the error details for self-correction.
15
+ - **v1.5.0**: If `pay_date` is more than 5 business days in the future on a DD payroll, the response status is `scheduled`. The payroll will auto-fire at `scheduled_send_at` (5 biz days before `pay_date`). The `net_pay` and tax amounts in the response are estimates — they're recomputed at fire time if YTD or rate configs changed. `is_estimated: true` is set when this happens so callers can surface that to users.
15
16
 
16
17
  ## Confirmation flags (run_payroll)
17
18
  API callers with direct-deposit payments must tick the same safety gates the UI does:
@@ -20,6 +21,12 @@ API callers with direct-deposit payments must tick the same safety gates the UI
20
21
 
21
22
  These flags exist even for server-to-server callers as a safety measure. Agents should only set them after verifying the amounts with the user.
22
23
 
24
+ ## Voluntary set-aside (run_payroll, preview_payroll)
25
+ The optional `voluntary_set_aside: { skip?, amount? }` field overrides the employee's recurring set-aside rule for a single paycheck. The recurring rule (e.g., 2% of gross for OH municipal courtesy withholding) is configured via the dashboard — this field can only override or skip per-payroll. Omit the field to apply the rule normally.
26
+
27
+ - `voluntary_set_aside: { skip: true }` — bypass the rule for this paycheck
28
+ - `voluntary_set_aside: { amount: 5.00 }` — override the computed amount for this paycheck
29
+
23
30
  ## Setup
24
31
  Requires API key (free): https://www.nannykeeper.com/developers/keys
25
32
  Set `NANNYKEEPER_API_KEY` env var.
package/README.md CHANGED
@@ -61,10 +61,13 @@ Dry-run payroll calculation. Returns the full tax breakdown, net pay, and employ
61
61
  - `overtime_hours` (optional) — Overtime hours worked
62
62
  - `bonus` (optional) — Bonus amount
63
63
  - `other_earnings` (optional) — Other earnings
64
+ - `voluntary_set_aside` (optional, v1.6.0+) — Override or skip the employee's recurring voluntary set-aside rule for this paycheck only. Object with `skip` (boolean) or `amount` (number, $0–$9,999). The recurring rule is configured via the dashboard; omit this field to apply it normally.
64
65
 
65
66
  ### `run_payroll`
66
67
 
67
- Run payroll for a household employee **end-to-end in a single call** — creates, approves, and processes the payroll. Response reflects the finalized status (`processing`, `pending_funding`, or `completed`); no dashboard intervention needed. Requires a Starter+ subscription.
68
+ Run payroll for a household employee **end-to-end in a single call** — creates, approves, and processes (or schedules) the payroll. Response reflects the finalized status (`processing`, `pending_funding`, `completed`, or `scheduled` as of v1.5.0); no dashboard intervention needed. Requires a Starter+ subscription.
69
+
70
+ **Scheduled payrolls (v1.5.0):** When `pay_date` is more than 5 business days in the future on a direct-deposit payroll, the response status is `scheduled`. Two additional fields come back: `scheduled_send_at` (ISO UTC timestamp — when the payroll will auto-fire) and `is_estimated: true` (the returned net pay and tax amounts will be recomputed against current YTD and rate configs at fire time, so they may shift slightly). In-window pay dates fire immediately as before.
68
71
 
69
72
  **Parameters:**
70
73
  - `employer_id` (required) — Employer UUID from your NannyKeeper account
@@ -81,6 +84,7 @@ Run payroll for a household employee **end-to-end in a single call** — creates
81
84
  - `notes` (optional) — Use "catch-up" for retroactive payrolls
82
85
  - `confirm_large_payroll` (optional) — Required for direct-deposit payrolls with total net pay >$5,000 or any single net pay >$3,000
83
86
  - `confirm_ach_debit` (optional) — Required for first-ever DD payroll or when >30 days have elapsed since the last DD authorization
87
+ - `voluntary_set_aside` (optional, v1.6.0+) — Override or skip the employee's recurring voluntary set-aside rule for this paycheck only. Object with `skip` (boolean) or `amount` (number, $0–$9,999). The recurring rule is configured via the dashboard; omit this field to apply it normally.
84
88
  - `idempotency_key` (optional) — Prevent duplicate payroll creation
85
89
 
86
90
  ## Examples
package/dist/index.js CHANGED
@@ -71,6 +71,8 @@ server.tool("preview_payroll", "Preview payroll for a household employee WITHOUT
71
71
  "Same parameters as run_payroll. Requires a Starter+ subscription. " +
72
72
  "pay_date is optional — when omitted, the server picks the earliest valid pay date " +
73
73
  "based on ACH submission lead time and echoes it back in the response. " +
74
+ "v1.5.0: if pay_date is more than 5 business days in the future, the response includes " +
75
+ "is_estimated=true — those numbers will be recomputed at fire time if the user schedules. " +
74
76
  "To get your employer_id and employee_id, call the NannyKeeper API: " +
75
77
  "GET /api/v1/employees?employer_id=YOUR_ID (employer_id is visible in your dashboard URL).", {
76
78
  employer_id: z.string().uuid().describe("Employer UUID — visible in your NannyKeeper dashboard URL or from GET /api/v1/employees"),
@@ -85,6 +87,13 @@ server.tool("preview_payroll", "Preview payroll for a household employee WITHOUT
85
87
  overtime_hours: z.number().optional().describe("Overtime hours worked this period"),
86
88
  bonus: z.number().optional().describe("Bonus amount in dollars for this period"),
87
89
  other_earnings: z.number().optional().describe("Other earnings in dollars for this period"),
90
+ voluntary_set_aside: z
91
+ .object({
92
+ skip: z.boolean().optional().describe("Skip the active set-aside rule for this paycheck only"),
93
+ amount: z.number().min(0).max(9999).optional().describe("Override the rule's computed amount for this paycheck only"),
94
+ })
95
+ .optional()
96
+ .describe("Override or skip the employee's voluntary post-tax set-aside rule for this paycheck only. The recurring rule itself is configured via the dashboard. Omit this field to apply the rule normally."),
88
97
  }, {
89
98
  title: "Preview Payroll",
90
99
  readOnlyHint: true,
@@ -99,12 +108,16 @@ server.tool("preview_payroll", "Preview payroll for a household employee WITHOUT
99
108
  server.tool("run_payroll", "Run payroll for a household employee end-to-end in a single call. Creates the " +
100
109
  "record, runs all tax calculations (federal, state, FICA, FUTA) with year-to-date " +
101
110
  "tracking, approves the payroll, and kicks off payment processing. " +
102
- "Returns the finalized status (processing/pending_funding/completed), full tax breakdown, " +
111
+ "Returns the finalized status (processing/pending_funding/completed/scheduled) plus full tax breakdown, " +
103
112
  "net pay, employer costs, and the payroll ID for reference. " +
104
113
  "Requires a Starter+ subscription. " +
105
114
  "pay_date is optional — when omitted, the server picks the earliest valid pay date " +
106
115
  "based on ACH submission lead time and echoes it back. If supplied and past the " +
107
116
  "submission deadline, the request is rejected with next_valid_pay_date in the error. " +
117
+ "If pay_date is more than 5 business days in the future on a DD payroll, status=scheduled " +
118
+ "and the payroll will auto-fire at scheduled_send_at (5 biz days before pay_date). " +
119
+ "Scheduled responses include is_estimated=true — numbers may shift slightly at fire time " +
120
+ "if YTD or rate configs change between approve and fire. " +
108
121
  "Direct deposit callers: set confirm_large_payroll=true for totals >$5,000 or any single " +
109
122
  "net pay >$3,000; set confirm_ach_debit=true for first-time DD or if no DD in 30 days. " +
110
123
  "Tip: use preview_payroll first to validate your request and see results before committing. " +
@@ -135,6 +148,13 @@ server.tool("run_payroll", "Run payroll for a household employee end-to-end in a
135
148
  .boolean()
136
149
  .optional()
137
150
  .describe("Required for first-time direct-deposit payroll or when the last DD authorization is >30 days old."),
151
+ voluntary_set_aside: z
152
+ .object({
153
+ skip: z.boolean().optional().describe("Skip the active set-aside rule for this paycheck only"),
154
+ amount: z.number().min(0).max(9999).optional().describe("Override the rule's computed amount for this paycheck only"),
155
+ })
156
+ .optional()
157
+ .describe("Override or skip the employee's voluntary post-tax set-aside rule for this paycheck only. The recurring rule itself is configured via the dashboard. Omit this field to apply the rule normally."),
138
158
  idempotency_key: z
139
159
  .string()
140
160
  .optional()
@@ -15,4 +15,8 @@ export declare function executePreviewPayroll(args: {
15
15
  overtime_hours?: number;
16
16
  bonus?: number;
17
17
  other_earnings?: number;
18
+ voluntary_set_aside?: {
19
+ skip?: boolean;
20
+ amount?: number;
21
+ };
18
22
  }): Promise<string>;
@@ -33,6 +33,9 @@ export async function executePreviewPayroll(args) {
33
33
  overtime_hours: args.overtime_hours,
34
34
  bonus: args.bonus,
35
35
  other_earnings: args.other_earnings,
36
+ ...(args.voluntary_set_aside
37
+ ? { voluntary_set_aside: args.voluntary_set_aside }
38
+ : {}),
36
39
  },
37
40
  ],
38
41
  }),
@@ -19,5 +19,9 @@ export declare function executeRunPayroll(args: {
19
19
  notes?: string;
20
20
  confirm_large_payroll?: boolean;
21
21
  confirm_ach_debit?: boolean;
22
+ voluntary_set_aside?: {
23
+ skip?: boolean;
24
+ amount?: number;
25
+ };
22
26
  idempotency_key?: string;
23
27
  }): Promise<string>;
@@ -38,6 +38,9 @@ export async function executeRunPayroll(args) {
38
38
  bonus: args.bonus,
39
39
  other_earnings: args.other_earnings,
40
40
  payment_method: args.payment_method || "check",
41
+ ...(args.voluntary_set_aside
42
+ ? { voluntary_set_aside: args.voluntary_set_aside }
43
+ : {}),
41
44
  },
42
45
  ],
43
46
  notes: args.notes,
package/manifest.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": "0.3",
3
3
  "name": "nannykeeper",
4
- "version": "1.4.0",
4
+ "version": "1.6.0",
5
5
  "description": "Calculate US household employer (nanny) taxes for all 50 states. Preview and run payroll, generate W-2s and pay stubs. 4 tools: calculate, threshold, preview, run.",
6
6
  "author": {
7
7
  "name": "imaznation",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nannykeeper/mcp-server",
3
- "version": "1.4.0",
3
+ "version": "1.6.0",
4
4
  "mcpName": "com.nannykeeper.www/mcp-server",
5
5
  "description": "MCP server for calculating US household employer (nanny) taxes. All 50 states. Works with Claude, ChatGPT, and any MCP-compatible AI agent.",
6
6
  "keywords": [