Skip to content

feat: route an HTTP server's requests through a forward proxy - #9

Merged
vrmiguel merged 1 commit into
mainfrom
tembo/http-server-proxy
Nov 16, 2026
Merged

vrmiguel merged 1 commit into
mainfrom
tembo/http-server-proxy

Conversation

@vrmiguel

Copy link
Copy Markdown
Contributor

An HTTP server can now set proxy, a forward proxy that every request to that server goes through. Other servers, and gate's hooks, are unaffected.

{ "mcpServers": { "internal": { "url": "https://tools.example.ts.net/mcp", "proxy": "http://localhost:1056" } } }

This is for servers that are only reachable through a proxy. Tembo's case is MCP servers on a customer's Tailscale network (tembo/monorepo#13140): a sandbox joins the tailnet with tailscaled in userspace mode, which offers an HTTP proxy rather than routes, so tailnet names and ACLs only apply to requests sent through it.

  • proxy expands ${VAR} like url, and must be an http or https URL. It's rejected on stdio servers.
  • It applies to everything gate sends that server, through the same HTTP client as today, so credential handling is unchanged.

Tested by http_servers_can_go_through_a_proxy: two servers, one behind a forward proxy. The proxied server works, and the proxy sees all of its requests and none of the other server's. The test fails without the change, because the proxy then sees nothing. Config tests cover expansion and the rejected cases.


Want tembo to make any changes? Add a comment with @tembo and i'll get back to work!

View on Tembo  Review in Tembo  View Agent Settings

Co-authored-by: tembo[bot] <208362400+tembo-io[bot]@users.noreply.github.com>
@tembo tembo Bot added the tembo Pull request created by Tembo label Nov 13, 2026
@vrmiguel
vrmiguel merged commit b3e76b1 into main Nov 16, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tembo Pull request created by Tembo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant