myinvois-mcp

v0.1.1
io.github.ANHQ280/myinvois-mcp Checked 3 days ago Published 5 months ago

Malaysian LHDN e-invoicing (MyInvois) compliance rules: scope, validation, change-diffs.

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

check_einvoice_scope

Check whether a Malaysian business is in scope for MyInvois e-invoicing and by when, given its annual turnover (RM). Returns phase, mandatory date, relaxation window, plus asOf/rulesetVersion/source/disclaimer.

ParameterTypeDescription
turnover *numberAnnual turnover in RM
datestringISO date to evaluate against (defaults to today)
entity_typestringEntity type, e.g. sdn_bhd (informational)

get_einvoice_field_rules

Get the e-invoice field rules that apply to a given scenario (b2b/b2c) and optional transaction amount (RM). Returns required fields, formats, allowed values, plus the standard envelope.

ParameterTypeDescription
scenario *stringTransaction scenario
amountnumberTransaction amount in RM (enables amount-based rules)

validate_einvoice

Validate an invoice object against the current MyInvois field rules. STATELESS: the invoice is never stored. Returns valid/errors/warnings plus the standard envelope. Highest-frequency tool.

ParameterTypeDescription
invoice *objectInvoice as a flat object keyed by field code. Include `scenario` (b2b|b2c) and `amount` (RM) to select applicable rules.

get_einvoice_changes

Get the feed of MyInvois rule changes effective on or after a given date. Returns change_type, summary, affected entity, and effective date, plus the standard envelope.

ParameterTypeDescription
since *stringISO date; return changes effective on/after this