Delhaize receipts

v0.1.0
io.github.SHIMABEIGI/delhaize-mcp Checked 4 days ago Published 2 months ago

Fetch your own Delhaize (Belgium) till receipts and weekly promotions with a headless browser.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

delhaize_auth_status

Check whether the saved Delhaize browser profile is still logged in. Returns {logged_in: bool, message: str}. If logged_in is false, the user must run `delhaize-receipts login` once to refresh the session; this server cannot and must not perform the login itself.

delhaize_list_receipts

List Delhaize receipts for the current month and the previous `months_back` months, flagging which are not yet in receipts_all.json. Read only: opens nothing and writes nothing. Use this to preview before fetching. months_back=1 (the default) covers this month and last, which is enough to catch a month boundary. Returns {count, new_count, receipts:[{date, store, total, points, savings, is_new}]}.

ParameterTypeDescription
months_backinteger

delhaize_fetch_new_receipts

Save the images of any NEW Delhaize receipts (this month and the previous `months_back` months) into receipts_inbox, ready for the existing pipeline. Not read only: it writes image files into receipts_inbox. It is non destructive: it never overwrites, never deletes, and never edits receipts_all.json. A receipt already present in receipts_all.json is skipped. After it runs, the images can be read (by the assistant or any OCR) and recorded in receipts_all.json by your own process; checking that the lines sum to the printed total before recording is strongly recommen…

ParameterTypeDescription
months_backinteger

delhaize_backfill_images

Save the missing PHOTOS of Delhaize receipts that are already in the record but have no image. A receipt lacks a photo when its record has no existing `image` path and no matching file is already in receipts_backfill/. Not read only: it writes image files into receipts_backfill/. It never edits receipts_all.json and never uses receipts_inbox, so nothing is ingested twice. Each file is named '<date> <store> <total>' so it pairs with its receipt. Returns {missing, found, saved:[...], missed:[...], not_in_window:[...], next_step}.

ParameterTypeDescription
months_backinteger

delhaize_fetch_promotions

Read this week's public Delhaize promotions listing (store context from the saved profile) and save each page's raw data into promos_inbox/<today>/. Not read only: it writes JSON files into promos_inbox. It never edits anything else and never judges products; parsing the capture is left to your own code. Returns {pages, tiles, api_bodies, out_dir, stopped, next_step}.

ParameterTypeDescription
max_pagesinteger