Myhotlunchbox Mcp

io.github.chrischall由 GitHub 帳號 chrischall 發布v1.3.1更新於 Nov 7, 2026

My Hot Lunchbox school lunch ordering for Claude — calendar, cart, orders, payments

概覽

AI 產生的概覽

將助理連接到 My Hot Lunchbox 家長帳號,用來查看學校午餐行事曆、管理學生、下單並處理帳務。

可以做什麼
  • 檢查帳號與連接器健康狀態,並重設工作階段
  • 列出、建立、更新與刪除學生資料
  • 讀取午餐行事曆、單日菜單、菜色與訂單表單
  • 查看購物車,建立、修改與刪除訂單,並在結帳時計價與付款
  • 查看交易、訂閱、禮品卡與優惠券,並套用或移除
  • 將行事曆、訂單與交易報表列印為 PDF
適用情境
適合透過 My Hot Lunchbox 為孩子訂購學校午餐的家長,希望讓助理查看菜單、下單或修改訂單,並追蹤扣款與訂閱,而不必手動操作網站。
執行需求
透過 npx 或作為 Claude Code 外掛在本機執行。需要 MYHOTLUNCHBOX_USERNAME 與 MYHOTLUNCHBOX_PASSWORD 進行真實的伺服器端登入,並需要連線至該服務的網路。選用設定包括基礎位址、PDF 輸出資料夾,以及權杖快取位置或是否停用快取。
安裝前請注意
帳號密碼會存放在設定中並用於真實登入,預設也會在磁碟寫入權杖快取。結帳會實際向已儲存的付款方式扣款,而預期金額僅供歸因,並非防護機制。寫入類工具尚未在真實服務上驗證,請先檢查確認預覽並在之後重新讀取。禮品卡代碼等同可兌換的金額,除非主動顯示否則會被遮蔽。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Myhotlunchbox Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

myhotlunchbox-mcp

MCP server for My Hot Lunchbox — read the school lunch calendar, manage students, place and change orders, and track deliveries and payments on a parent account.

Developed and maintained by AI (Claude Code). Use at your own discretion.

Install

sh
npx myhotlunchbox-mcp

Or as a Claude Code plugin:

sh
/plugin marketplace add chrischall/myhotlunchbox-mcp/plugin install myhotlunchbox-mcp

Configure

sh
[email protected]MYHOTLUNCHBOX_PASSWORD=…

That is the whole setup. The server performs a real server-side sign-in against ordernow.myhotlunchbox.com (OAuth2 password grant) and renews the session with the refresh token it receives — no browser extension, no signed-in tab, no captured cookie. Nothing is written to disk.

MYHOTLUNCHBOX_BASE_URL overrides the app origin if it ever moves. It must be https:// (plain http:// is accepted only for localhost), and the token cache is bound to it, so changing it signs in again.

The server boots without credentials so a host's install-time tools/list probe still works; the configuration error surfaces on the first tool call.

Tools

35 tools, all prefixed mhlb_. All 20 read tools are verified live against a real parent account (node scripts/verify-reads.mjs); the 14 write tools are not — see below.

The read claim carries a date because it can go stale with no tool file touched: an SDK or zod major re-plumbs every read path underneath it. Last re-run 2026-09-19 on 1.0.0 — the tree after the MCP SDK v2 migration and the forced zod 4.6.2 bump — 20/20 green.

Account — mhlb_whoami, mhlb_session_reset

Health — mhlb_healthcheck (is this connector working? reports whether the credential resolved, whether My Hot Lunchbox accepted it, and what to fix — unlike mhlb_whoami, which throws instead of answering)

Students — mhlb_list_students, mhlb_get_student_form, mhlb_new_student_form, mhlb_create_student, mhlb_update_student, mhlb_delete_student

Calendar — mhlb_get_calendar, mhlb_get_day

Ordering — mhlb_get_cart, mhlb_get_cart_tabs, mhlb_get_menu, mhlb_get_order_form, mhlb_get_order, mhlb_create_order, mhlb_update_order, mhlb_delete_order

Billing — mhlb_list_transactions, mhlb_get_transaction, mhlb_list_subscriptions, mhlb_get_subscription_settings, mhlb_set_subscription_enabled, mhlb_unsubscribe_order, mhlb_list_gift_cards, mhlb_apply_gift_card, mhlb_get_coupon, mhlb_apply_coupon, mhlb_remove_coupon. mhlb_list_gift_cards masks each code to its last 4 characters (a code is redeemable money); pass revealCodes: true for the full code.

Checkout — mhlb_init_checkout, mhlb_checkout

Reports — mhlb_print_calendar, mhlb_print_orders, mhlb_print_transaction. These return real PDFs. On a local install each writes the file and returns its path, or the bytes inline as base64 with inline: true. Set MYHOTLUNCHBOX_OUTPUT_DIR (the "Report folder" setting in the .mcpb) to choose where they land; it defaults to ~/Downloads. Existing files are never overwritten. On a hosted server (mcp-host) the PDF comes back as a signed, expiring download link (url, expiresAt) and nothing is written to the server's disk; inline: true still returns base64 up to 750 KB, and links anything larger.

Upgrading

next release

Hosted deployments only (local installs are unchanged): the report tools no longer write the PDF under MCP_DATA_DIR and return a path nobody can open. They return { via: "link", filename, contentType, bytes, url, expiresAt } instead (note added when an inline: true request was too large and a link was returned). A hosted server with no blob store returns a report up to 750 KB as { filename, contentType, bytes, base64, note } and refuses a larger one as too_large.

Confirmations

Every mutating tool asks you to confirm before it sends anything. On a client that can show a confirmation prompt (Claude Code) you get the prompt, with the exact request the tool would send. On a client that cannot (claude.ai, Claude Desktop), the first call makes no network call: it returns a preview of exactly what it would send plus a confirmToken, and only a repeat call with the same arguments and that token goes through. A token is single-use, and changing any argument between the two calls is refused (DRAFT_CHANGED).

variabledefault
MCP_CONFIRM_MODEask-userWhat a write does on a client that cannot show a confirmation prompt (claude.ai, Claude Desktop). ask-user: two steps — the first call does nothing and returns a preview plus a token, and the model must get your approval in chat before calling again with it. auto: the same two steps, but the model may use the token after reviewing the preview itself. refuse: writes are refused on such clients. A client that can show prompts (Claude Code) always gets the real prompt, unless MCP_CONFIRM_ELICITATION=off. An unrecognised value is treated as refuse.
MCP_CONFIRM_ELICITATIONonoff never sends a confirmation prompt, so every client gets the MCP_CONFIRM_MODE path. Set it for a client that declares it can show prompts but never does (the gated call hangs — opencode 2.0.x). Any other value stays on, with a stderr warning.
MCP_CONFIRM_TTL_SECONDS600How long a token stays valid.
MCP_CONFIRM_SECRETrandom per processSigning key; set it only if tokens must survive a server restart.

mhlb_checkout charges a real payment method. The server prices the charge from orderIds, so nothing client-side can bind the amount — there is no total in the request to check against. expectedTotal is therefore attribution, not a guard: you state what you expected, and it is shown in the confirmation preview (and bound into its token) and returned in the result so an unexpected charge is traceable to the call that made it. What the tool does refuse outright is paying a non-zero total with no orderIds.

Writes: shapes captured, acceptance unverified

npm run capture:writes runs every mutating tool against a local proxy that forwards reads to the real service but answers writes itself, so the payloads are built from genuine server models and nothing happens upstream. It also proves all 13 send nothing until they are confirmed with a confirmToken.

What that established, and corrected: mhlb_delete_order and mhlb_unsubscribe_order take {orderId, eventDate, studentId, isRepeated, isSubscribed} — not the order model — and checkout takes {orderIds, checkoutType, couponCode, giftCardCode, schoolDonations}.

What is still unverified is whether the server accepts these bodies. Shape is not acceptance; only a real write shows that, and none has been made. Inspect the confirmation preview before approving it, and re-read afterwards — a 200 is not proof a write persisted.

Two limits on mhlb_checkout specifically:

  • It can only pay with a card already saved on the account. Paying with a new card needs a Stripe token minted by Stripe.js in a browser, which no server-side client can produce.
  • It generates an idempotency key (unless you pass one) and returns it with the result and with any error. If a checkout fails ambiguously, retry with that same idempotencyKey rather than a fresh call — that is what stops a retry becoming a second charge. A key you pass yourself must be the same on both confirmation calls.

Ordering is read-modify-write

There is no "add item X" call. Fetch the model, edit it, send it back whole:

  1. mhlb_get_menu — what is orderable for a student on a date
  2. mhlb_get_order_form — the order model to fill in (its data field)
  3. mhlb_create_order — send that data back (and confirm the preview)
  4. mhlb_init_checkout → mhlb_checkout — price, then pay

Fields omitted from the payload are cleared, not preserved.

Reads that carry school-, vendor- or menu-authored text (calendar, menus, cart, orders, students, transactions, subscriptions, coupon) return {"untrusted_content":true,"note":…,"data":…}: the payload sits under data, and the note tells the model to treat that text as data, never as instructions.

Shell skill

skills/myhotlunchbox covers the same account from a shell with curl — no MCP process needed. Useful in scripts, or on a machine where this server is not installed.

Notes

  • /deliveryInfo/* and /calendar/viewMatchedVendors look parent-facing in the compiled client but return 403 for a parent account — they belong to the school/vendor dashboards. No tool wraps them.
  • Only the parent role is wired. The same API also serves school-admin and vendor roles; those endpoints return 403, which the client reports as a role mismatch rather than a broken session.
  • docs/MYHOTLUNCHBOX-API.md records how the API was mapped and exactly what is verified. docs/api-surface.txt is the full 359-endpoint extraction.

Licence

MIT

來源:README.md,提交 23edf78

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

18
  1. v1.3.1最新Nov 7, 2026
  2. v1.3.0Nov 4, 2026
  3. v1.2.8Oct 20, 2026
  4. v1.2.7Oct 16, 2026
  5. v1.2.6Oct 10, 2026
  6. v1.2.5Oct 7, 2026
  7. v1.2.4Oct 5, 2026
  8. v1.2.3Oct 3, 2026
  9. v1.2.2Sep 30, 2026
  10. v1.2.1Sep 25, 2026
  11. v1.2.0Sep 24, 2026
  12. v1.1.4Sep 23, 2026
  13. v1.1.3Sep 23, 2026
  14. v1.1.2Sep 21, 2026
  15. v1.1.1Sep 21, 2026
  16. v1.1.0Sep 20, 2026
  17. v1.0.0Sep 19, 2026
  18. v0.5.1Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分