Skip to content
Source
Sign inSign up
TanStack/ai

feat(ai-mcp-sandbox): per-tool sandboxing for createMCPServer #2171

Mergedjherrmerged 6 commits intomain fromrefs/pull/2171/headmerged by tombeckenham View on GitHub

Showing 21 changed files with 11 additions and 0 deletions (loading 19).

x
0 of 21 viewed, 21 left
11 additions and 0 deletions.changeset/ai-mcp-sandbox-initial.mdAdded
View file
@@ -0,0 +1,11 @@
+---
+'@tanstack/ai-mcp-sandbox': minor
+---
+​
+New package: per-tool sandboxing for `@tanstack/ai-mcp`. `sandboxedTool()`
+returns a plain `ServerTool` that runs an untrusted, snippet-backed tool body
+inside any Code Mode `IsolateDriver`, capability-scoped per caller by a signed
+manifest (scope, injected facades, resource limits, optional Ed25519 signature).
+Drops into `createMCPServer({ tools })` alongside trusted tools. Includes a
+two-phase approval store for Tier-3 writes and a deny-by-default snippet
+importer (`importSnippet` + `tanstack-ai-sandbox-import` CLI).
docs/mcp/server-sandboxed-tools.mdAdded
View file
Loading the diff
docs/mcp/server.mdModified
View file
Loading the diff
docs/config.jsonModified
View file
Loading the diff
packages/ai-mcp-sandbox/src/bin/import.tsAdded
View file
Loading the diff
packages/ai-mcp-sandbox/src/approval.tsAdded
View file
Loading the diff
packages/ai-mcp-sandbox/src/capability.tsAdded
View file
Loading the diff