MCP 服务器

service-report

io.github.theluckystrike/service-report
商业与运营 公开且可连接 MCP 2026-07-28

此 MCP 可以做什么

Creates and manages field-service work orders, labor and materials lines, status progress, invoice payloads, and completion reports.

completion_report_pdf
Completion report as a PDF
Call this tool to render the A4 completion report of one work order and return a download link valid for one hour: the lines, the hours, the materials, the totals and the sign-off block. Pro.
只读 幂等
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['work_order'], 'properties': {'out_path': {'type': 'string', 'maxLength': 1000, 'description': 'Name for the downloaded file, e.g. harbour-cafe-report. Defaults to the work order id; the report comes back as a download link valid for one hour'}, 'work_order': {'type': 'string', 'maxLength': 200, 'description': 'The work order id, e.g. WO-2026-0001, or the client name when only one job is theirs'}}, 'additionalProperties': False}
completion_report_text
Completion report as plain text
Turn a work order into a plain-text completion report: what was done, the labour hours, the materials, the totals and a sign-off block, ready to paste into an email. The same text also comes back as a .txt download link valid for one hour. Free on every tier.
只读 幂等
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['work_order'], 'properties': {'work_order': {'type': 'string', 'maxLength': 200, 'description': 'The work order id, e.g. WO-2026-0001, or the client name when only one job is theirs'}}, 'additionalProperties': False}
license_activate
Activate license
Turn Pro on for this connection with key, an MCPL1.<payload>.<signature> issued at checkout for this server or the bundle. Data under your token stays; a wrong or expired key changes nothing. license_status confirms it.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['key'], 'properties': {'key': {'type': 'string', 'description': 'License key from checkout, MCPL1.<payload>.<signature>'}}, 'additionalProperties': False}
license_status
License status
Report this endpoint's licence state for your token as JSON: the product, the tier free or pro, why it is not Pro, and the checkout URL. Call it to explain a free-tier refusal. No arguments, nothing changes.
只读 幂等
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {}}
work_order_add_line
Add a parts or labour line
Add one line: parts with quantity, unit_cost_minor in whole MINOR units and optional markup, or labour with hours and rate_minor. A line on an invoiced order, or dated before the request, is refused.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['work_order', 'kind', 'description'], 'properties': {'date': {'type': 'string', 'maxLength': 10, 'description': 'The day this line was worked or fitted, YYYY-MM-DD'}, 'kind': {'enum': ['parts', 'labour'], 'type': 'string', 'description': 'parts for materials, labour for time on the job'}, 'note': {'type': 'string', 'maxLength': 2000}, 'hours': {'type': 'number', 'maximum': 100000, 'description': 'labour only: hours worked, e.g. 3.5', 'exclusiveMinimum': 0}, 'quantity': {'type': 'number', 'maximum': 1000000, 'description': 'parts only: how many. A negative or zero quantity is refused', 'exclusiveMinimum': 0}, 'rate_minor': {'type': 'integer', 'maximum': 1000000000000, 'minimum': 0, 'description': 'labour only: the hourly rate in whole minor units. Omit only once the shared business profile carries a default rate'}, 'work_order': {'type': 'string', 'maxLength': 200, 'description': 'The work order id, e.g. WO-2026-0001, or the client name when only one job is theirs'}, 'description': {'type': 'string', 'maxLength': 2000, 'description': 'What it is, e.g. 3kW immersion element, or Second fix and test'}, 'markup_percent': {'type': 'number', 'maximum': 1000, 'minimum': 0, 'description': 'parts only: percent added to the UNIT cost before billing. Default 0'}, 'unit_cost_minor': {'type': 'integer', 'maximum': 1000000000000, 'minimum': 0, 'description': 'parts only: what one costs YOU, in whole minor units. 1299 is EUR 12.99'}}, 'additionalProperties': False}
work_order_create
Raise a work order
Raise a job order and return its WO-YYYY-NNNN number: the client, the site address, the date it was asked for, what the job is and how urgent. Free tier: 5 open orders.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['client', 'site_address', 'requested_date', 'description'], 'properties': {'note': {'type': 'string', 'maxLength': 2000}, 'client': {'type': 'string', 'maxLength': 200, 'description': "A client name or id from the invoice server's client records. An unknown name needs client_address as well, so a typo is not filed as a new customer"}, 'currency': {'type': 'string', 'pattern': '^[A-Za-z]{3}$', 'description': "ISO code the job is priced in. Defaults to the shared business profile's currency"}, 'priority': {'enum': ['low', 'normal', 'high', 'urgent'], 'type': 'string', 'description': 'How urgent the job is. Default normal'}, 'description': {'type': 'string', 'maxLength': 2000, 'description': 'What the job is, e.g. Replace immersion heater and test'}, 'client_email': {'type': 'string', 'maxLength': 200}, 'duplicate_ok': {'type': 'boolean', 'description': 'Raise it even though an identical work order exists, for a genuinely repeated visit. Default false'}, 'site_address': {'type': 'string', 'maxLength': 2000, 'description': 'Where the work happens. This is the site, not the billing address'}, 'client_vat_id': {'type': 'string', 'maxLength': 200}, 'client_address': {'type': 'string', 'maxLength': 2000, 'description': "The client's billing address, for a client that is not in the invoice records yet"}, 'requested_date': {'type': 'string', 'maxLength': 10, 'description': 'The date the work was asked for, YYYY-MM-DD'}}, 'additionalProperties': False}
work_order_delete
Delete a draft work order
Delete a DRAFT work order with no lines, freeing an open slot. One past draft is refused, naming the date it got there, and so is one carrying lines. The WO number is never reissued. work_order_status moves it on.
可能执行破坏性操作
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['work_order'], 'properties': {'work_order': {'type': 'string', 'maxLength': 200, 'description': 'The work order id, e.g. WO-2026-0001, or the client name when only one job is theirs'}}, 'additionalProperties': False}
work_order_get
Show one work order
Return one work order in full by WO number or client: the site, every parts and labour line with the unit billed, hours, materials, net and VAT, and the status history. Reads only. Free.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['work_order'], 'properties': {'work_order': {'type': 'string', 'maxLength': 200, 'description': 'The work order id, e.g. WO-2026-0001, or the client name when only one job is theirs'}}, 'additionalProperties': False}
work_order_invoice_payload
Invoice payload for a work order
Build an invoice_create-ready payload from the lines, with VAT at the shared profile rate. Writes nothing and marks nothing: raise the invoice in the invoice server, then set this order invoiced. Pro.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['work_order'], 'properties': {'tax_rate': {'type': 'number', 'maximum': 1000, 'minimum': -100, 'description': "VAT percent per line, overriding the shared business profile's default rate"}, 'issue_date': {'type': 'string', 'maxLength': 10, 'description': 'The invoice issue date, YYYY-MM-DD. Default today'}, 'work_order': {'type': 'string', 'maxLength': 200, 'description': 'The work order id, e.g. WO-2026-0001, or the client name when only one job is theirs'}}, 'additionalProperties': False}
work_order_list
List work orders
List work orders newest requested first: status, priority, client, site, hours, labour, materials and net value, with totals per currency. Filter by status, client and requested-date range. Free.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'to': {'type': 'string', 'maxLength': 10, 'description': 'Latest requested_date, YYYY-MM-DD'}, 'from': {'type': 'string', 'maxLength': 10, 'description': 'Earliest requested_date, YYYY-MM-DD'}, 'limit': {'type': 'integer', 'maximum': 500, 'minimum': 1, 'description': 'Maximum rows returned, default and ceiling 500'}, 'client': {'type': 'string', 'maxLength': 200, 'description': 'Only jobs whose client name contains this text'}, 'status': {'enum': ['draft', 'scheduled', 'in_progress', 'done', 'invoiced', 'open'], 'type': 'string', 'description': 'One status, or open for draft, scheduled and in_progress together'}}, 'additionalProperties': False}
work_orders_report
Report the board
Report the whole board: how many work orders sit at each status, the hours logged this month, and the value not yet invoiced per currency, with the oldest open jobs named. Pro.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'limit': {'type': 'integer', 'maximum': 500, 'minimum': 1, 'description': 'Maximum oldest-open rows listed, default and ceiling 500'}, 'month': {'type': 'string', 'maxLength': 7, 'description': 'The month for the hours figure, YYYY-MM. Default the current month'}}, 'additionalProperties': False}
work_order_status
Move a work order along
Move one work order exactly one step: draft, scheduled, in_progress, done, invoiced, stamping date and note. A skipped, backwards or backdated step is refused and nothing is written. Free.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['work_order', 'status'], 'properties': {'date': {'type': 'string', 'maxLength': 10, 'description': 'The day it reached this status, YYYY-MM-DD. Default today'}, 'note': {'type': 'string', 'maxLength': 2000, 'description': 'What happened, e.g. Booked for Tuesday morning, or Signed off by the tenant'}, 'status': {'enum': ['draft', 'scheduled', 'in_progress', 'done', 'invoiced'], 'type': 'string', 'description': 'The status to move to. It must be the next one along'}, 'work_order': {'type': 'string', 'maxLength': 200, 'description': 'The work order id, e.g. WO-2026-0001, or the client name when only one job is theirs'}}, 'additionalProperties': False}
已添加
license_activate
2026年9月24日 02:40
已添加
license_status
2026年9月24日 02:40
已添加
work_orders_report
2026年9月24日 02:40
已添加
work_order_invoice_payload
2026年9月24日 02:40
已添加
completion_report_pdf
2026年9月24日 02:40
已添加
completion_report_text
2026年9月24日 02:40
已添加
work_order_delete
2026年9月24日 02:40
已添加
work_order_list
2026年9月24日 02:40
已添加
work_order_get
2026年9月24日 02:40
已添加
work_order_status
2026年9月24日 02:40
已添加
work_order_add_line
2026年9月24日 02:40
已添加
work_order_create
2026年9月24日 02:40