efile-mcp-mock
v0.2.3Sandbox MCP server for IRS e-file (MeF) payroll forms.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_supported_forms List supported forms
List the form types this mock can validate, build and submit, with each form's top-level input fields (name and whether required), the optional `header` block fields, and which forms are planned or not available. Call this first. Read-only; no side effects.
validate_return Validate return
Check return JSON without submitting anything: input shape, line math recomputed from the inputs, deposit/liability checks, header and EIN rules. Returns `valid`, `errors` and `warnings` (each with a code, a JSON path, a message and a `basis`), `computed` totals, and `xsd` status. Read-only; stores nothing.
| Parameter | Type | Description |
|---|---|---|
data * | object | Return data as a JSON object using the field names shown by list_supported_forms. Unknown fields are rejected. Use fake values only: EINs start with 00 (e.g. 00-0000000), SSNs look like 000-00-0000. |
formType * | string | Form to process: 941, 944, 4868, 7004, 941-X. Call list_supported_forms first to see each form's fields. 940, 945, 1120-S and 8868 are not available. |
build_return_xml Build return XML
Validate the return and convert it to illustrative MeF-style XML. The XML uses hand-modeled element names in a mock namespace and will not pass the real IRS schema. `xsd.status` is 'valid' or 'invalid' only if IRS XSDs are installed locally; 'not_available' means the XML was NOT schema-validated. Returns xml: null with the validation result if the input is invalid. Read-only.
| Parameter | Type | Description |
|---|---|---|
data * | object | Return data as a JSON object using the field names shown by list_supported_forms. Unknown fields are rejected. Use fake values only: EINs start with 00 (e.g. 00-0000000), SSNs look like 000-00-0000. |
formType * | string | Form to process: 941, 944, 4868, 7004, 941-X. Call list_supported_forms first to see each form's fields. 940, 945, 1120-S and 8868 are not available. |
mock_submit_return Mock submit return
Submit a return to the in-memory mock MeF (nothing leaves this process, nothing is persisted after exit). Returns a 20-digit submission ID, a message ID and an illustrative transmission container shape (header, manifest, zip entry list). Input that fails shape validation is not submitted; business-rule failures are submitted and come back Rejected. Then call get_acknowledgement with the submission ID. Submitting the same accepted return twice is rejected as a duplicate.
| Parameter | Type | Description |
|---|---|---|
data * | object | Return data as a JSON object using the field names shown by list_supported_forms. Unknown fields are rejected. Use fake values only: EINs start with 00 (e.g. 00-0000000), SSNs look like 000-00-0000. |
formType * | string | Form to process: 941, 944, 4868, 7004, 941-X. Call list_supported_forms first to see each form's fields. 940, 945, 1120-S and 8868 are not available. |
forceReject | boolean | Test hook: force a rejection (code X0000-005-01) even if the return is valid |
get_acknowledgement Get acknowledgement
Fetch the mock result for a submission ID from mock_submit_return. `kind` is 'StatusRecord' while status is Processing (not proof of acceptance) and 'Acknowledgement' once status is Accepted or Rejected; rejected results list errors with codes and basis. Use format 'xml' for the illustrative acknowledgement XML shape. In this mock the result is normally final on the first call; a Processing status appears only if the server is configured with polling delays, in which case repeat the call.
| Parameter | Type | Description |
|---|---|---|
submissionId * | string | |
format | string | json (default) or xml for the illustrative acknowledgement XML |