@nannykeeper/mcp-server 1.20.0 → 1.20.2
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 +2 -2
- package/README.md +4 -4
- package/dist/connection.d.ts +14 -0
- package/dist/connection.js +42 -0
- package/dist/context.d.ts +21 -0
- package/dist/public-profile.js +2 -2
- package/dist/server.js +15 -9
- package/dist/tools/autopilot.d.ts +1 -1
- package/dist/tools/autopilot.js +2 -2
- package/dist/tools/household.js +13 -3
- package/dist/tools/reimbursements.js +4 -2
- package/manifest.json +7 -2
- package/package.json +3 -3
package/CLAUDE.md
CHANGED
|
@@ -16,8 +16,8 @@ Calculate nanny taxes for all 50 US states.
|
|
|
16
16
|
- `check_threshold` — Whether wages trigger employer tax obligations
|
|
17
17
|
- `preview_payroll` — Dry-run payroll calc, returns taxes/net pay without creating a record (Starter+ required)
|
|
18
18
|
- `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)
|
|
19
|
-
- `get_autopilot` — Read Autopilot (recurring auto-run payroll) status for an employee, or list an employer's active enrollments (Plus/
|
|
20
|
-
- `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/
|
|
19
|
+
- `get_autopilot` — Read Autopilot (recurring auto-run payroll) status for an employee, or list an employer's active enrollments (Plus/Pro, `ach` scope)
|
|
20
|
+
- `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/Pro, `ach` scope) — added 1.9.0
|
|
21
21
|
- `void_payroll`: the two-step safe void over `POST /api/v1/payroll/:id/void`. The first call writes nothing and returns the payroll and a 10-minute confirmation code bound to that payroll and key; only the second call, with the code and a reason, voids, through the app's own `voidPayroll`. ⛔ Only a draft or a scheduled direct deposit whose debit has not started; everything else is refused with an app link. The tool passes the API through and never retries or mints a code itself. Registered from its own module, `tools/void-payroll.ts`
|
|
22
22
|
- `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` — omit it for a single-household account; a **test-mode key must pass one**, because a key's default household is always the real one and the endpoint enforces the test/live boundary.
|
|
23
23
|
|
package/README.md
CHANGED
|
@@ -180,8 +180,8 @@ Dry-run payroll calculation. Returns the full tax breakdown, net pay, and employ
|
|
|
180
180
|
- `pay_frequency` (required) — weekly, biweekly, semimonthly, or monthly
|
|
181
181
|
- `regular_hours` (optional) — Regular hours worked
|
|
182
182
|
- `overtime_hours` (optional) — Overtime hours worked
|
|
183
|
-
- `bonus` (optional) — Bonus amount
|
|
184
|
-
- `other_earnings` (optional) — Other earnings
|
|
183
|
+
- `bonus` (optional) — Bonus amount, 0 to 99,999
|
|
184
|
+
- `other_earnings` (optional) — Other earnings, 0 to 99,999
|
|
185
185
|
- `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.
|
|
186
186
|
- `reimbursements` (optional, v1.18.0+) — Up to 10 reimbursement lines paid with this paycheck, which NannyKeeper adds to net pay without calculating tax on them, the same lines the API takes: `{ type, amount, description?, miles?, rate_per_mile? }`. `type` is `transit`, `parking`, `mileage` or `other`; `amount` $0–$9,999; `miles` 0–9,999; `rate_per_mile` $0–$5. For mileage send the miles and `amount: 0`: NannyKeeper prices the miles at the IRS rate it holds for the pay period and pay date unless you pass `rate_per_mile`, and refuses a year it holds no rate for with `mileage_rate_unavailable`.
|
|
187
187
|
|
|
@@ -200,8 +200,8 @@ Run payroll for a household employee **end-to-end in a single call** — creates
|
|
|
200
200
|
- `pay_frequency` (required) — weekly, biweekly, semimonthly, or monthly
|
|
201
201
|
- `regular_hours` (optional) — Regular hours worked
|
|
202
202
|
- `overtime_hours` (optional) — Overtime hours worked
|
|
203
|
-
- `bonus` (optional) — Bonus amount
|
|
204
|
-
- `other_earnings` (optional) — Other earnings
|
|
203
|
+
- `bonus` (optional) — Bonus amount, 0 to 99,999
|
|
204
|
+
- `other_earnings` (optional) — Other earnings, 0 to 99,999
|
|
205
205
|
- `payment_method` (optional) — direct_deposit, check, or cash (default: check)
|
|
206
206
|
- `notes` (optional) — Use "catch-up" for retroactive payrolls
|
|
207
207
|
- `confirm_large_payroll` (optional) — Required for direct-deposit payrolls with total net pay >$5,000 or any single net pay >$3,000
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
|
+
import type { ConnectionLimits } from "./context.ts";
|
|
3
|
+
/**
|
|
4
|
+
* Applies a hosted connection's limits to every registration that follows.
|
|
5
|
+
* Registrations live in server.ts and in their own modules, so the
|
|
6
|
+
* limit wraps `server.tool` once rather than asking each one to check: a tool
|
|
7
|
+
* added later is refused by default instead of offered by default. The other
|
|
8
|
+
* registration methods throw under limits rather than bypass them.
|
|
9
|
+
*
|
|
10
|
+
* Every registration is `server.tool(name, description, shape, annotations,
|
|
11
|
+
* callback)`; a test holds that, because a different overload would put the
|
|
12
|
+
* callback somewhere this does not wrap.
|
|
13
|
+
*/
|
|
14
|
+
export declare function applyConnectionLimits(server: McpServer, limits: ConnectionLimits): void;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Applies a hosted connection's limits to every registration that follows.
|
|
3
|
+
* Registrations live in server.ts and in their own modules, so the
|
|
4
|
+
* limit wraps `server.tool` once rather than asking each one to check: a tool
|
|
5
|
+
* added later is refused by default instead of offered by default. The other
|
|
6
|
+
* registration methods throw under limits rather than bypass them.
|
|
7
|
+
*
|
|
8
|
+
* Every registration is `server.tool(name, description, shape, annotations,
|
|
9
|
+
* callback)`; a test holds that, because a different overload would put the
|
|
10
|
+
* callback somewhere this does not wrap.
|
|
11
|
+
*/
|
|
12
|
+
export function applyConnectionLimits(server, limits) {
|
|
13
|
+
const register = server.tool.bind(server);
|
|
14
|
+
server.tool = (...args) => {
|
|
15
|
+
const name = args[0];
|
|
16
|
+
if (typeof name !== "string" || args.length !== 5 || typeof args[4] !== "function") {
|
|
17
|
+
throw new Error(`Unexpected tool registration shape for ${String(name)}`);
|
|
18
|
+
}
|
|
19
|
+
if (!limits.tools.includes(name))
|
|
20
|
+
return undefined;
|
|
21
|
+
const description = limits.descriptions?.[name] ?? args[1];
|
|
22
|
+
const run = args[4];
|
|
23
|
+
const guarded = async (input, extra) => {
|
|
24
|
+
const refusal = limits.refuse?.(name, input ?? {});
|
|
25
|
+
if (refusal !== null && refusal !== undefined) {
|
|
26
|
+
return { content: [{ type: "text", text: refusal }], isError: true };
|
|
27
|
+
}
|
|
28
|
+
return run(input, extra);
|
|
29
|
+
};
|
|
30
|
+
return register(name, description, args[2], args[3], guarded);
|
|
31
|
+
};
|
|
32
|
+
// The SDK's other registration paths skip the wrapper above, so under
|
|
33
|
+
// limits they refuse outright: a tool registered that way would otherwise
|
|
34
|
+
// reach the connection unlisted and unguarded. Extend this wrapper first.
|
|
35
|
+
const refuse = (method) => (name) => {
|
|
36
|
+
throw new Error(`${method}(${String(name)}) is not guarded by connection limits; register it with server.tool`);
|
|
37
|
+
};
|
|
38
|
+
server.registerTool = refuse("registerTool");
|
|
39
|
+
const tasks = server.experimental?.tasks;
|
|
40
|
+
if (tasks)
|
|
41
|
+
tasks.registerToolTask = refuse("registerToolTask");
|
|
42
|
+
}
|
package/dist/context.d.ts
CHANGED
|
@@ -1,8 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a hosted connection narrows. Absent, the server offers every
|
|
3
|
+
* tool exactly as the npm package does. The policy itself (which assistant
|
|
4
|
+
* gets which tools, and the refusal copy) lives with the host, which knows the
|
|
5
|
+
* assistant; this package only applies it.
|
|
6
|
+
*/
|
|
7
|
+
export interface ConnectionLimits {
|
|
8
|
+
/** The tools this connection offers. Any other is neither listed nor callable. */
|
|
9
|
+
tools: readonly string[];
|
|
10
|
+
/** MCP server instructions sent to the assistant on initialize. */
|
|
11
|
+
instructions?: string;
|
|
12
|
+
/** A description that replaces the hosted default for that tool. */
|
|
13
|
+
descriptions?: Readonly<Record<string, string>>;
|
|
14
|
+
/**
|
|
15
|
+
* Called before an offered tool runs. Returns the JSON text to answer with
|
|
16
|
+
* instead of running it, or null to run it. A guard here is the first of
|
|
17
|
+
* two: the API refuses the same calls for the connection's key.
|
|
18
|
+
*/
|
|
19
|
+
refuse?: (tool: string, args: Record<string, unknown>) => string | null;
|
|
20
|
+
}
|
|
1
21
|
/** A hosted request supplies its own credentials. Never change process.env per user. */
|
|
2
22
|
export interface ToolContext {
|
|
3
23
|
apiKey: string;
|
|
4
24
|
apiBase: string;
|
|
5
25
|
publicConnection?: boolean;
|
|
26
|
+
connection?: ConnectionLimits;
|
|
6
27
|
}
|
|
7
28
|
export declare function getToolContext(context?: ToolContext): ToolContext;
|
|
8
29
|
/**
|
package/dist/public-profile.js
CHANGED
|
@@ -8,8 +8,8 @@ export const publicDescriptions = {
|
|
|
8
8
|
list_employees: "List the connected household's employees with their pay setup and what is still missing for payroll. Returns the employee IDs the payroll tools need. Read-only.",
|
|
9
9
|
get_payroll: "Read one payroll by ID, or list the household's payrolls (list_payrolls filters that list by employee and pay date). Returns status, dates, gross pay, each deduction, net pay, and employer taxes. Report the exact status; scheduled or processing does not mean paid. For a paycheck paid outside NannyKeeper, paid_outside gives how the family paid and the employee's confirmation (confirmed, mismatch, waiting, not_asked); a mismatch means only that the employee said it does not match, so suggest they talk to each other.",
|
|
10
10
|
get_pay_stub: "Get the pay stub PDF for each employee on a paid payroll, the same stub the household downloads in NannyKeeper. A payroll that is not paid yet answers payroll_not_completed. Safe to repeat.",
|
|
11
|
-
get_w2: "Get a download link for one copy of an employee's W-2 for a tax year that has ended. Returns download_url, a link on nannykeeper.com that works for 15 minutes; give it to the user and tell them to open it
|
|
12
|
-
get_schedule_h: "Get a download link for the household's Schedule H for a tax year that has ended. Returns download_url, a link on nannykeeper.com that works for 15 minutes; give it to the user and tell them to open it
|
|
11
|
+
get_w2: "Get a download link for one copy of an employee's W-2 for a tax year that has ended. Returns download_url, a link on nannykeeper.com that works for 15 minutes and only in a browser signed in to the user's own NannyKeeper account; give it to the user and tell them to open it there. This tool never returns the PDF, and you must not open the link yourself. The household generates the W-2 in NannyKeeper first; until then this answers w2_not_generated, and this tool never generates one. Safe to repeat.",
|
|
12
|
+
get_schedule_h: "Get a download link for the household's Schedule H for a tax year that has ended. Returns download_url, a link on nannykeeper.com that works for 15 minutes and only in a browser signed in to the user's own NannyKeeper account; give it to the user and tell them to open it there. This tool never returns the PDF, and you must not open the link yourself. When NannyKeeper would not produce the form this answers schedule_h_unavailable with a reason; report that reason faithfully. NannyKeeper does not file the form. Safe to repeat.",
|
|
13
13
|
get_quarter_taxes: "Get a quarter's tax figures as the household's NannyKeeper Taxes page shows them: a checklist of what to pay or file, to whom and by when (an item of kind rec has no hard deadline this quarter but may still be owed), the optional federal estimated payment for the IRS installment, each state agency's due date and amount, and per-state lines. A null amount means NannyKeeper will not stand behind a figure yet; give the returned reason and never report it as $0 or nothing owed. NannyKeeper does not file or pay for the household. Safe to repeat.",
|
|
14
14
|
record_tax_payment: "Record that the household paid a quarter's tax to the IRS or a state agency; once that covers what is owed, NannyKeeper stops reminding them. NannyKeeper does not send the payment; call this only after the user says they paid. Read the quarter with get_quarter_taxes first. Send expected_amount when they paid the figure it showed, or amount with what they actually paid (add closes_filing for a state agency when that amount settles the filing). If the figure changed or NannyKeeper will not confirm one, show the user the returned reason and ask before trying again. Use one idempotency_key per payment and reuse it only to retry that payment. It only adds a payment: it cannot change or remove one already recorded, so send corrections to the Taxes page in NannyKeeper.",
|
|
15
15
|
get_autopilot: "Read existing recurring payroll enrollment status for a household, optionally for one employee. Returns status and available schedule information; it does not enroll anyone or change payroll.",
|
package/dist/server.js
CHANGED
|
@@ -11,6 +11,7 @@ import { registerListPayrolls } from "./tools/list-payrolls.js";
|
|
|
11
11
|
import { registerVoidPayroll } from "./tools/void-payroll.js";
|
|
12
12
|
import { EMPLOYER_ID_OPTIONAL } from "./params.js";
|
|
13
13
|
import { executeGetPayStub, executeGetW2, executeGetScheduleH, executeGetQuarterTaxes, executeGetPayroll, executeListEmployees, } from "./tools/household.js";
|
|
14
|
+
import { applyConnectionLimits } from "./connection.js";
|
|
14
15
|
import { publicDescriptions, toolResult } from "./public-profile.js";
|
|
15
16
|
import { registerRecordTaxPayment } from "./tools/tax-payment.js";
|
|
16
17
|
/**
|
|
@@ -27,7 +28,12 @@ import { registerRecordTaxPayment } from "./tools/tax-payment.js";
|
|
|
27
28
|
export const MAX_TOOL_INPUT_ELEMENTS = 256;
|
|
28
29
|
/** A fresh server and credential closure for each hosted request. */
|
|
29
30
|
export function createNannyKeeperServer(version, context) {
|
|
30
|
-
const server = new McpServer({ name: "nannykeeper", version }, {
|
|
31
|
+
const server = new McpServer({ name: "nannykeeper", version }, {
|
|
32
|
+
maxToolInputElements: MAX_TOOL_INPUT_ELEMENTS,
|
|
33
|
+
...(context?.connection?.instructions ? { instructions: context.connection.instructions } : {}),
|
|
34
|
+
});
|
|
35
|
+
if (context?.connection)
|
|
36
|
+
applyConnectionLimits(server, context.connection);
|
|
31
37
|
/**
|
|
32
38
|
* Authority: SSA Contribution and Benefit Base; IRS Pubs. 15 and 926 (2026).
|
|
33
39
|
* Fact: the 2026 Social Security wage base is $184,500; Social Security is
|
|
@@ -125,8 +131,8 @@ export function createNannyKeeperServer(version, context) {
|
|
|
125
131
|
.describe("How often the employee is paid"),
|
|
126
132
|
regular_hours: z.number().optional().describe("Regular hours worked this period (e.g., 40 for a full week)"),
|
|
127
133
|
overtime_hours: z.number().optional().describe("Overtime hours worked this period"),
|
|
128
|
-
bonus: z.number().optional().describe("Bonus amount in dollars for this period"),
|
|
129
|
-
other_earnings: z.number().optional().describe("Other earnings in dollars for this period"),
|
|
134
|
+
bonus: z.number().optional().describe("Bonus amount in dollars for this period, 0 to 99,999"),
|
|
135
|
+
other_earnings: z.number().optional().describe("Other earnings in dollars for this period, 0 to 99,999"),
|
|
130
136
|
voluntary_set_aside: z
|
|
131
137
|
.object({
|
|
132
138
|
skip: z.boolean().optional().describe("Skip the active set-aside rule for this paycheck only"),
|
|
@@ -152,7 +158,7 @@ export function createNannyKeeperServer(version, context) {
|
|
|
152
158
|
"Returns the finalized status (processing/pending_funding/completed/scheduled) plus full tax breakdown, " +
|
|
153
159
|
"net pay, employer costs, and the payroll ID for reference. " +
|
|
154
160
|
"Requires a Starter+ subscription. " +
|
|
155
|
-
"Plans cap active employees per employer (Starter 1, Plus 5,
|
|
161
|
+
"Plans cap active employees per employer (Starter 1, Plus 5, Pro 5 included, expandable " +
|
|
156
162
|
"to 25 at $6/mo each); if the roster exceeds the plan's count, the API returns 403 with guidance — " +
|
|
157
163
|
"the user adds employees at Settings → Billing in the dashboard (never billed implicitly via API), then retry. " +
|
|
158
164
|
"pay_date is optional. When omitted, the server picks the earliest valid business day on or " +
|
|
@@ -180,8 +186,8 @@ export function createNannyKeeperServer(version, context) {
|
|
|
180
186
|
.describe("How often the employee is paid"),
|
|
181
187
|
regular_hours: z.number().optional().describe("Regular hours worked this period (e.g., 40 for a full week)"),
|
|
182
188
|
overtime_hours: z.number().optional().describe("Overtime hours worked this period"),
|
|
183
|
-
bonus: z.number().optional().describe("Bonus amount in dollars for this period"),
|
|
184
|
-
other_earnings: z.number().optional().describe("Other earnings in dollars for this period"),
|
|
189
|
+
bonus: z.number().optional().describe("Bonus amount in dollars for this period, 0 to 99,999"),
|
|
190
|
+
other_earnings: z.number().optional().describe("Other earnings in dollars for this period, 0 to 99,999"),
|
|
185
191
|
payment_method: z
|
|
186
192
|
.enum(["direct_deposit", "check", "cash"])
|
|
187
193
|
.optional()
|
|
@@ -212,7 +218,7 @@ export function createNannyKeeperServer(version, context) {
|
|
|
212
218
|
.optional()
|
|
213
219
|
.describe("Unique key to prevent duplicate payroll creation (e.g., 'payroll-2026-04-07-emp123')"),
|
|
214
220
|
}, {
|
|
215
|
-
title: "Run
|
|
221
|
+
title: "Run payroll",
|
|
216
222
|
readOnlyHint: false,
|
|
217
223
|
destructiveHint: true,
|
|
218
224
|
idempotentHint: false,
|
|
@@ -253,7 +259,7 @@ export function createNannyKeeperServer(version, context) {
|
|
|
253
259
|
"(status, standard hours, expected net, next pay date) plus eligibility and a 3-payday schedule " +
|
|
254
260
|
"preview — or, if not enrolled, WHY (the eligibility reason, e.g. not_plus / insufficient_history). " +
|
|
255
261
|
"Without employee_id: the list of the employer's active enrollments. Read-only. " +
|
|
256
|
-
"Requires a Plus/
|
|
262
|
+
"Requires a Plus/Pro key. Get employee_id from list_employees; employer_id is optional."), {
|
|
257
263
|
employer_id: EMPLOYER_ID_OPTIONAL,
|
|
258
264
|
employee_id: z
|
|
259
265
|
.string()
|
|
@@ -277,7 +283,7 @@ export function createNannyKeeperServer(version, context) {
|
|
|
277
283
|
"`skip` (skip the next period; with through_date, skip every period up to that date for a vacation), " +
|
|
278
284
|
"`disable` (turn Autopilot off — soft-deleted so the ledger + ACH authorization are retained; the employee can re-enroll in-app). " +
|
|
279
285
|
"Turning Autopilot ON is NOT available here — it captures a standing recurring ACH authorization that must be " +
|
|
280
|
-
"done by the employer in the app. Requires a Plus/
|
|
286
|
+
"done by the employer in the app. Requires a Plus/Pro key. Confirm the action with the user before calling."), {
|
|
281
287
|
employer_id: EMPLOYER_ID_OPTIONAL,
|
|
282
288
|
employee_id: z.string().uuid().describe("Employee UUID whose enrollment to manage"),
|
|
283
289
|
action: z
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* status/history and MANAGE an existing enrollment (pause / resume / skip /
|
|
6
6
|
* disable). Enrollment itself is intentionally NOT exposed — turning Autopilot
|
|
7
7
|
* on captures a standing recurring ACH authorization that must be employer-
|
|
8
|
-
* driven in the app. Requires a Plus/
|
|
8
|
+
* driven in the app. Requires a Plus/Pro key (the `ach` scope).
|
|
9
9
|
*/
|
|
10
10
|
import { type ToolContext } from "../context.ts";
|
|
11
11
|
/** Read Autopilot status for one employee, or list the employer's active enrollments. */
|
package/dist/tools/autopilot.js
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* status/history and MANAGE an existing enrollment (pause / resume / skip /
|
|
6
6
|
* disable). Enrollment itself is intentionally NOT exposed — turning Autopilot
|
|
7
7
|
* on captures a standing recurring ACH authorization that must be employer-
|
|
8
|
-
* driven in the app. Requires a Plus/
|
|
8
|
+
* driven in the app. Requires a Plus/Pro key (the `ach` scope).
|
|
9
9
|
*/
|
|
10
10
|
import { CLIENT_HEADER, getToolContext } from "../context.js";
|
|
11
11
|
function missingKey() {
|
|
12
12
|
return JSON.stringify({
|
|
13
|
-
error: "NANNYKEEPER_API_KEY environment variable is not set. Autopilot management requires a Plus/
|
|
13
|
+
error: "NANNYKEEPER_API_KEY environment variable is not set. Autopilot management requires a Plus/Pro key: nannykeeper.com/developers/keys",
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
/** Read Autopilot status for one employee, or list the employer's active enrollments. */
|
package/dist/tools/household.js
CHANGED
|
@@ -125,7 +125,13 @@ export async function executeGetPayStub(args, context) {
|
|
|
125
125
|
* "align" these two with it.
|
|
126
126
|
*/
|
|
127
127
|
async function getTaxFormLink(path, body, context) {
|
|
128
|
-
const result = await getJson(path, {
|
|
128
|
+
const result = await getJson(path, {
|
|
129
|
+
method: "POST",
|
|
130
|
+
// The hosted connector's link opens only for the family's signed-in
|
|
131
|
+
// NannyKeeper session: its transcript is held by the assistant's
|
|
132
|
+
// vendor. The npm package's stays a plain link.
|
|
133
|
+
body: JSON.stringify({ ...body, delivery: "link", ...(context?.publicConnection ? { link_requires_sign_in: true } : {}) }),
|
|
134
|
+
}, context);
|
|
129
135
|
if (!result.ok)
|
|
130
136
|
return result.text;
|
|
131
137
|
const data = result.data.data;
|
|
@@ -138,8 +144,12 @@ async function getTaxFormLink(path, body, context) {
|
|
|
138
144
|
file_name: download.file_name,
|
|
139
145
|
download_url: download.url,
|
|
140
146
|
expires_at: download.expires_at,
|
|
141
|
-
instructions:
|
|
142
|
-
"
|
|
147
|
+
instructions: context?.publicConnection
|
|
148
|
+
? "Give the user this link and tell them to open it in the browser where they are signed in to NannyKeeper " +
|
|
149
|
+
"(from a phone app, their usual browser, not the app's own). It works for 15 minutes and only for their own " +
|
|
150
|
+
"NannyKeeper login. Do not open or fetch the link yourself."
|
|
151
|
+
: "Give the user this link and tell them to open it in their browser to download the PDF. " +
|
|
152
|
+
"It works for 15 minutes. Do not open or fetch the link yourself.",
|
|
143
153
|
});
|
|
144
154
|
}
|
|
145
155
|
export async function executeGetW2(args, context) {
|
|
@@ -41,6 +41,8 @@ export const reimbursementsParam = z
|
|
|
41
41
|
.max(MAX_REIMBURSEMENT_LINES)
|
|
42
42
|
.optional()
|
|
43
43
|
.describe("Optional. Up to 10 reimbursements paid with this paycheck: mileage, transit, parking or other. " +
|
|
44
|
-
"NannyKeeper adds them to net pay, outside gross pay, without calculating tax on them
|
|
45
|
-
"line
|
|
44
|
+
"NannyKeeper adds them to net pay, outside gross pay, without calculating tax on them. A transit or parking " +
|
|
45
|
+
"line that would take the employee's total for the pay date's month over the IRS monthly limit is refused, " +
|
|
46
|
+
"and the refusal says how much is left; pay the rest as other_earnings, which counts as wages. A line in a " +
|
|
47
|
+
"year whose limit NannyKeeper does not hold comes back with a warning. " +
|
|
46
48
|
'Mileage example: [{"type":"mileage","miles":42,"amount":0}].');
|
package/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest_version": "0.3",
|
|
3
3
|
"name": "nannykeeper",
|
|
4
|
-
"version": "1.20.
|
|
5
|
-
"description": "Calculate US household employer (nanny) taxes for all 50 states. List employees, preview and run payroll with mileage, read and list payrolls and pay stubs, read a quarter's taxes, get download links for W-2s and Schedule H, list state agency account numbers, and manage existing Autopilot enrollments.
|
|
4
|
+
"version": "1.20.2",
|
|
5
|
+
"description": "Calculate US household employer (nanny) taxes for all 50 states. List employees, preview and run payroll with mileage, read and list payrolls and pay stubs, read a quarter's taxes and record a tax payment, void a payroll that has not moved money, get download links for W-2s and Schedule H, list state agency account numbers, and manage existing Autopilot enrollments. 16 tools: calculate_nanny_taxes, check_threshold, list_employees, preview_payroll, run_payroll, void_payroll, get_payroll, list_payrolls, get_pay_stub, get_w2, get_schedule_h, get_quarter_taxes, record_tax_payment, get_state_filing_status, get_autopilot, manage_autopilot.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "nannykeeper",
|
|
8
8
|
"url": "https://github.com/nannykeeper"
|
|
@@ -28,5 +28,10 @@
|
|
|
28
28
|
"NANNYKEEPER_API_KEY": ""
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
+
},
|
|
32
|
+
"compatibility": {
|
|
33
|
+
"runtimes": {
|
|
34
|
+
"node": ">=20.0.0"
|
|
35
|
+
}
|
|
31
36
|
}
|
|
32
37
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nannykeeper/mcp-server",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.2",
|
|
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": [
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@modelcontextprotocol/sdk": "^1.32.1",
|
|
57
|
-
"zod": "^4.
|
|
57
|
+
"zod": "^4.6.6"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/node": "^22.0.0",
|
|
@@ -62,6 +62,6 @@
|
|
|
62
62
|
"vitest": "^4.1.2"
|
|
63
63
|
},
|
|
64
64
|
"engines": {
|
|
65
|
-
"node": ">=
|
|
65
|
+
"node": ">=20"
|
|
66
66
|
}
|
|
67
67
|
}
|