From ae66ee162f24d82d49309bf7ef20c8a95777d731 Mon Sep 17 00:00:00 2001 From: matst80 Date: Sat, 27 Jun 2026 08:07:17 +0200 Subject: [PATCH] change promotions mcp url --- cmd/cart/main.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cmd/cart/main.go b/cmd/cart/main.go index da3dc47..5543c23 100644 --- a/cmd/cart/main.go +++ b/cmd/cart/main.go @@ -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())