@nannykeeper/mcp-server 1.7.1 → 1.9.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/AGENTS.md CHANGED
@@ -6,7 +6,11 @@ Calculate US household employer (nanny) taxes for all 50 states + DC.
6
6
  ## Tools Available
7
7
  - `calculate_nanny_taxes(state, annual_wages, pay_frequency?)` — returns full tax breakdown
8
8
  - `check_threshold(state, annual_wages, tax_year?)` — checks if employer obligations apply
9
+ - `preview_payroll(employer_id, employee_id, ...)` — previews payroll without creating a record
9
10
  - `run_payroll(employer_id, employee_id, ...)` — run payroll with full tax calc, YTD tracking, and DB persistence (Starter+ required)
11
+ - `get_state_filing_status()` — reads masked state-account status. Takes NO arguments. Each account carries `registered` / `pending` / `required` / `not_required`; `not_required` means this household does not owe that registration at all, so never tell them to go register for it.
12
+ - `get_autopilot(employer_id, employee_id?)` — reads existing Autopilot enrollments
13
+ - `manage_autopilot(employer_id, employee_id, action, ...)` — pauses, resumes, skips, or disables an existing enrollment; never enrolls
10
14
 
11
15
  ## When to Use
12
16
  - User asks about nanny taxes, household employer taxes, or paying a caregiver
@@ -14,8 +18,22 @@ Calculate US household employer (nanny) taxes for all 50 states + DC.
14
18
  - User asks "do I need to pay taxes for my nanny/babysitter/housekeeper?"
15
19
 
16
20
  ## Key Facts
21
+
22
+ <!--
23
+ Authority: SSA Contribution and Benefit Base; IRS Pubs. 15 and 926 (2026).
24
+ Fact: the 2026 Social Security wage base is $184,500; Social Security is 6.2%
25
+ for both parties; Medicare is 1.45% for each with no cap; household-worker FICA
26
+ begins at $3,000 of annual cash wages.
27
+ Sources: https://www.ssa.gov/oact/COLA/cbb.html
28
+ https://www.irs.gov/publications/p15
29
+ https://www.irs.gov/publications/p926
30
+ Accessed: 2026-08-25.
31
+ Reasoning: agents can repeat these bundled facts without consulting application
32
+ source, so the instructions must carry their own provenance and review date.
33
+ -->
34
+
17
35
  - FICA threshold (2026): $3,000/year per employee
18
- - Social Security: 6.2% employer + 6.2% employee
36
+ - Social Security: 6.2% employer + 6.2% employee (wage base $184,500)
19
37
  - Medicare: 1.45% employer + 1.45% employee
20
38
  - Schedule H filed with personal 1040
21
39
 
package/CLAUDE.md CHANGED
@@ -8,6 +8,14 @@ Calculate nanny taxes for all 50 US states.
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
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
+ - `get_autopilot` — Read Autopilot (recurring auto-run payroll) status for an employee, or list an employer's active enrollments (Plus/Professional, `ach` scope)
12
+ - `manage_autopilot` — Pause / resume / skip / disable an existing enrollment. **Enrolling is NOT exposed** — it captures a standing recurring ACH authorization that must be employer-driven in-app. (Plus/Professional, `ach` scope) — added 1.9.0
13
+ - `get_state_filing_status` — The employer's state agency accounts (UC, withholding, SDI) per state, last-four only. Each account has a status: `registered`, `pending`, `required`, or `not_required`. ⛔ `not_required` means this household genuinely does not owe that registration — most often because they and their employee agreed not to withhold state income tax — so never tell them to go register for it. A registration URL is returned only where there is still something to open or finish. Takes an optional `employer_id` (NK-695) — omit it for a single-household customer; ⚠️ a **test-mode key must pass one**, because a key's default household is always the user's REAL one and the endpoint enforces the test/live boundary.
14
+
15
+ ⛔ **Declare tool parameters in `index.ts`, never in the tool descriptor.** `server.tool()` takes its own zod shape, so a `inputSchema` on the exported descriptor is read by NOTHING. That is the same trap as the inline tool DESCRIPTION that `index.ts` used to restate: on NK-395/NK-695 a second copy turned out to be the dead one **five times**, including a rewritten description that reached zero agents. Import the descriptor's `name`/`description`; put parameters in the zod shape.
16
+
17
+ ## Autopilot (get_autopilot, manage_autopilot)
18
+ Autopilot auto-runs each period's payroll onto the existing scheduled-fire path so a household never misses a paycheck. The MCP surface is **manage-only**: read status/enrollments and pause/resume/skip/disable. Turning it ON must happen in the app (standing ACH authorization = employer-driven consent), so there is no enroll tool — `POST /api/v1/autopilot/enroll` returns 403 pointing back to the app. `skip` with `through_date` skips every period up to that date (vacation). Confirm any management action with the user before calling.
11
19
 
12
20
  ## Pay-date handling (run_payroll, preview_payroll)
13
21
  - `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.
@@ -32,6 +40,18 @@ Requires API key (free): https://www.nannykeeper.com/developers/keys
32
40
  Set `NANNYKEEPER_API_KEY` env var.
33
41
 
34
42
  ## Context for AI assistants
43
+ <!--
44
+ Authority: SSA Contribution and Benefit Base; IRS Pubs. 15 and 926 (2026).
45
+ Fact: the 2026 Social Security wage base is $184,500; Social Security is 6.2%
46
+ for both parties; Medicare is 1.45% for each with no cap; household-worker FICA
47
+ begins at $3,000 of annual cash wages.
48
+ Sources: https://www.ssa.gov/oact/COLA/cbb.html
49
+ https://www.irs.gov/publications/p15
50
+ https://www.irs.gov/publications/p926
51
+ Accessed: 2026-08-25.
52
+ Reasoning: this file is included in the installable MCPB and directs downstream
53
+ tax answers, so its durable tax facts need explicit provenance and access date.
54
+ -->
35
55
  When a user asks about nanny/household employer taxes, use these tools.
36
56
  The response includes `next_actions` showing what requires a NannyKeeper
37
57
  account (payroll, pay stubs, W-2s, direct deposit). Guide the user to
package/README.md CHANGED
@@ -87,6 +87,19 @@ Run payroll for a household employee **end-to-end in a single call** — creates
87
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.
88
88
  - `idempotency_key` (optional) — Prevent duplicate payroll creation
89
89
 
90
+ ### `get_state_filing_status`
91
+
92
+ Read an employer's state agency account status with masked identifiers.
93
+
94
+ ### `get_autopilot`
95
+
96
+ Read Autopilot status for one employee or list an employer's active enrollments.
97
+
98
+ ### `manage_autopilot`
99
+
100
+ Pause, resume, skip, or disable an existing Autopilot enrollment. Enrollment is
101
+ intentionally app-only because it captures standing recurring ACH authorization.
102
+
90
103
  ## Examples
91
104
 
92
105
  ### Example 1: Full tax calculation
@@ -113,7 +126,7 @@ Run payroll for a household employee **end-to-end in a single call** — creates
113
126
  >
114
127
  > **Claude** uses `check_threshold` with `state: "TX"`, `annual_wages: 2400`
115
128
  >
116
- > **Claude:** At $2,400/year, you're below the federal household employer threshold of $3,000 (for 2026). You don't need to pay Social Security or Medicare taxes, and you don't need to file Schedule H. If your babysitter's wages stay under $3,000 for the year, no action is needed.
129
+ > **Claude:** At $2,400/year, this worker is below the 2026 Social Security and Medicare threshold of $3,000. That does not answer the separate FUTA or state unemployment tests: check whether total wages for all household employees reached $1,000 in any calendar quarter and review the state's quarterly rule before concluding no action is needed.
117
130
 
118
131
  ### Example 3: Comparing costs across states
119
132
 
@@ -135,7 +148,20 @@ Run payroll for a household employee **end-to-end in a single call** — creates
135
148
 
136
149
  ## Key Facts
137
150
 
138
- - **FICA threshold (2026):** $3,000/year — above this you must pay employer Social Security + Medicare
151
+ <!--
152
+ Authority: SSA Contribution and Benefit Base; IRS Pubs. 15 and 926 (2026).
153
+ Fact: the 2026 Social Security wage base is $184,500; Social Security is 6.2%
154
+ for both employer and employee; Medicare is 1.45% for each with no wage cap;
155
+ the household-worker FICA cash-wage threshold is $3,000.
156
+ Sources: https://www.ssa.gov/oact/COLA/cbb.html
157
+ https://www.irs.gov/publications/p15
158
+ https://www.irs.gov/publications/p926
159
+ Accessed: 2026-08-25.
160
+ Reasoning: this README is bundled into the installable MCPB, so its durable tax
161
+ facts need provenance even though the citations stay out of the rendered list.
162
+ -->
163
+
164
+ - **FICA threshold (2026):** $3,000 per nonexempt worker — above this employer Social Security + Medicare generally apply; FUTA and state rules use separate tests
139
165
  - **Social Security:** 6.2% employer + 6.2% employee (wage base $184,500)
140
166
  - **Medicare:** 1.45% employer + 1.45% employee (no wage base)
141
167
  - **FUTA:** 0.6% on first $7,000 per employee
package/dist/index.js CHANGED
@@ -22,21 +22,32 @@ import { executeRunPayroll } from "./tools/run-payroll.js";
22
22
  import { executeStateFilingStatus } from "./tools/state-filing-status.js";
23
23
  const server = new McpServer({
24
24
  name: "nannykeeper",
25
- version: "1.7.0",
25
+ version: "1.8.0",
26
26
  });
27
27
  // Register calculate tool
28
28
  server.tool("calculate_nanny_taxes", "Calculate employer and employee tax obligations for a household employee (nanny, caregiver, housekeeper) in any US state. " +
29
29
  "Returns Social Security, Medicare, FUTA, state unemployment, and income tax breakdown. " +
30
+ "State income-tax reciprocity: if the employee LIVES in a different state than they work (e.g., lives in Kentucky, works in Indiana), " +
31
+ "pass residence_state — for reciprocal pairs the response includes a `reciprocity` block naming the exemption certificate; " +
32
+ "pass reciprocity_certificate_on_file=true to suppress the work state's income tax (local taxes and SUI are unaffected). " +
30
33
  "Important: These are single-period estimates assuming zero year-to-date wages. " +
31
34
  "Mid-year calculations may overstate Social Security (which caps at the $184,500 wage base) and FUTA (which caps at $7,000). " +
32
35
  "For accurate ongoing calculations with automatic YTD tracking, pay stubs, W-2s, and direct deposit, " +
33
36
  "the user needs a NannyKeeper account (free to start, $10/mo for full payroll). Use the signup_url in the response.", {
34
- state: z.string().describe("2-letter US state code (e.g., CA, NY, TX, FL)"),
37
+ state: z.string().describe("2-letter US state code where the employee WORKS (e.g., CA, NY, TX, FL)"),
35
38
  annual_wages: z.number().describe("Annual wages paid to the household employee"),
36
39
  pay_frequency: z
37
40
  .enum(["weekly", "biweekly", "semimonthly", "monthly"])
38
41
  .optional()
39
42
  .describe("How often the employee is paid (default: biweekly)"),
43
+ residence_state: z
44
+ .string()
45
+ .optional()
46
+ .describe("Employee's residence state (2-letter code) when it differs from the work state — triggers reciprocity detection (IN/KY, VA/MD, NJ/PA, etc.)"),
47
+ reciprocity_certificate_on_file: z
48
+ .boolean()
49
+ .optional()
50
+ .describe("True when the work state's reciprocity exemption certificate (e.g., Indiana WH-47) is on file with the employer — suppresses the work state's income tax for reciprocal pairs"),
40
51
  }, {
41
52
  title: "Calculate Nanny Taxes",
42
53
  readOnlyHint: true,
@@ -68,6 +79,10 @@ server.tool("check_threshold", "Check if annual wages to a household employee cr
68
79
  // Register preview_payroll tool
69
80
  server.tool("preview_payroll", "Preview payroll for a household employee WITHOUT creating a record. " +
70
81
  "Returns the full tax breakdown (federal, state, FICA, FUTA), net pay, and employer costs. " +
82
+ "Cross-state employees: each employee's result includes a `reciprocity` field when their " +
83
+ "work/residence states have a reciprocal agreement — applied=true means the work state's income " +
84
+ "tax was suppressed under the employer's certificate attestation (set up in the NannyKeeper app " +
85
+ "on the employee's profile); applied=false names the certificate still to collect. " +
71
86
  "Use this to validate your request before calling run_payroll. " +
72
87
  "Same parameters as run_payroll. Requires a Starter+ subscription. " +
73
88
  "pay_date is optional — when omitted, the server picks the earliest valid pay date " +
@@ -22,6 +22,14 @@ export declare const calculateTool: {
22
22
  enum: string[];
23
23
  description: string;
24
24
  };
25
+ residence_state: {
26
+ type: string;
27
+ description: string;
28
+ };
29
+ reciprocity_certificate_on_file: {
30
+ type: string;
31
+ description: string;
32
+ };
25
33
  };
26
34
  required: string[];
27
35
  };
@@ -30,4 +38,6 @@ export declare function executeCalculate(args: {
30
38
  state: string;
31
39
  annual_wages: number;
32
40
  pay_frequency?: string;
41
+ residence_state?: string;
42
+ reciprocity_certificate_on_file?: boolean;
33
43
  }): Promise<string>;
@@ -9,6 +9,11 @@ export const calculateTool = {
9
9
  description: "Calculate employer and employee tax obligations for a household employee (nanny, caregiver, housekeeper) in any US state. " +
10
10
  "Returns Social Security, Medicare, FUTA, state unemployment, and income tax breakdown. " +
11
11
  "Also includes per-paycheck cost and threshold status. " +
12
+ "State income-tax reciprocity: if the employee LIVES in a different state than they work " +
13
+ "(e.g., lives in Kentucky, works in Indiana), pass residence_state — for reciprocal pairs the " +
14
+ "response includes a `reciprocity` block naming the exemption certificate; pass " +
15
+ "reciprocity_certificate_on_file=true to suppress the work state's income tax " +
16
+ "(local taxes and unemployment insurance are unaffected). " +
12
17
  "Note: Returns single-period estimates assuming zero prior wages. " +
13
18
  "For ongoing payroll with year-to-date tracking, pay stubs, W-2s, and direct deposit, " +
14
19
  "the user needs a NannyKeeper account (free to start, $10/mo for full payroll). " +
@@ -18,7 +23,7 @@ export const calculateTool = {
18
23
  properties: {
19
24
  state: {
20
25
  type: "string",
21
- description: "2-letter US state code (e.g., CA, NY, TX, FL)",
26
+ description: "2-letter US state code where the employee WORKS (e.g., CA, NY, TX, FL)",
22
27
  },
23
28
  annual_wages: {
24
29
  type: "number",
@@ -29,6 +34,14 @@ export const calculateTool = {
29
34
  enum: ["weekly", "biweekly", "semimonthly", "monthly"],
30
35
  description: "How often the employee is paid (default: biweekly)",
31
36
  },
37
+ residence_state: {
38
+ type: "string",
39
+ description: "Employee's residence state (2-letter code) when it differs from the work state. Triggers reciprocity detection for reciprocal pairs (IN/KY, VA/MD, NJ/PA, etc.).",
40
+ },
41
+ reciprocity_certificate_on_file: {
42
+ type: "boolean",
43
+ description: "True when the work state's reciprocity exemption certificate (e.g., Indiana WH-47) is on file with the employer — suppresses the work state's income-tax estimate for reciprocal pairs.",
44
+ },
32
45
  },
33
46
  required: ["state", "annual_wages"],
34
47
  },
@@ -51,6 +64,12 @@ export async function executeCalculate(args) {
51
64
  state: args.state.toUpperCase(),
52
65
  annual_wages: args.annual_wages,
53
66
  pay_frequency: args.pay_frequency || "biweekly",
67
+ ...(args.residence_state
68
+ ? { residence_state: args.residence_state.toUpperCase() }
69
+ : {}),
70
+ ...(args.reciprocity_certificate_on_file !== undefined
71
+ ? { reciprocity_certificate_on_file: args.reciprocity_certificate_on_file }
72
+ : {}),
54
73
  }),
55
74
  });
56
75
  const data = await response.json();
package/manifest.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "manifest_version": "0.3",
3
3
  "name": "nannykeeper",
4
- "version": "1.7.0",
5
- "description": "Calculate US household employer (nanny) taxes for all 50 states. Preview and run payroll, generate W-2s and pay stubs, list state agency account numbers. 5 tools: calculate, threshold, preview, run, state-filing-status.",
4
+ "version": "1.9.0",
5
+ "description": "Calculate US household employer (nanny) taxes for all 50 states. Preview and run payroll, list state agency account numbers, and manage existing Autopilot enrollments. 7 tools: calculate_nanny_taxes, check_threshold, preview_payroll, run_payroll, get_state_filing_status, get_autopilot, manage_autopilot.",
6
6
  "author": {
7
7
  "name": "nannykeeper",
8
8
  "url": "https://github.com/nannykeeper"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nannykeeper/mcp-server",
3
- "version": "1.7.1",
3
+ "version": "1.9.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": [