change promotions mcp url
This commit is contained in:
+5
-3
@@ -299,13 +299,15 @@ func main() {
|
|||||||
// Promotion MCP edge: list/get/upsert/status/delete promotions and preview
|
// Promotion MCP edge: list/get/upsert/status/delete promotions and preview
|
||||||
// discounts. Mutations persist to data/promotions.json and are picked up by
|
// 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).
|
// the cart's totals processor on the next mutation (it reads a fresh snapshot).
|
||||||
mux.Handle("/mcp", promotionMCP.Handler())
|
// Mounted at /promotions-mcp to avoid conflicting with the backoffice CMS MCP
|
||||||
mux.Handle("/mcp/", promotionMCP.Handler())
|
// 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,
|
// Cart MCP edge: inspect and mutate carts — get_cart, get_cart_items,
|
||||||
// update_item_quantity, remove_cart_item, clear_cart, apply_voucher, etc.
|
// 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
|
// 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())
|
||||||
mux.Handle("/cart-mcp/", cartMCP.Handler())
|
mux.Handle("/cart-mcp/", cartMCP.Handler())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user