Synapse: an open-source TypeScript gateway unifying multiple MCP servers behind one login
Comfortable_Cat_6207 · reddit · 2026-09-16
Tired of configuring auth per MCP server in Claude Desktop and Cursor, the author built Synapse, an open-source TypeScript template (RohiRIK/synapse-mcp) that puts many MCP servers behind a single client connection and one authentication/tenant context.
Key design choices: the client connects once over stdio; the gateway discovers tools from all configured services in parallel with prefixed names (billingcreateinvoice, crmgetuser) so the model picks a tool but never a tenant; auth and X-Tenant-ID come from process env rather than arguments, nested tenantid args are rejected, and redirects/cross-origin endpoints are blocked so tokens can't follow a 302. If one backend is down the others keep working. Honest limits: tools only (no resources/prompts), SSE downstream by design, and the header alone isn't enough—each backend must still enforce tenancy. Bun for build/test, Node to run.
More from coding & agent
- Claude Code bypass permissions mode swaps built-in tools for Bash — stablequan · 2026-09-16
- Dev wishlist: coding harnesses should treat automations as one thing, not 100 chats — blixt · 2026-09-16
- Qwen 27B on a single RTX 5090 generates 8-scene animation from one prompt — Acceptable-Object390 · 2026-09-16
- 37-year-old non-coder builds DnD matchmaking site Tavernly with Claude Code — DopeDutchLemon · 2026-09-16
- ChatGPT's built-in Sites feature turns a single prompt into a live, publishable website — TawohAwa · 2026-09-16
- Blogger builds satellite-imaging financial due diligence tool on Doubao Seed 2.1 — karminski3 · 2026-09-16