feat: scaffold manager server with docker lifecycle and bearer-auth proxy

Lays the groundwork for remote-mcp-manager: an Express server that
runs installed MCP containers via dockerode (forcing host/port env
vars, no published ports, shared bridge network) and reverse-proxies
/mcp/:slug requests behind a per-installation Bearer token, resolving
the upstream target by inspecting the container's network IP rather
than relying on container-name DNS.

Validated end-to-end against a real cloned MCP repo (nixpacks build +
container run + authenticated proxy roundtrip); installations are
still a hardcoded in-memory list, replaced by SQLite in the next slice.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Sonnet 5 committed 2026-10-08 01:15:41 +02:00
commit 309e6aedc3
12 files changed
+3208

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import express from "express";
import { config } from "./config/env.js";
import { handleMcpProxyRequest } from "./proxy/mcpProxy.js";
const app = express();
app.get("/health", (_req, res) => res.json({ ok: true }));
app.all("/mcp/:slug", handleMcpProxyRequest);
app.listen(config.port, () => {
console.log(`remote-mcp-manager listening on http://localhost:${config.port}`);
});