Skip to content
VS Code

claude flow for VS Code

io.github.ruvnet/claude-flow

AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.

client:VS Code transport:stdio runtime:npm

Install claude flow in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "anthropic-api-key",
      "description": "ANTHROPIC_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "claude-flow-mode",
      "description": "CLAUDE_FLOW_MODE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "claude-flow-memory-path",
      "description": "CLAUDE_FLOW_MEMORY_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "claude-flow-max-agents",
      "description": "CLAUDE_FLOW_MAX_AGENTS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "claude-flow-port",
      "description": "CLAUDE_FLOW_PORT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "github-token",
      "description": "GITHUB_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "flow-nexus-api-key",
      "description": "FLOW_NEXUS_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "claude-flow": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "claude-flow"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "${input:anthropic-api-key}",
        "CLAUDE_FLOW_MODE": "${input:claude-flow-mode}",
        "CLAUDE_FLOW_MEMORY_PATH": "${input:claude-flow-memory-path}",
        "CLAUDE_FLOW_MAX_AGENTS": "${input:claude-flow-max-agents}",
        "CLAUDE_FLOW_PORT": "${input:claude-flow-port}",
        "GITHUB_TOKEN": "${input:github-token}",
        "FLOW_NEXUS_API_KEY": "${input:flow-nexus-api-key}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

claude flow in other clients