MCP 서버

Invoice Preflight

io.github.Ahmet11159/invoice-preflight
비즈니스 및 운영 보안 공개 · 연결 가능 MCP 2025-11-25

이 MCP로 할 수 있는 일

Preflights invoices, URLs, packages, wallets, transactions, content, and MCP endpoints, and extracts structured webpage data using paid checks.

invoice_preflight
Paid invoice check ($0.065 USDC on Base): UBL XML or complete PDF/image invoices up to 3 pages. Compares expected purchase fields and line items; returns evidence, amount checks and match/discrepancy/needs_review. No payment or bookkeeping action is taken.
입력 스키마
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'expected': {'type': 'object', 'properties': {'tax': {'type': 'string', 'pattern': '^-?\\d+(?:\\.\\d{1,2})?$'}, 'total': {'type': 'string', 'pattern': '^-?\\d+(?:\\.\\d{1,2})?$'}, 'currency': {'type': 'string', 'maxLength': 3, 'minLength': 3}, 'subtotal': {'type': 'string', 'pattern': '^-?\\d+(?:\\.\\d{1,2})?$'}, 'line_items': {'type': 'array', 'items': {'type': 'object', 'required': ['description', 'amount'], 'properties': {'amount': {'type': 'string', 'pattern': '^-?\\d+(?:\\.\\d{1,2})?$'}, 'description': {'type': 'string', 'maxLength': 300, 'minLength': 1}}, 'additionalProperties': False}, 'maxItems': 1000, 'minItems': 1}, 'supplier_name': {'type': 'string', 'maxLength': 200, 'minLength': 1}, 'purchase_order': {'type': 'string', 'maxLength': 100, 'minLength': 1}}, 'additionalProperties': False}, 'mime_type': {'enum': ['application/pdf', 'image/png', 'image/jpeg'], 'type': 'string'}, 'document_url': {'type': 'string', 'format': 'uri', 'maxLength': 2048}, 'document_xml': {'type': 'string', 'maxLength': 1000000, 'minLength': 1}, 'document_base64': {'type': 'string', 'maxLength': 13500000, 'minLength': 4}}, 'additionalProperties': False}
출력 스키마
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['decision', 'invoice', 'checks', 'evidence', 'source_sha256', 'warnings'], 'properties': {'checks': {'type': 'array', 'items': {'type': 'object', 'required': ['field', 'status'], 'properties': {'field': {'type': 'string'}, 'actual': {'type': 'string'}, 'status': {'enum': ['match', 'discrepancy', 'needs_review'], 'type': 'string'}, 'expected': {'type': 'string'}, 'calculated': {'type': 'string'}}, 'additionalProperties': False}}, 'invoice': {'type': 'object', 'required': ['number', 'supplier_name', 'purchase_order', 'currency', 'subtotal', 'tax', 'total', 'line_items'], 'properties': {'tax': {'type': ['string', 'null']}, 'total': {'type': ['string', 'null']}, 'number': {'type': ['string', 'null']}, 'currency': {'type': ['string', 'null']}, 'subtotal': {'type': ['string', 'null']}, 'line_items': {'type': 'array', 'items': {'type': 'object', 'required': ['description', 'amount'], 'properties': {'amount': {'type': 'string'}, 'description': {'type': ['string', 'null']}}, 'additionalProperties': False}}, 'supplier_name': {'type': ['string', 'null']}, 'purchase_order': {'type': ['string', 'null']}}, 'additionalProperties': False}, 'decision': {'enum': ['match', 'discrepancy', 'needs_review'], 'type': 'string'}, 'evidence': {'type': 'array', 'items': {'type': 'object', 'required': ['field', 'source', 'text'], 'properties': {'text': {'type': 'string'}, 'field': {'type': 'string'}, 'source': {'type': 'string'}}, 'additionalProperties': False}}, 'warnings': {'type': 'array', 'items': {'type': 'string'}}, 'source_sha256': {'type': 'string'}, 'pages_processed': {'type': 'integer', 'maximum': 9007199254740991, 'exclusiveMinimum': 0}}, 'additionalProperties': False}
invoice_preflight_10_pages
Paid invoice OCR ($0.13 USDC on Base): process complete PDF/image invoices up to 10 pages. Oversized PDFs are rejected before OCR.
입력 스키마
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'expected': {'type': 'object', 'properties': {'tax': {'type': 'string', 'pattern': '^-?\\d+(?:\\.\\d{1,2})?$'}, 'total': {'type': 'string', 'pattern': '^-?\\d+(?:\\.\\d{1,2})?$'}, 'currency': {'type': 'string', 'maxLength': 3, 'minLength': 3}, 'subtotal': {'type': 'string', 'pattern': '^-?\\d+(?:\\.\\d{1,2})?$'}, 'line_items': {'type': 'array', 'items': {'type': 'object', 'required': ['description', 'amount'], 'properties': {'amount': {'type': 'string', 'pattern': '^-?\\d+(?:\\.\\d{1,2})?$'}, 'description': {'type': 'string', 'maxLength': 300, 'minLength': 1}}, 'additionalProperties': False}, 'maxItems': 1000, 'minItems': 1}, 'supplier_name': {'type': 'string', 'maxLength': 200, 'minLength': 1}, 'purchase_order': {'type': 'string', 'maxLength': 100, 'minLength': 1}}, 'additionalProperties': False}, 'mime_type': {'enum': ['application/pdf', 'image/png', 'image/jpeg'], 'type': 'string'}, 'document_url': {'type': 'string', 'format': 'uri', 'maxLength': 2048}, 'document_base64': {'type': 'string', 'maxLength': 13500000, 'minLength': 4}}, 'additionalProperties': False}
출력 스키마
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['decision', 'invoice', 'checks', 'evidence', 'source_sha256', 'warnings'], 'properties': {'checks': {'type': 'array', 'items': {'type': 'object', 'required': ['field', 'status'], 'properties': {'field': {'type': 'string'}, 'actual': {'type': 'string'}, 'status': {'enum': ['match', 'discrepancy', 'needs_review'], 'type': 'string'}, 'expected': {'type': 'string'}, 'calculated': {'type': 'string'}}, 'additionalProperties': False}}, 'invoice': {'type': 'object', 'required': ['number', 'supplier_name', 'purchase_order', 'currency', 'subtotal', 'tax', 'total', 'line_items'], 'properties': {'tax': {'type': ['string', 'null']}, 'total': {'type': ['string', 'null']}, 'number': {'type': ['string', 'null']}, 'currency': {'type': ['string', 'null']}, 'subtotal': {'type': ['string', 'null']}, 'line_items': {'type': 'array', 'items': {'type': 'object', 'required': ['description', 'amount'], 'properties': {'amount': {'type': 'string'}, 'description': {'type': ['string', 'null']}}, 'additionalProperties': False}}, 'supplier_name': {'type': ['string', 'null']}, 'purchase_order': {'type': ['string', 'null']}}, 'additionalProperties': False}, 'decision': {'enum': ['match', 'discrepancy', 'needs_review'], 'type': 'string'}, 'evidence': {'type': 'array', 'items': {'type': 'object', 'required': ['field', 'source', 'text'], 'properties': {'text': {'type': 'string'}, 'field': {'type': 'string'}, 'source': {'type': 'string'}}, 'additionalProperties': False}}, 'warnings': {'type': 'array', 'items': {'type': 'string'}}, 'source_sha256': {'type': 'string'}, 'pages_processed': {'type': 'integer', 'maximum': 9007199254740991, 'exclusiveMinimum': 0}}, 'additionalProperties': False}
invoice_preflight_50_pages
Paid invoice OCR ($0.475 USDC on Base): process complete PDF/image invoices up to 50 pages. Oversized PDFs are rejected before OCR.
입력 스키마
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'expected': {'type': 'object', 'properties': {'tax': {'type': 'string', 'pattern': '^-?\\d+(?:\\.\\d{1,2})?$'}, 'total': {'type': 'string', 'pattern': '^-?\\d+(?:\\.\\d{1,2})?$'}, 'currency': {'type': 'string', 'maxLength': 3, 'minLength': 3}, 'subtotal': {'type': 'string', 'pattern': '^-?\\d+(?:\\.\\d{1,2})?$'}, 'line_items': {'type': 'array', 'items': {'type': 'object', 'required': ['description', 'amount'], 'properties': {'amount': {'type': 'string', 'pattern': '^-?\\d+(?:\\.\\d{1,2})?$'}, 'description': {'type': 'string', 'maxLength': 300, 'minLength': 1}}, 'additionalProperties': False}, 'maxItems': 1000, 'minItems': 1}, 'supplier_name': {'type': 'string', 'maxLength': 200, 'minLength': 1}, 'purchase_order': {'type': 'string', 'maxLength': 100, 'minLength': 1}}, 'additionalProperties': False}, 'mime_type': {'enum': ['application/pdf', 'image/png', 'image/jpeg'], 'type': 'string'}, 'document_url': {'type': 'string', 'format': 'uri', 'maxLength': 2048}, 'document_base64': {'type': 'string', 'maxLength': 13500000, 'minLength': 4}}, 'additionalProperties': False}
출력 스키마
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['decision', 'invoice', 'checks', 'evidence', 'source_sha256', 'warnings'], 'properties': {'checks': {'type': 'array', 'items': {'type': 'object', 'required': ['field', 'status'], 'properties': {'field': {'type': 'string'}, 'actual': {'type': 'string'}, 'status': {'enum': ['match', 'discrepancy', 'needs_review'], 'type': 'string'}, 'expected': {'type': 'string'}, 'calculated': {'type': 'string'}}, 'additionalProperties': False}}, 'invoice': {'type': 'object', 'required': ['number', 'supplier_name', 'purchase_order', 'currency', 'subtotal', 'tax', 'total', 'line_items'], 'properties': {'tax': {'type': ['string', 'null']}, 'total': {'type': ['string', 'null']}, 'number': {'type': ['string', 'null']}, 'currency': {'type': ['string', 'null']}, 'subtotal': {'type': ['string', 'null']}, 'line_items': {'type': 'array', 'items': {'type': 'object', 'required': ['description', 'amount'], 'properties': {'amount': {'type': 'string'}, 'description': {'type': ['string', 'null']}}, 'additionalProperties': False}}, 'supplier_name': {'type': ['string', 'null']}, 'purchase_order': {'type': ['string', 'null']}}, 'additionalProperties': False}, 'decision': {'enum': ['match', 'discrepancy', 'needs_review'], 'type': 'string'}, 'evidence': {'type': 'array', 'items': {'type': 'object', 'required': ['field', 'source', 'text'], 'properties': {'text': {'type': 'string'}, 'field': {'type': 'string'}, 'source': {'type': 'string'}}, 'additionalProperties': False}}, 'warnings': {'type': 'array', 'items': {'type': 'string'}}, 'source_sha256': {'type': 'string'}, 'pages_processed': {'type': 'integer', 'maximum': 9007199254740991, 'exclusiveMinimum': 0}}, 'additionalProperties': False}
invoice_preflight_quote
FREE, no wallet or document upload: choose the lowest priced Invoice Preflight tool from document type, PDF page count, and optional byte size. Call this before a paid invoice tool when the tier is uncertain. It does not inspect or validate the document.
입력 스키마
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['document_type'], 'properties': {'page_count': {'type': 'integer', 'maximum': 10000, 'minimum': 1}, 'document_type': {'enum': ['ubl_xml', 'pdf', 'image'], 'type': 'string'}, 'file_size_bytes': {'type': 'integer', 'maximum': 9007199254740991, 'minimum': 1}}, 'additionalProperties': False}
출력 스키마
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['status', 'recommended_tool', 'price_usdc', 'network', 'reason', 'no_payment_taken', 'document_not_inspected', 'final_validation_on_paid_call'], 'properties': {'reason': {'type': 'string'}, 'status': {'enum': ['ready', 'needs_page_count', 'unsupported', 'temporarily_unavailable'], 'type': 'string'}, 'network': {'enum': ['eip155:8453', 'eip155:84532'], 'type': 'string'}, 'price_usdc': {'type': ['string', 'null']}, 'no_payment_taken': {'type': 'boolean', 'const': True}, 'recommended_tool': {'anyOf': [{'enum': ['invoice_preflight', 'invoice_preflight_10_pages', 'invoice_preflight_50_pages'], 'type': 'string'}, {'type': 'null'}]}, 'document_not_inspected': {'type': 'boolean', 'const': True}, 'final_validation_on_paid_call': {'type': 'boolean', 'const': True}}, 'additionalProperties': False}
삭제됨
verify_claim
2026년 9월 29일 2:49 AM
삭제됨
simulate_transaction
2026년 9월 29일 2:49 AM
삭제됨
scan_content
2026년 9월 29일 2:49 AM
삭제됨
route_tool
2026년 9월 29일 2:49 AM
삭제됨
mcp_server_inspect
2026년 9월 29일 2:49 AM
삭제됨
get_live_quote
2026년 9월 29일 2:49 AM
삭제됨
extract_structured
2026년 9월 29일 2:49 AM
삭제됨
check_wallet
2026년 9월 29일 2:49 AM
삭제됨
check_url
2026년 9월 29일 2:49 AM
삭제됨
check_package
2026년 9월 29일 2:49 AM
삭제됨
check_change
2026년 9월 29일 2:49 AM
변경됨
invoice_preflight_50_pages
2026년 9월 27일 2:40 AM
변경됨
invoice_preflight_10_pages
2026년 9월 27일 2:40 AM
변경됨
invoice_preflight
2026년 9월 27일 2:40 AM
추가됨
verify_claim
2026년 9월 27일 2:40 AM
추가됨
check_change
2026년 9월 27일 2:40 AM
추가됨
extract_structured
2026년 9월 27일 2:40 AM
추가됨
get_live_quote
2026년 9월 27일 2:40 AM
추가됨
route_tool
2026년 9월 27일 2:40 AM
추가됨
check_package
2026년 9월 27일 2:40 AM
추가됨
check_wallet
2026년 9월 27일 2:40 AM
추가됨
simulate_transaction
2026년 9월 27일 2:40 AM
추가됨
scan_content
2026년 9월 27일 2:40 AM
추가됨
check_url
2026년 9월 27일 2:40 AM
추가됨
mcp_server_inspect
2026년 9월 27일 2:40 AM
추가됨
invoice_preflight_quote
2026년 9월 27일 2:40 AM
추가됨
invoice_preflight_50_pages
2026년 9월 25일 2:40 AM
추가됨
invoice_preflight_10_pages
2026년 9월 25일 2:40 AM
추가됨
invoice_preflight
2026년 9월 25일 2:40 AM