change promotions mcp url

This commit is contained in:
2026-06-27 08:07:17 +02:00
parent 3df95eac90
commit ae66ee162f
+5 -3
View File
@@ -299,13 +299,15 @@ func main() {
// Promotion MCP edge: list/get/upsert/status/delete promotions and preview
// discounts. Mutations persist to data/promotions.json and are picked up by
// the cart's totals processor on the next mutation (it reads a fresh snapshot).
mux.Handle("/mcp", promotionMCP.Handler())
mux.Handle("/mcp/", promotionMCP.Handler())
// Mounted at /promotions-mcp to avoid conflicting with the backoffice CMS MCP
// at /mcp (which is routed by the edge).
mux.Handle("/promotions-mcp", promotionMCP.Handler())
mux.Handle("/promotions-mcp/", promotionMCP.Handler())
// Cart MCP edge: inspect and mutate carts — get_cart, get_cart_items,
// update_item_quantity, remove_cart_item, clear_cart, apply_voucher, etc.
// Exposes 11 tools on the same grain pool, mounted at /cart-mcp so it does
// not conflict with the Promotions MCP at /mcp.
// not conflict with the Promotions MCP at /promotions-mcp.
mux.Handle("/cart-mcp", cartMCP.Handler())
mux.Handle("/cart-mcp/", cartMCP.Handler())