MCP-server
Lad din AI-agent arbejde på lageret
Reolora har en MCP-server, så Claude, ChatGPT, Codex, Cursor, Grok og andre agenter kan se beholdning, bestille ind, flytte og tælle. De følger de samme regler som en medarbejder, og alt står i hændelsesloggen under agentens navn.
https://mcp.reolora.dk/mcp- Transport
- Streamable HTTP
- Login
- OAuth 2.1 eller API-nøgle
- Værktøjer
- 88
Forbind
Vælg din klient. Interaktive klienter logger ind med OAuth; bots og scripts bruger en API-nøgle.
Claude Code
- Tilføj serveren i terminalen.
- Skriv /mcp i Claude Code og vælg reolora for at logge ind i browseren.
claude mcp add --transport http reolora https://mcp.reolora.dk/mcpMed en API-nøgle i stedet:
claude mcp add --transport http reolora https://mcp.reolora.dk/mcp \
--header "Authorization: Bearer rk_live_…"Claude.ai / Desktop
- Åbn Indstillinger → Connectors → Tilføj custom connector.
- Navn: Reolora. URL: adressen herunder. Tryk Tilføj og log ind.
- Virker i Claude.ai, Claude Desktop og Claude på mobilen.
https://mcp.reolora.dk/mcpChatGPT / Dots
- Indstillinger → Apps → Avancerede indstillinger → slå Developer mode til.
- Opret en app: navn Reolora, URL herunder, login OAuth.
- Virker med Plus, Pro, Business, Enterprise og Education på chatgpt.com. ChatGPT spørger før hver ændring. Dots bruger de samme connectors; Deep Research bruger værktøjerne search og fetch.
https://mcp.reolora.dk/mcpCodex
- Tilføj serveren, og log ind (åbner browseren).
codex mcp add reolora --url https://mcp.reolora.dk/mcp
codex mcp login reoloraMed en API-nøgle i stedet: (~/.codex/config.toml)
[mcp_servers.reolora]
url = "https://mcp.reolora.dk/mcp"
bearer_token_env_var = "REOLORA_API_KEY"Cursor
- Tryk på knappen, eller læg blokken i ~/.cursor/mcp.json. Cursor beder dig logge ind.
- Cursor tager omkring 40 værktøjer. Brug en mindre gruppe ved at sætte den efter adressen: /mcp/read (kun læsning), /mcp/orders, /mcp/stock, /mcp/purchasing eller /mcp/catalogue.
{
"mcpServers": {
"reolora": {
"url": "https://mcp.reolora.dk/mcp"
}
}
}Med en API-nøgle i stedet:
{
"mcpServers": {
"reolora": {
"url": "https://mcp.reolora.dk/mcp",
"headers": {
"Authorization": "Bearer rk_live_…"
}
}
}
}Grok
- grok.com → Connectors → New connector → Custom. URL herunder, og log ind.
- Grok Build CLI tilføjes som Claude Code. Fra xAI’s API bruger du MCP-værktøjet:
https://mcp.reolora.dk/mcpxAI API
{
"type": "mcp",
"server_url": "https://mcp.reolora.dk/mcp",
"server_label": "reolora",
"authorization": "Bearer rk_live_…"
}VS Code
- Tryk på knappen, eller læg blokken i .vscode/mcp.json. Copilot beder dig logge ind.
{
"servers": {
"reolora": {
"type": "http",
"url": "https://mcp.reolora.dk/mcp"
}
}
}Eller i terminalen:
code --add-mcp '{"name":"reolora","type":"http","url":"https://mcp.reolora.dk/mcp"}'Gemini CLI
- Tilføj serveren, og log ind med /mcp auth reolora.
gemini mcp add --transport http reolora https://mcp.reolora.dk/mcpMed en API-nøgle i stedet: (~/.gemini/settings.json)
{
"mcpServers": {
"reolora": {
"httpUrl": "https://mcp.reolora.dk/mcp",
"headers": {
"Authorization": "Bearer rk_live_…"
}
}
}
}Log ind
OAuth 2.1
Til Claude.ai, ChatGPT, Dots, Grok, Cursor, VS Code og CLI’erne med login. Klienten finder selv login-siden; du logger ind med din e-mail og godkender. Appen kan så det samme som dig.
API-nøgle
Til bots, der kører selv, og CLI’er uden browser. En nøgle hører til en agent i Team, så agenten har sit eget navn og sin egen rolle. Send den som Authorization: Bearer rk_live_…. Nøglen vises én gang; 120 kald i minuttet som standard.
Opret nøglen under Kontor → Team → Nøgler.
Roller
Hvad en agent må, afhænger af dens rolle. Den vælges, når agenten oprettes, og kan ændres når som helst.
Se read
Læser alt på sine lagre. Ændrer intet og foreslår intet.
Foreslå suggest
Ændringer bliver til forslag under Forslag, som en lagerchef godkender. Godt at starte med.
Arbejd execute
Daglig drift: modtag, send vareflytninger, tæl, flyt, ordrer og returer. Indkøb og kartotek bliver forslag.
Styr manage
Som en lagerchef: også indkøb, min/max og kartotek.
Logger du ind med OAuth, har agenten din egen rolle.
Værktøjer 88
Listen kommer direkte fra serveren. Alle lister har limit og cursor; alle ændringer har preview og request_id; site kan udelades, når man har ét lager.
| Navn | Hvad den gør | Slags |
|---|---|---|
warehouse_status | Start here. Orders by status, items out/reorder/ok, open purchase orders and transfers, pending proposals, the latest events and cursor (the newest event n). Pass since (a cursor you kept) to also get summary_since: what happened after it, by kind and by who.{"since": 1520} | læser |
find_items | Find items by SKU, EAN, supplier SKU or part of the name, with where they are on this site.{"query": "løbesko 42"} | læser |
stock_overview | Stock per item: available (on hand minus reserved), on its way, min/max, sold in 30 days, days left and status (out, reorder, coming, over, ok, none = no min/max). Filter by status, group or text; most urgent first.{"status": "out"} | læser |
item_detail | Everything about one item: master data, stock on every site, places here, min/max, what is on its way, 12 weeks of sales, recent history.{"sku": "SKU-1003"} | læser |
list_items | The catalogue (all sites) with group and supplier: filter by group name, items without a group, or text. For grouping and clean-up.{"without_group": true} | læser |
groups_and_suppliers | The item group tree (id, name, parent) and the suppliers (id, name, lead time in days, e-mail).{} | læser |
reorder_suggestions | What to buy now, per supplier: items below min (counting what is on its way), filled up to max in whole packs, with value and stock at other sites. Filter by supplier name.{"supplier": "FitGear"} | læser |
suggest_levels | Min/max from sales: daily mean and spread over days (default 60) of the days there is data for, imported sales history included, then the season: season is last year's rate in the coming lead time against the weeks before (1.4 = 40 % more), expected the rate for the weeks ahead, season_basis why. Lead time, 95 % service level, two-week review, whole packs. Compare with current_min/current_max.{"skus": ["SKU-1003"], "days": 90} | læser |
sales_history | What the sales numbers rest on: the imported sales history (files, webshops, bookkeeping, POS) with its period and source, and since when Reolora's own sales are known. Seasonal min/max needs a year of history.{} | læser |
balance_suggestions | Items below min here that another site has more of than its own min: move them with create_transfer instead of buying.{} | læser |
purchase_orders | Purchase orders for this site with lines (ordered and received), supplier, expected date and value. Open ones only unless open_only is false.{"open_only": false} | læser |
transfers | Transfers in and out of this site, with lines (asked, sent, received). Open ones only unless open_only is false.{} | læser |
count_suggestions | Locations worth counting now: ABC class, days since the last count, recent shortages, traffic.{"limit": 15} | læser |
report | Key figures over days (default 30): stock value, picks per day, short picks, orders shipped, best sellers, dead stock, ABC split, count differences.{"days": 7} | læser |
get_location | One location (code or the customer alias) and what it holds.{"code": "A-01-02-1"} | læser |
list_orders | Customer orders, newest first, with lines; optionally one status (new, allocated, picking, picked, production, produced, packing, packed, shipped, cancelled).{"status": "new"} | læser |
events | The event log in order. Pass since (the cursor you kept) for only new events, and kind for one area (move, adjust, receive, count, pick, short, order, status, purchase, transfer, return, levels, proposal). Keep the returned cursor for next time.{"since": 1520, "kind": "short"} | læser |
proposals | Changes agents have proposed for this site and their status (pending by default).{"status": "approved"} | læser |
set_stock_levels | Set min/max for items: levels [{sku, min, max}]; min and max null removes the level. source "suggested" when the numbers come from suggest_levels. Managers only; agents that may not, use propose.{"levels": [{"sku": "SKU-1003", "min": 20, "max": 60}]} | ændrer |
create_purchase_order | Create a DRAFT purchase order for a supplier (name or id): lines [{sku, qty, cost?}]. Nothing is sent until send_purchase_order.{"supplier": "FitGear", "lines": [{"sku": "SKU-1003", "qty": 40}]} | ændrer |
update_purchase_order | Change a draft purchase order: replace its lines, expected date or note.{"po": "IK-0004", "lines": [{"sku": "SKU-1003", "qty": 50}]} | ændrer |
send_purchase_order | Mark a draft purchase order as sent to the supplier; its quantities then count as on their way.{"po": "IK-0004"} | ændrer |
cancel_purchase_order | Cancel a purchase order (a partly received one is closed for the rest).{"po": "IK-0004"} | ændrer |
receive_purchase | Goods in against a purchase order line: qty units to a location (or the best free place when left out).{"po": "IK-0004", "line": 1, "qty": 40} | ændrer |
create_transfer | Create a DRAFT transfer between two sites of the company (codes or ids); from_site defaults to this site. Lines [{sku, qty}].{"to_site": "WH-02", "lines": [{"sku": "SKU-1002", "qty": 10}]} | ændrer |
ship_transfer | Send a draft transfer from this site; units are taken from the places holding most.{"transfer": "FL-0002"} | ændrer |
receive_transfer | Receive a transfer on its way to this site; units go to the best places.{"transfer": "FL-0002"} | ændrer |
returns | Customer returns: the list (filter open, expected, received, closed, all) with each line and how it was assessed, the counts, and why things came back in the last 90 days (reasons, and per item returned against sold).{"filter": "open"} | læser |
create_return | Announce a customer return, from an order (no more than it sent) or for a customer without one. reason per return or line: size, defect, not_as_described, changed_mind, damaged, wrong_item, other. Refunds stay in the shop.{"order": "#10012", "reason": "size", "lines": [{"sku": "SKU-1003", "qty": 1}]} | ændrer |
receive_return | Receive one line of a return and say what happens to it: restock (on its place, the one given, or a free one), discard, repair or hold.{"return": "R-0001", "line": 1, "qty": 1, "outcome": "restock"} | ændrer |
split_order | Send what was picked on a short-picked order and put the rest on a backorder (<ref>-2) that waits for the goods.{"order": "#10012"} | ændrer |
tasks | Tasks for the floor: counts, refills and moves (filter open, mine, done, all), with who has them.{"filter": "open"} | læser |
create_tasks | Make tasks for the handhelds: count a place, refill a pick slot from another place, or move goods. kind: count, replenish, move; to and qty for refills and moves. The same open task twice is made once.{"tasks": [{"kind": "count", "location": "A-01-02-1-1", "reason": "Mangel i går"}]} | ændrer |
import_stock | Set stock from a list (a file moving in, or a count in a spreadsheet): rows of sku, qty and optional location; without a location it is stock without a place. mode set (default) or add. Rows that fail are listed.{"rows": [{"sku": "SKU-1003", "qty": 12, "location": "A-01-02-1-1"}]} | ændrer |
lots | Lots and expiry: those that expire within days (default 30) and the expired, or every lot of one item (sku).{"days": 14} | læser |
set_lot | Register or correct a lot on a place (what lies there, its lot number and expiry date). qty 0 removes it; add true adds to it instead of setting it.{"location": "A-01-02-1-1", "lot": "L2410", "expiry": "2027-03-01", "qty": 24} | ændrer |
serials | Serial numbers: the units of an item (sku), of an order, or those matching a number (query).{"sku": "SKU-1003"} | læser |
register_serials | Register serial numbers on an item as in stock (goods in, or the units already on the shelf).{"sku": "SKU-1003", "serials": ["SN-1001", "SN-1002"]} | ændrer |
ship_serial | Put a serial number on the order it is packed on. A number never registered is taken on the spot.{"order": "#1042", "serial": "SN-1001"} | ændrer |
return_serial | A unit with a serial number comes back: in stock again, or scrapped (scrap true).{"serial": "SN-1001"} | ændrer |
register_return | A customer return: back on a shelf (restock true, the default) or written off. Say why.{"sku": "SKU-1003", "qty": 1, "reason": "Forkert størrelse"} | ændrer |
record_sale | A sale that already happened outside an order (a till, a market stall). Takes the units from this site, pick slots first. Never refused: selling more than is on hand takes what is there and reports the rest as a count task. sku may be an EAN. A negative qty is a refund at the till.{"sku": "SKU-1003", "qty": 2, "channel": "Kasse 1", "ref": "bon 1042", "request_id": "kasse1-1042-1"} | ændrer |
add_shipment | Give an order its tracking number (and carrier). When the order came from a connected web shop, the number is sent there once the order is shipped.{"order": "DD-1042", "tracking_no": "00370730253", "carrier": "GLS"} | ændrer |
save_item | Create or change an item by SKU; only the fields given change. group may be a path ("Sko / Løbesko", created when missing), supplier a name. Fields: sku, name, ean, group, supplier, supplier_sku, unit, pack_qty, cost, price, weight_grams, active, notes, stocked (false for shipping, gift cards, services), backorder (may be sold without stock), attrs (the company's own fields by key).{"item": {"sku": "SKU-1003", "price": 159}} | ændrer |
set_item_components | Make an item a bundle of other items (or an ordinary item again with an empty list). A bundle has no stock of its own: an order opens it into its parts, which are picked, and the shop gets what the parts allow.{"sku": "START-1", "components": [{"sku": "SKU-1002", "qty": 1}, {"sku": "SKU-1003", "qty": 2}]} | ændrer |
save_group | Create an item group (optionally under a parent, by name or id), or rename one by id.{"name": "Kampagne", "parent": "Tilbehør"} | ændrer |
set_item_group | Put many items (SKUs) in one group (name or id); null takes them out of any group.{"skus": ["SKU-1002", "SKU-1003"], "group": "Kampagne"} | ændrer |
save_supplier | Create or change a supplier: name, contact, email, phone, lead_days, notes (id to change an existing one).{"supplier": {"name": "FitGear Europe", "lead_days": 10}} | ændrer |
move_stock | Move units between two locations on this site; never mixes two items in one location.{"from": "A-01-02-1", "to": "B-03-01-2", "qty": 10, "reason": "Tættere på pakning"} | ændrer |
adjust_stock | Set the quantity at a location (0 empties it). Give sku when the location is empty. Say why.{"location": "A-01-02-1", "qty": 12, "reason": "Optalt"} | ændrer |
count | Record a blind count at a location; returns the difference to the system quantity. sku when the place holds more than one item. While a stocktake is open the count goes into it and is adjusted when the stocktake is approved.{"location": "A-01-02-1", "qty": 11} | ændrer |
create_order | Create a customer order. Lines [{sku, qty, location?}]; missing locations are allocated from stock.{"ref": "WEB-1042", "customer": "Mia Holm", "lines": [{"sku": "SKU-1003", "qty": 2}]} | ændrer |
set_order_status | Move an order forward (production, produced, packing, packed, shipped). Cancelling needs a manager.{"order": "WEB-1042", "status": "packed"} | ændrer |
order_detail | One customer order: status, customer, carrier, note, every line (where to pick, picked, packed, on hand), its delivery address, its shipment and its history.{"order": "WEB-1042"} | læser |
update_order | Change an order: a note for the floor, priority (first in the pick queue), hand it to a worker by name, or unassign it. Priority and handing out need a manager.{"order": "WEB-1042", "priority": true, "note": "Kunden henter selv kl. 14"} | ændrer |
set_ship_to | Set where an order is delivered: name, attention, address1 (required), address2, zipcode, city, country_code (DK by default), email, phone, service_point_id (a parcel shop).{"order": "WEB-1042", "ship_to": {"name": "Mia Holm", "address1": "Vestergade 12", "zipcode": "8000", "city": "Aarhus C"}} | ændrer |
pick_line | Confirm that one line of an order is picked (the order must be allocated or being picked). qty is what was actually taken; less than ordered is a shortage, which is logged. When the last line is picked the order is picked.{"order": "WEB-1042", "line": 1, "qty": 2} | ændrer |
request_label | Book a shipping label for a picked order with the connected carrier service (Shipmondo). Weight comes from the items plus box_grams unless weight_grams is given. Asking again gives the same shipment. Without a carrier connection the answer is {"status": "manual"}.{"order": "WEB-1042", "box": "M", "box_grams": 150} | ændrer |
cancel_label | Cancel a shipment (the id from order_detail or request_label), so the order can get a new label.{"shipment": "6f1c…"} | ændrer |
production | The production queue: order lines with items made to order (print, embroidery …), with personalisation and status open, started, done or problem. filter open (default), done or all; order for one order.{"filter": "open"} | læser |
set_production | Move one line in the production queue: open, started, done or problem (say what in note). When every line is done the order is produced.{"order": "WEB-1042", "line": 1, "status": "done"} | ændrer |
set_personalisation | Fill in the personalisation of an order line (like name or number on a shirt): fields as {label: value}, or a list of {label, value}. Empty fields are dropped; a line with personalisation goes in the production queue.{"order": "WEB-1042", "line": 1, "fields": {"Navn": "Mia", "Nummer": "7"}} | ændrer |
place_stock | Put away stock that has no place yet (from import_stock or a receipt without a place) on a location, or on a free one when location is left out.{"sku": "SKU-1003", "qty": 12, "location": "A-01-02-1-1"} | ændrer |
locations | Every active location on the site with type, zone, capacity and what it holds. Filter empty: true for free places, type (pick_slot, pallet_bay, floor …), zone or a code prefix.{"empty": true, "prefix": "A-01"} | læser |
item_history | What happened to one item on this site, newest first: receipts, moves, counts, adjustments, picks, sales and returns, with who and why.{"sku": "SKU-1003", "limit": 20} | læser |
take_task | Take an open task (the id from tasks), so nobody else starts on it.{"task": "3c2e…"} | ændrer |
finish_task | Finish a task: for a count, qty is what was counted (recorded as a count); for a refill or move, qty is what was moved.{"task": "3c2e…", "qty": 11} | ændrer |
cancel_task | Cancel an open task that is no longer needed. Needs a manager.{"task": "3c2e…"} | ændrer |
close_return | Close a return when every line is dealt with, or cancel one that never arrives (cancel: true).{"return": "R-0001"} | ændrer |
find_orders | The order board: search by order number, customer or the shop's own number, and filter open (default), problem (short or missing goods, or not started), waiting (backorders waiting for goods), due (must go today by the cutoff), all, or one step (todo, picking, packing, ready, shipped, cancelled). Answers counts per filter and today's cutoff too. Orders from e-conomic (source economic: pending orders and invoice drafts that reserve stock) are here as well.{"filter": "due"} | læser |
customers | Customers found from their orders on every site: name, e-mail, phone, latest address, number of orders and the latest ones. Search by name, e-mail, phone or street.{"query": "mia holm"} | læser |
stocktake | The open stocktake (statusoptælling) of the whole site or a place prefix: how far it is, units over and under, the value of the differences at cost, and the lines (filter diffs: true for only the differences). Counts made with count go into it. Pass stocktake for an earlier one; recent lists the last five.{"diffs": true} | læser |
start_stocktake | Start a stocktake: every place of the site (or the places whose code starts with scope) gets a line with what the system holds now. Count them with count (or on the handhelds), then approve_stocktake. Only one can be open per site. Needs a manager.{"scope": "A-01", "note": "Statusoptælling 31/12"} | ændrer |
approve_stocktake | Approve the stocktake and adjust every counted difference with the reason "statusoptælling". Lines not counted are left as they are. Needs a manager.{"stocktake": "5b0e…"} | ændrer |
cancel_stocktake | Cancel an open stocktake without adjusting anything. Needs a manager.{"stocktake": "5b0e…"} | ændrer |
stock_value | Stock and its value at cost at the end of a past day (default last 31 December), worked back from the stock ledger: units, value, items without a cost price, and per item. complete is false when the day is before the ledger started.{"date": "2026-09-30"} | læser |
integrations | The connections to webshops, carriers, bookkeeping and POS (Shopify, DanDomain, WooCommerce, Shipmondo, e-conomic, Amero …): status, test mode (read_only), who owns the stock numbers, last good sync, last error, jobs waiting or failed, linked products, and open issues such as oversold items or unknown SKUs.{} | læser |
compare_shop_stock | During a webshop's test period: Reolora's available stock against the shop's own figure per item, the differences (largest first), and how many days in a row there have been none (the goal is 14, over a month end). connection is an id or a provider name from integrations. all: true lists every item, not only differences. Needs a manager.{"connection": "dandomain"} | læser |
delivery_notes | Photos of the supplier's delivery note taken when a purchase order was received, with what was read from them (lines and quantities) and by whom.{"po": "PO-2026-0012"} | læser |
auto_tasks | Let Reolora make the tasks itself: kind count makes count tasks for the places most worth counting (as count_suggestions, up to limit, default 10); kind replenish makes refill tasks for pick slots running low from their reserve places. Tasks already open are not made twice.{"kind": "replenish"} | ændrer |
propose | For agents that may not change things themselves: propose a change for a manager to approve in Forslag, with the database command, its arguments and why. Commands: set_stock_levels {levels, source}, create_purchase_order {supplier_id, lines, expected_at?, note?}, send_purchase_order {po}, create_transfer {from_site?, to_site, lines} (site ids), save_item {item}, set_item_group {skus, group_id}, move_stock {from, to, qty, reason}, adjust_stock {location, qty, sku?, reason}, create_order, set_order_status.{"command": "move_stock", "args": {"from": "A-01-02-1", "to": "B-03-01-2", "qty": 10, "reason": "Fyld op"}, "reason": "Pladsen er næsten tom"} | ændrer |
whoami | Who you are signed in as: your name, role (and agent mode), company and the sites you can work on, with which one is used when you leave site out.{} | læser |
search | Search the warehouse (items by SKU, EAN or name) and get ids for fetch. Returns {results: [{id, title, url}]}, the shape ChatGPT and Deep Research use.{"query": "drikkedunk"} | læser |
fetch | The full record behind a search id: an item with stock per site, places, min/max, what is on its way and recent sales. Returns {id, title, text, url, metadata}.{"id": "item:SKU-1003@WH-01"} | læser |
subscribe | Get a POST to your https URL whenever events of these kinds happen on this site (empty: all): move, adjust, receive, count, pick, short, order, status, purchase, transfer, return, levels, proposal, layout. Signed with the returned secret; failed deliveries are retried.{"url": "https://example.com/hooks/reolora", "kinds": ["short", "proposal"]} | ændrer |
unsubscribe | Stop a webhook by its id (from subscribe or webhooks).{"webhook": "0b6d…"} | ændrer |
webhooks | Your webhooks on this site (managers see all), with failures and the last answer.{} | læser |
insight | Indblik, the office's dashboards: ask a question in Danish or English and get views with numbers (kpi), breakdowns (donut, bar, rank), a line per day, rows (table) and the places on the floor plan, each block with labels and a tone (ok, warn, danger, info) so you can draw it as it is. Every view carries its setup as plan: change it (filters, group, blocks, days, site "*" for every site) and send it back as plan to get the view again. Covers orders, items, locations, movements, purchasing, picking, production, returns, transfers, lots, serials, tasks, shipping labels and stocktakes; your role decides what you may read. Numbers and charts use every row read (up to 5000 per site; truncated: true says there were more). Changes to a plan you send are named in notes, and a plan that cannot be used says why in problems. A question it cannot read answers ok: false with suggestions. {"guide": true} gives the entities, fields, blocks and rules a plan can use.{"question": "Hvad skal produceres i dag?"} | læser |
Til agenter, der kører selv
preview: true- Kør en ændring og se resultatet uden at gemme noget. Samme kontrol som den rigtige.
request_id- Giv hver ændring et id. Prøver agenten igen med samme id, sker det ikke to gange.
Fejl med næste skridt- Fejl kommer som {code, message, hint, next}, fx not_found med next: find_items.
since og cursor- warehouse_status og events giver en cursor. Næste gang: since = cursor, og summary_since fortæller hvad der er sket.
Webhooks- subscribe(url, kinds) sender et signeret POST, når fx en vare mangler eller et forslag kommer. Fejlede kald prøves igen.
Ressourcer og prompts- reolora://guide og status pr. lager; prompts som dagens-indkob og ugens-optaelling.
Tjek signaturen på et webhook:
import { createHmac, timingSafeEqual } from 'node:crypto';
// rawBody: the request body exactly as received (a string), secret: whsec_… from subscribe
const expected = 'sha256=' + createHmac('sha256', secret)
.update(`${req.headers['x-reolora-timestamp']}.${rawBody}`)
.digest('hex');
const ok = timingSafeEqual(Buffer.from(expected), Buffer.from(req.headers['x-reolora-signature']));Prøv det
Med en API-nøgle i REOLORA_API_KEY:
curl -s https://mcp.reolora.dk/mcp \
-H "Authorization: Bearer $REOLORA_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"1"}}}'curl -s https://mcp.reolora.dk/mcp \
-H "Authorization: Bearer $REOLORA_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'Tre ting at spørge om
- “Hvad skal vi bestille hos Løbeland i dag? Lav kladder, men send intet.”
- “Hvad er sket på lageret siden i går, og er noget udsolgt?”
- “Flyt 10 stk SKU-1003 til butikken WH-02. Vis mig først, hvad der vil ske.”