mcp
This commit is contained in:
@@ -24,6 +24,7 @@ import (
|
||||
"git.k6n.net/mats/go-cart-actor/pkg/flow"
|
||||
"git.k6n.net/mats/go-cart-actor/pkg/idempotency"
|
||||
"git.k6n.net/mats/go-cart-actor/pkg/order"
|
||||
ordermcp "git.k6n.net/mats/go-cart-actor/pkg/order/mcp"
|
||||
"git.k6n.net/mats/go-cart-actor/pkg/outbox"
|
||||
messages "git.k6n.net/mats/go-cart-actor/proto/order"
|
||||
|
||||
@@ -169,6 +170,13 @@ func main() {
|
||||
// for why the exact-match pattern is omitted).
|
||||
mux.Handle("/ucp/v1/orders/", http.StripPrefix("/ucp/v1/orders", orderUCP))
|
||||
|
||||
// Order MCP streamable-HTTP server (inspect + mutate orders via tools).
|
||||
// Mounted at /order-mcp to avoid conflicting with the backoffice CMS MCP at
|
||||
// /mcp (which is routed by the edge).
|
||||
orderMCP := ordermcp.New(applier)
|
||||
mux.Handle("/order-mcp", orderMCP.Handler())
|
||||
mux.Handle("/order-mcp/", orderMCP.Handler())
|
||||
|
||||
// Saga / flow admin (backoffice editor).
|
||||
mux.HandleFunc("GET /sagas/capabilities", s.handleCapabilities)
|
||||
mux.HandleFunc("GET /sagas/flows", s.handleListFlows)
|
||||
|
||||
Reference in New Issue
Block a user