
Invoice
io.github.LAHutchins91v1.0.1更新於 Oct 5, 2026
Approved freelance invoice: line items, rates, due date, and late terms, over MCP.
概覽
讓助理讀取自由工作者的已核准發票記錄,並提出只有在明確核准後才會生效的變更。
- 功能
- Invoice 保存一位自由工作者的已核准發票——明細項目、數量、已核准的費率、到期日與滯納條款——並提供工具來列出、建立與讀取發票,新增與描述明細項目,設定數量與到期日,寫入滯納條款,提供折扣以及封存發票。發票封存後,新增明細、變更費率、折扣或更改到期日等直接編輯會被拒絕;變更必須透過 suggest_invoice_change 再經 accept_invoice_change 並明確核准。read_invoice 是助理在回答前應執行的讀取動作。
- 適用情境
- 當助理需要回答關於某張已核准自由工作者發票的問題,或在維持已核准記錄權威性的前提下草擬並提議發票變更時適用。它不是通用的會計或帳務系統。
- 執行需求
- 使用提供者的遠端端點,或自行架設執行個體(Node.js;npm install、build、start)並使用你設定的基礎 URL;預設本機 MCP 位址為 Invoice 帳號進行 OAuth 登入;工具需要 Pro 或有效試用。伺服器端環境變數包括 APP_BASE_URL、SUPABASE_URL、SUPABASE_ANON_KEY、STRIPE_SECRET_KEY、STRIPE_WEBHOOK_SECRET、STRIPE_PRICE_MONTHLY、STRIPE_PRICE_YEARLY 與 INVOICE_DATA_PATH。不應把 API 金鑰或密碼放入標頭。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Invoice,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"invoice": {
"type": "http",
"url": "https://invoice-continuity2.vercel.app/mcp"
}
}
}README
Invoice
Invoice keeps a freelancer's approved invoice — line items, quantities, the rate already approved, the due date, and late terms — then lets an assistant read that record before it answers. An assistant cannot add a line, change a rate, invent a discount, or move a due date unless that change is explicitly approved.
It works with ChatGPT, Claude, Gemini, Grok, and Cursor, plus any other MCP client that can do Streamable HTTP and OAuth. It is not a ChatGPT-only plugin.
Sign in with your Invoice account when the assistant opens OAuth. Do not paste an API key or password into a header. Invoice supports dynamic client registration: leave the client id and secret empty. The protected-resource metadata at /.well-known/oauth-protected-resource/mcp points clients at the OAuth issuer, which registers them.
Invoice tools need Pro or an active trial. A new subscription includes a 14-day trial. This page does not list a price. Checkout shows the billing interval and payment terms. Amounts stored on an invoice are the freelancer's approved figures, in whole minor units of the invoice currency. They are not a product price.
There is no hosted production domain in this repository. Run the server yourself and use the base URL you configure. The default MCP address is http://127.0.0.1:3000/mcp.
What the assistant can do
After you approve the connection, the server exposes these tools:
- list_invoices
- begin_invoice
- read_invoice
- place_line
- describe_line
- quote_line_rate
- set_line_quantity
- set_invoice_due
- write_late_terms
- offer_discount
- seal_invoice
- suggest_invoice_change
- accept_invoice_change
read_invoice is the read the assistant should do before it answers. Draft figures are not an approved commitment. A suggested invoice change does not change the record. After the invoice is sealed, place_line refuses a new line, quote_line_rate refuses a changed rate, offer_discount refuses a discount, and set_invoice_due refuses a moved due date. Those changes go through suggest_invoice_change and then accept_invoice_change, and only when you explicitly approve that change.
The assistant only calls these tools when you and the host allow it.
Connect
Cursor, in ~/.cursor/mcp.json or a project .cursor/mcp.json:
Do not add a headers block. Cursor registers a client and opens sign-in.
Claude Code:
Do not pass an Authorization header. Other clients use the same address, choose OAuth, and leave client id and secret empty. Steps for ChatGPT, Claude, Gemini, Grok, and Cursor are on the connect page at /connect.
Registry metadata for this server is in server.json (io.github.LAHutchins91/invoice). The remote URL there is https://invoice-continuity2.vercel.app/mcp.
Run
When stdin is a terminal, Invoice serves Streamable HTTP on port 3000. When stdin is not a terminal, it speaks MCP over stdio and still opens the HTTP port. Logs during stdio mode go to stderr so they do not mix with the protocol.
Records are stored durably in a JSON file. The default path is ~/.invoice/invoice.json. Set INVOICE_DATA_PATH to move it. One server process owns that file. Do not point it at another product's data file.
OAuth uses the same idea as a Supabase authorization server with dynamic client registration. Set these on the server process, not in an MCP header:
APP_BASE_URL(defaulthttp://localhost:3000)SUPABASE_URLSUPABASE_ANON_KEYSTRIPE_SECRET_KEYSTRIPE_WEBHOOK_SECRETSTRIPE_PRICE_MONTHLYandSTRIPE_PRICE_YEARLY(Stripe catalog ids, not prices)
Tool calls other than discovery require a signed-in account whose subscription status is active or trialing.
來源:README.md,提交 c44bc9f
工具
0版本歷史
1- v1.0.1最新Oct 5, 2026
