Shardflux
v0.12.2Persistent cloud workspaces for AI agents: run commands, edit files, use git and a browser.
Values you need
| Variable | What it is | |
|---|---|---|
SHARDFLUX_API_KEY | required secret | Scoped Shardflux project API key (sfk_<key id>_<secret>). Its tool permissions decide which workspace tools are listed. |
SHARDFLUX_API_URL | optional | API base URL. Plain http:// is allowed only for loopback hosts. Default: https://api.shardflux.dev |
SHARDFLUX_WORKSPACE_KEY | optional | Pin one workspace: workspace_key becomes optional on every tool and any other key is refused (workspace_pinned). |
SHARDFLUX_TEMPLATE | optional | Default template slug for workspace_open. |
SHARDFLUX_MCP_TOOL_TIMEOUT_MS | optional | Default and maximum deadline per tool call in milliseconds (1000-3600000). A call's timeout_ms can only shorten it. Default: 120000 |
SHARDFLUX_WAKE | optional | on: workspace tools resume a suspended workspace and then run. off: they return the workspace_not_running refusal. Default: on |
SHARDFLUX_WAKE_TIMEOUT_MS | optional | Longest wait per tool call for a workspace to wake or finish a transition, in milliseconds (1000-3600000; clamped to SHARDFLUX_MCP_TOOL_TIMEOUT_MS). Default: 120000 |
SHARDFLUX_AGENT_LABEL | optional | Attribution label of every tool token this server obtains (shown as an agent session). Default: mcp |
SHARDFLUX_MCP_LOG_LEVEL | optional | Log level of the JSON log lines on stderr (stdout carries the protocol). Default: info |
SHARDFLUX_HTTP_KEEPALIVE | optional | Unset: private HTTP/1.1 pooling on Node 26, native fetch elsewhere. 0: force connection closure for diagnosis. 1: select native pooling. |
SHARDFLUX_PREWAKE | optional | Offer explicit workspace_hint for tool input streaming (on or off). Default: off |
npm (npx)
Requires Node.js 18+
Run in a terminal
claude mcp add mcp -e 'SHARDFLUX_API_KEY=<SHARDFLUX_API_KEY>' -- npx -y --package=@shardflux/mcp@0.12.2 shardflux-mcpAdd to
claude_desktop_config.json{
"mcpServers": {
"mcp": {
"args": [
"-y",
"--package=@shardflux/mcp@0.12.2",
"shardflux-mcp"
],
"command": "npx",
"env": {
"SHARDFLUX_API_KEY": "<SHARDFLUX_API_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mcp": {
"args": [
"-y",
"--package=@shardflux/mcp@0.12.2",
"shardflux-mcp"
],
"command": "npx",
"env": {
"SHARDFLUX_API_KEY": "<SHARDFLUX_API_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "SHARDFLUX_API_KEY",
"id": "shardflux-api-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"mcp": {
"args": [
"-y",
"--package=@shardflux/mcp@0.12.2",
"shardflux-mcp"
],
"command": "npx",
"env": {
"SHARDFLUX_API_KEY": "${input:shardflux-api-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mcp]
command = "npx"
args = ["-y", "--package=@shardflux/mcp@0.12.2", "shardflux-mcp"]
env = { "SHARDFLUX_API_KEY" = "<SHARDFLUX_API_KEY>" }Remote (hosted)
Run in a terminal
claude mcp add --transport http mcp https://mcp.shardflux.dev/mcpAdd to
Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote){
"mcpServers": {
"mcp": {
"args": [
"-y",
"mcp-remote",
"https://mcp.shardflux.dev/mcp"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mcp": {
"url": "https://mcp.shardflux.dev/mcp"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"mcp": {
"type": "http",
"url": "https://mcp.shardflux.dev/mcp"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://mcp.shardflux.dev/mcp"]For AI agents
- Ask the user for: SHARDFLUX_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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.
- 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