list_session_invoices
List Session Invoices
List submitted invoices in a KSeF session with their references, hashes, KSeF numbers, and processing results. Use the continuation token to fetch the next page.
Ask your agent in plain language. Each of these maps to a real tool on the server.
list_session_invoices
List submitted invoices in a KSeF session with their references, hashes, KSeF numbers, and processing results. Use the continuation token to fetch the next page.
close_session
Close an online invoice submission session by its reference number, including a session left open after a failed automatic close. This starts generation of the session receipt; check session status to track processing and receipt readiness.
submit_invoice
Submit one complete FA(3) XML invoice for processing in KSeF. This action is irreversible. Acceptance starts processing and does not mean that a KSeF number has been issued.
download_invoice_upo
Download the official receipt for an accepted invoice in a KSeF session.
get_session_status
Check an invoice submission session for its current processing status, invoice counts, and available session UPO pages.
download_session_upo
Download a generated XML receipt page for an invoice submission session.
list_sessions
List online invoice submission sessions. Filter by reference, dates, or status, then use the continuation token to retrieve more results.
get_connection_status
Verify KSeF access and return the configured environment, authenticated context, and current effective context limits.
get_invoice_status
Check a submitted invoice by its session and invoice references. Return its processing result, KSeF number, duplicate origin, and receipt readiness.
search_invoices
Search KSeF invoice metadata by party role, date range, identifiers, amounts, and document type.
download_invoice
Download the original XML invoice identified by its KSeF number.
Every client uses the same Magic MCP URL, and so does any other MCP client. Add it once and sign in with SSO.
{"mcpServers": {"metorial": {"url": "<your-magic-mcp-url>"}}}
claude mcp add --transport http metorial <your-magic-mcp-url>
codex mcp add metorial --url <your-magic-mcp-url>codex mcp login metorial
One governed layer for every app your agents reach, not a separate connector per tool.
Search and download invoices from Poland's National e-Invoice System (KSeF), submit FA(3) XML invoices, inspect online submission sessions, and download official UPO receipts.
Common questions about connecting Krajowy System e-Faktur (KSeF) to AI agents with Metorial.