How can I intercept traffic using a global Worker (or something similar)?
Hi,
I have two Cloudflare Workers where I've deployed a few MCP (Model Context Protocol) servers. Now I want to create another Worker that acts as a global middleware, intercepting all incoming and outgoing traffic from those two Workers (and potentially more in the future) and forwarding that traffic to a backend service.
How can I achieve this with minimal changes to the existing MCP Workers?
Think of it this way: the MCP server Workers are deployed in my client's Cloudflare accounts, and I want to create a traffic collector for all of those Workers with minimal changes in the client's Cloudflare accounts.
I have two Cloudflare Workers where I've deployed a few MCP (Model Context Protocol) servers. Now I want to create another Worker that acts as a global middleware, intercepting all incoming and outgoing traffic from those two Workers (and potentially more in the future) and forwarding that traffic to a backend service.
How can I achieve this with minimal changes to the existing MCP Workers?
Think of it this way: the MCP server Workers are deployed in my client's Cloudflare accounts, and I want to create a traffic collector for all of those Workers with minimal changes in the client's Cloudflare accounts.