S

Shardflux MCP

by shardflux.dev · dev.shardflux/mcp

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

npm Remote Official MCP Registry Medium confidence
Note

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "dev-shardflux-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@shardflux/mcp"
      ],
      "env": {
        "SHARDFLUX_API_KEY": "<YOUR_VALUE>",
        "SHARDFLUX_API_URL": "https://api.shardflux.dev",
        "SHARDFLUX_WORKSPACE_KEY": "me/scratch",
        "SHARDFLUX_TEMPLATE": "python-node-browser",
        "SHARDFLUX_MCP_TOOL_TIMEOUT_MS": "120000",
        "SHARDFLUX_WAKE": "on",
        "SHARDFLUX_WAKE_TIMEOUT_MS": "120000",
        "SHARDFLUX_AGENT_LABEL": "mcp",
        "SHARDFLUX_MCP_LOG_LEVEL": "info",
        "SHARDFLUX_HTTP_KEEPALIVE": "<VALUE>",
        "SHARDFLUX_PREWAKE": "off"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "dev-shardflux-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@shardflux/mcp"
      ],
      "env": {
        "SHARDFLUX_API_KEY": "<YOUR_VALUE>",
        "SHARDFLUX_API_URL": "https://api.shardflux.dev",
        "SHARDFLUX_WORKSPACE_KEY": "me/scratch",
        "SHARDFLUX_TEMPLATE": "python-node-browser",
        "SHARDFLUX_MCP_TOOL_TIMEOUT_MS": "120000",
        "SHARDFLUX_WAKE": "on",
        "SHARDFLUX_WAKE_TIMEOUT_MS": "120000",
        "SHARDFLUX_AGENT_LABEL": "mcp",
        "SHARDFLUX_MCP_LOG_LEVEL": "info",
        "SHARDFLUX_HTTP_KEEPALIVE": "<VALUE>",
        "SHARDFLUX_PREWAKE": "off"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "dev-shardflux-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@shardflux/mcp"
      ],
      "env": {
        "SHARDFLUX_API_KEY": "<YOUR_VALUE>",
        "SHARDFLUX_API_URL": "https://api.shardflux.dev",
        "SHARDFLUX_WORKSPACE_KEY": "me/scratch",
        "SHARDFLUX_TEMPLATE": "python-node-browser",
        "SHARDFLUX_MCP_TOOL_TIMEOUT_MS": "120000",
        "SHARDFLUX_WAKE": "on",
        "SHARDFLUX_WAKE_TIMEOUT_MS": "120000",
        "SHARDFLUX_AGENT_LABEL": "mcp",
        "SHARDFLUX_MCP_LOG_LEVEL": "info",
        "SHARDFLUX_HTTP_KEEPALIVE": "<VALUE>",
        "SHARDFLUX_PREWAKE": "off"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "dev-shardflux-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@shardflux/mcp"
      ],
      "env": {
        "SHARDFLUX_API_KEY": "<YOUR_VALUE>",
        "SHARDFLUX_API_URL": "https://api.shardflux.dev",
        "SHARDFLUX_WORKSPACE_KEY": "me/scratch",
        "SHARDFLUX_TEMPLATE": "python-node-browser",
        "SHARDFLUX_MCP_TOOL_TIMEOUT_MS": "120000",
        "SHARDFLUX_WAKE": "on",
        "SHARDFLUX_WAKE_TIMEOUT_MS": "120000",
        "SHARDFLUX_AGENT_LABEL": "mcp",
        "SHARDFLUX_MCP_LOG_LEVEL": "info",
        "SHARDFLUX_HTTP_KEEPALIVE": "<VALUE>",
        "SHARDFLUX_PREWAKE": "off"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "dev-shardflux-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@shardflux/mcp"
      ],
      "env": {
        "SHARDFLUX_API_KEY": "<YOUR_VALUE>",
        "SHARDFLUX_API_URL": "https://api.shardflux.dev",
        "SHARDFLUX_WORKSPACE_KEY": "me/scratch",
        "SHARDFLUX_TEMPLATE": "python-node-browser",
        "SHARDFLUX_MCP_TOOL_TIMEOUT_MS": "120000",
        "SHARDFLUX_WAKE": "on",
        "SHARDFLUX_WAKE_TIMEOUT_MS": "120000",
        "SHARDFLUX_AGENT_LABEL": "mcp",
        "SHARDFLUX_MCP_LOG_LEVEL": "info",
        "SHARDFLUX_HTTP_KEEPALIVE": "<VALUE>",
        "SHARDFLUX_PREWAKE": "off"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "dev-shardflux-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@shardflux/mcp"
      ],
      "env": {
        "SHARDFLUX_API_KEY": "<YOUR_VALUE>",
        "SHARDFLUX_API_URL": "https://api.shardflux.dev",
        "SHARDFLUX_WORKSPACE_KEY": "me/scratch",
        "SHARDFLUX_TEMPLATE": "python-node-browser",
        "SHARDFLUX_MCP_TOOL_TIMEOUT_MS": "120000",
        "SHARDFLUX_WAKE": "on",
        "SHARDFLUX_WAKE_TIMEOUT_MS": "120000",
        "SHARDFLUX_AGENT_LABEL": "mcp",
        "SHARDFLUX_MCP_LOG_LEVEL": "info",
        "SHARDFLUX_HTTP_KEEPALIVE": "<VALUE>",
        "SHARDFLUX_PREWAKE": "off"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

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

Similar servers