Slice
v0.15.2Sandboxed TypeScript and JavaScript for AI agents: run locally with npx or hosted on Slice Cloud.
Values you need
| Variable | What it is | |
|---|---|---|
SLICE_API_KEY | optional secret | Slice Cloud API key (slicevm.com/console). Without it the server runs code locally. |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add mcp -- npx -y --package=@slicevm/mcp@0.15.2 slice-mcpAdd to
claude_desktop_config.json{
"mcpServers": {
"mcp": {
"args": [
"-y",
"--package=@slicevm/mcp@0.15.2",
"slice-mcp"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mcp": {
"args": [
"-y",
"--package=@slicevm/mcp@0.15.2",
"slice-mcp"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"mcp": {
"args": [
"-y",
"--package=@slicevm/mcp@0.15.2",
"slice-mcp"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mcp]
command = "npx"
args = ["-y", "--package=@slicevm/mcp@0.15.2", "slice-mcp"]Remote (hosted)
Run in a terminal
claude mcp add --transport http mcp https://api.slicevm.com/mcp --header 'Authorization: <Authorization>'Add to
Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote){
"mcpServers": {
"mcp": {
"args": [
"-y",
"mcp-remote",
"https://api.slicevm.com/mcp",
"--header",
"Authorization: <Authorization>"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mcp": {
"headers": {
"Authorization": "<Authorization>"
},
"url": "https://api.slicevm.com/mcp"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"mcp": {
"headers": {
"Authorization": "<Authorization>"
},
"type": "http",
"url": "https://api.slicevm.com/mcp"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://api.slicevm.com/mcp", "--header", "Authorization: <Authorization>"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: slice_eval_ts, slice_kv_get, slice_kv_set, slice_checkpoint.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json