1040kit

v0.1.2
1040kit Checked 1 day ago Published 22 days ago

Self-employed tax software you talk to: the 1040kit MCP server for Claude Code and Codex.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

workspace_init Create a tax-year workspace

Create (or reopen) the local, encrypted workspace for a tax year. Returns the inbox folder: ask the user to put their tax documents (W-2, 1099s, last year’s return, bank CSVs) there instead of pasting them into chat. The first time, it also returns a short `acknowledgment` to show the user word for word; when they agree, call again with acknowledged: true. Safe to call again.

ParameterTypeDescription
year *Tax year (2025 or 2026).
acknowledgedbooleantrue only after the user read the `acknowledgment.text` from the first call and agreed to it.
pathstringFolder for this tax year. Default: ~/Taxes/<year>.

docs_scan Inventory the inbox

List and classify every file in the workspace inbox (W-2, 1099-INT/DIV/NEC/MISC/K, prior-year 1040, bank CSV). Flags duplicates, scans that need OCR, password-protected PDFs, and forms 1040kit does not support yet (with the planned version). Runs locally; nothing is uploaded.

ParameterTypeDescription
workspace *stringWorkspace folder returned by workspace_init, or just the tax year (e.g. "2025").

docs_extract Read the numbers from documents

Extract the boxes of each W-2 / 1099 / 1098-E / prior-year 1040 into the tax facts, locally. Amounts are in cents. SSNs and account numbers are discarded, never stored; the owner (taxpayer or spouse) is matched by the name on the document. Employer/payer/lender EINs come back only as tokens like {{EIN:w2_1}}. Review every `lowConfidence` field with the user before relying on it. A CORRECTED form replaces the original from the same payer. Safe to re-run.

ParameterTypeDescription
workspace *stringWorkspace folder returned by workspace_init, or just the tax year (e.g. "2025").
docIdsarrayDocuments to (re-)extract. Default: every document not extracted yet.

profile_get Read the tax facts

Read the structured tax facts (amounts in cents), names/address, and where each fact came from (a document, the user, or inferred). EINs appear only as tokens; SSNs and bank account numbers are never stored.

ParameterTypeDescription
workspace *stringWorkspace folder returned by workspace_init, or just the tax year (e.g. "2025").
pathsarrayOnly these fact paths (e.g. "taxpayer.dateOfBirth", "w2s[w2_1].wages").

profile_set Record tax facts

Record facts the user told you (or you inferred), with provenance. Amounts are integer cents. New list items are created on first use (e.g. "dependents[dependent_2].dateOfBirth"); new W-2/1099/1098-E items and rentals need an `owner` in the same call (rentals: taxpayer, spouse or joint). `null` removes a value or item. Never send SSNs, EINs or account numbers: they are rejected (1040kit never stores SSNs or bank numbers). Invalid paths/values come back in `rejected` and nothing is written for them.

ParameterTypeDescription
set *array
workspace *stringWorkspace folder returned by workspace_init, or just the tax year (e.g. "2025").

interview_next Next interview questions

The fewest questions still needed, one phase at a time: `income` (you, your household, your income) first, then `deductions` (deductions and credits). When a new phase starts, tell the user its `phaseIntro` in one sentence. Each question has a plain-English `why` to show the user and, where there is one, the IRS `cite` to quote if they ask for the rule. Each question has an `answer` type: yesno, choice (options), amount (dollars, record as cents), date, number, text, open, multiselect, or group. A group is several facts about one thing (a dependent, a business, a vehicle) asked as one form: as…

ParameterTypeDescription
workspace *stringWorkspace folder returned by workspace_init, or just the tax year (e.g. "2025").
limitinteger

calc_return Compute the return

Compute the federal return with the deterministic engine. Returns the summary (whole dollars; refundOrOwed > 0 is a refund), every non-zero line on the forms that are on the return (with its node id for explain_line), the 3 biggest `drivers`, and anything unsupported or missing. Quote these numbers; never compute your own. Use explain_line for the why.

ParameterTypeDescription
workspace *stringWorkspace folder returned by workspace_init, or just the tax year (e.g. "2025").

explain_line Explain a line

Why a line has its value: the formula, its inputs (with the document or answer each fact came from) and IRS citations. Quote it; cite the citations.

ParameterTypeDescription
ref *stringA line id from calc_return (e.g. "agi") or "<form>:<line>" (e.g. "f1040:16").
workspace *stringWorkspace folder returned by workspace_init, or just the tax year (e.g. "2025").
depthinteger

deductions_find Find missed deductions

Deductions and credits the user may qualify for, ranked by estimated savings. Each has an eligibility test and a question: ask it, and claim nothing until the user confirms (and has the documents). Then record the answer at the listed factPaths with profile_set.

ParameterTypeDescription
workspace *stringWorkspace folder returned by workspace_init, or just the tax year (e.g. "2025").

expenses_import Import business expenses from a bank CSV

Two steps. `propose`: read a bank/card CSV from the inbox and propose a Schedule C category for each money-out row (rule-based, local). Show the rows to the user. `confirm`: send the user’s decisions; the totals go into businesses[owner].expenses. Re-confirming the same file replaces its earlier totals. Amounts are cents.

ParameterTypeDescription
action *string
file *stringCSV in the workspace, e.g. "chase-2025.csv" (relative to the inbox).
owner *stringWhose Schedule C business these expenses belong to.
workspace *stringWorkspace folder returned by workspace_init, or just the tax year (e.g. "2025").
decisionsarrayFor confirm: the user’s category for each business row. Rows left out are not counted.

scenario_compare Compare what-ifs

Recompute the return under hypothetical changes (e.g. a SEP-IRA contribution) without saving them. Returns the base summary and each scenario’s summary and delta.

ParameterTypeDescription
scenarios *array
workspace *stringWorkspace folder returned by workspace_init, or just the tax year (e.g. "2025").

review_checks Check the return

Consistency and error checks on the return (document cross-checks, unusual swings vs last year’s 1040 when it was in the inbox). Resolve every error with the user before forms_fill.

ParameterTypeDescription
workspace *stringWorkspace folder returned by workspace_init, or just the tax year (e.g. "2025").

return_review Review the whole return

The final, holistic review before forms_fill. Recomputes the return and returns `blockers` (missing facts, unsupported items, review errors, documents not on the return, missing names or address), `attention` (warnings, deductions left unclaimed, answers that replaced a document value), the numbers to show (`return`) and `confirmWithUser` questions. `ready` is true when nothing blocks. Then show the user the review and ask `confirmPrompt`; when they say it looks good, call again with confirmed: true. forms_fill and filing_prepare refuse (REVIEW_REQUIRED) until the user confirmed a ready review…

ParameterTypeDescription
workspace *stringWorkspace folder returned by workspace_init, or just the tax year (e.g. "2025").
confirmedbooleantrue only after the user saw this review and said the numbers look good.

forms_fill Fill the IRS forms

After return_review is ready and the user confirmed it: fill the official IRS PDFs (1040 and every schedule needed) into outputs/<year>-federal-return.pdf, plus a plain-English summary. Refuses (RETURN_INCOMPLETE) unless the last calc_return was complete and nothing changed since, (IDENTITY_REQUIRED) while names or the home address are missing, (REVIEW_REQUIRED) until a ready return_review of the current facts, and (ACK_REQUIRED) if the start agreement from workspace_init was never given. SSN boxes are left blank: walk the user through every item in `handwrite`.

ParameterTypeDescription
workspace *stringWorkspace folder returned by workspace_init, or just the tax year (e.g. "2025").

filing_prepare Prepare the filing package

Write the filing package to the outputs folder: "mail" → mailing instructions (where to sign, what to attach, the IRS address for the user’s state, payment options, deadline); "fillable_forms" → a line-by-line entry sheet for IRS Free File Fillable Forms. Also writes a plain-English summary. 1040kit never stores SSNs or bank account numbers: the mailing instructions list every box to write them in, and the entry sheet marks each field "type this yourself". Requires a complete, current calc_return, the names and home address, the start agreement (ACK_REQUIRED) and a review the user confir…

ParameterTypeDescription
path *string"mail": print, sign and mail. "fillable_forms": e-file free with IRS Free File Fillable Forms.
workspace *stringWorkspace folder returned by workspace_init, or just the tax year (e.g. "2025").