High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
refactor(mcp): build every tab-scoped path through tabRoutePath (PIN-345)
Luigi Agosti3a0d666bbd6d
diff --git a/internal/mcp/handlers_navigation.go b/internal/mcp/handlers_navigation.goindex 6cd8bd49..d367350f 100644--- a/internal/mcp/handlers_navigation.go+++ b/internal/mcp/handlers_navigation.go@@ -78,7 +78,7 @@ func handleHistoryNav(c *Client, verb string) func(context.Context, mcp.CallTooltabID := optString(r, "tabId")path := "/" + verbif tabID != "" {- path = "/tabs/" + url.PathEscape(tabID) + "/" + verb+ path = tabRoutePath(tabID, verb)}body, code, err := c.Post(ctx, routedPath(r, path), nil)if err != nil {diff --git a/internal/mcp/handlers_network.go b/internal/mcp/handlers_network.goindex 8239ef91..2a01cb16 100644--- a/internal/mcp/handlers_network.go+++ b/internal/mcp/handlers_network.go@@ -153,5 +153,5 @@ func handleNetworkRules(c *Client) func(context.Context, mcp.CallToolRequest) (*}func tabNetworkRoutePath(tabID string) string {- return "/tabs/" + url.PathEscape(tabID) + "/network/route"+ return tabRoutePath(tabID, "network/route")}