Shardflux

v0.12.2
dev.shardflux/mcp Checked 1 day ago Published 1 month ago

Persistent cloud workspaces for AI agents: run commands, edit files, use git and a browser.

Values you need

VariableWhat it is
SHARDFLUX_API_KEYrequired secret Scoped Shardflux project API key (sfk_<key id>_<secret>). Its tool permissions decide which workspace tools are listed.
SHARDFLUX_API_URLoptional API base URL. Plain http:// is allowed only for loopback hosts. Default: https://api.shardflux.dev
SHARDFLUX_WORKSPACE_KEYoptional Pin one workspace: workspace_key becomes optional on every tool and any other key is refused (workspace_pinned).
SHARDFLUX_TEMPLATEoptional Default template slug for workspace_open.
SHARDFLUX_MCP_TOOL_TIMEOUT_MSoptional Default and maximum deadline per tool call in milliseconds (1000-3600000). A call's timeout_ms can only shorten it. Default: 120000
SHARDFLUX_WAKEoptional on: workspace tools resume a suspended workspace and then run. off: they return the workspace_not_running refusal. Default: on
SHARDFLUX_WAKE_TIMEOUT_MSoptional 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_LABELoptional Attribution label of every tool token this server obtains (shown as an agent session). Default: mcp
SHARDFLUX_MCP_LOG_LEVELoptional Log level of the JSON log lines on stderr (stdout carries the protocol). Default: info
SHARDFLUX_HTTP_KEEPALIVEoptional Unset: private HTTP/1.1 pooling on Node 26, native fetch elsewhere. 0: force connection closure for diagnosis. 1: select native pooling.
SHARDFLUX_PREWAKEoptional 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-mcp
Add 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/mcp
Add 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

  1. Ask the user for: SHARDFLUX_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. 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