WFDASH-WEBAPP/src/app/api/mcp
Dave 6c8f63661a fix(mcp): validate set_pricing actor and row ids; tighten pricing prompt
actor.id must be a 15-char user id (stock_ledger.created_by is a relation to
users; a non-user id left the cost patched but unaudited). Each updates[i].id
is validated, actor.name defaults to the actor id, and the Giellie prompt now
says to pass both selling_price and markup on create and to read the item
before a partial price change. Adds tests for null / numeric-string prices
and the explicit markup:0 default-markup behaviour.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-01 01:09:43 +02:00
..
FEATURE-REQUESTS.md docs(mcp): document stock_items.set_pricing and create pricing fields 2026-10-01 01:02:44 +02:00
po-agent-workflow.test.ts feat(audit): implement audit trail for delivery notes and orders 2026-09-30 01:48:44 +02:00
route.test.ts fix(mcp): validate set_pricing actor and row ids; tighten pricing prompt 2026-10-01 01:09:43 +02:00
route.ts fix(mcp): validate set_pricing actor and row ids; tighten pricing prompt 2026-10-01 01:09:43 +02:00