feat(ai-secure-mcp): self-hostable secure MCP server on an extracted ai-isolate base #2157
Showing 76 changed files with 24 additions and 0 deletions (loading 72).
x
@@ -0,0 +1,5 @@
+---
+'@tanstack/ai-secure-mcp': minor
+---
+
+Add `@tanstack/ai-secure-mcp`, a security envelope around `createMCPServer` for self-hosting an MCP server on the internet. `createSecureMcpServer` wraps your tools with hashed-token bearer auth, scopes and a per-client target allowlist, a deny-by-default egress helper a tool opts into (it is not an enforced network boundary — a tool that calls global `fetch` still reaches the network), a per-client sliding-window rate limit, a redacted append-only JSONL audit log, a pluggable tripwire notifier (`ntfyNotifier`, `webhookNotifier`, `silentNotifier`), and two-phase propose/confirm approval. A go-live preflight refuses a public Tailscale funnel while a secure default is off (unhashed token, audit off, or notifier off or silent).
@@ -0,0 +1,5 @@
+---
+'@tanstack/ai-isolate-quickjs-bun': patch
+---
+
+Update `quickjs-bun` to 0.2.0. Version 0.1.2 cannot compile its native code on Ubuntu 26.04, so the driver failed to create a context there. The driver now needs Bun 1.4.0 or later.
@@ -0,0 +1,14 @@
+---
+'@tanstack/ai-isolate': minor
+'@tanstack/ai-code-mode': patch
+'@tanstack/ai-isolate-quickjs': patch
+'@tanstack/ai-isolate-quickjs-bun': patch
+'@tanstack/ai-isolate-node': patch
+'@tanstack/ai-isolate-cloudflare': patch
+'@tanstack/ai-isolate-e2b': patch
+'@tanstack/ai-isolate-daytona': patch
+---
+
+Add `@tanstack/ai-isolate`, the engine-agnostic isolate base. It owns the contract every sandbox driver implements (`IsolateDriver`, `IsolateConfig`, `IsolateContext`, `ExecutionResult`, `NormalizedError`, `ToolBinding`) plus the shared `wrapCode` helper. These previously lived inside `@tanstack/ai-code-mode`, which forced every driver to depend on Code Mode just for the contract.
+
+Drivers (`quickjs`, `quickjs-bun`, `node`, `cloudflare`, `e2b`, `daytona`) now depend on `@tanstack/ai-isolate` instead of `@tanstack/ai-code-mode`. It is a regular dependency of each driver, so you install nothing extra. `@tanstack/ai-code-mode` re-exports the same types and `wrapCode`, so its public API is unchanged.