Claude Octopus can be used from any IDE that supports the Model Context Protocol (MCP). The existing MCP server exposes all Octopus workflows as tools — no extension code required.
# Auto-detect your IDE and configure MCP
./scripts/ide-attach.sh
# Or specify an IDE explicitly
./scripts/ide-attach.sh --ide vscode
./scripts/ide-attach.sh --ide cursor
./scripts/ide-attach.sh --ide zedRestart your IDE after running the script.
| IDE | Support Level | Setup |
|---|---|---|
| Cursor | Native MCP | ide-attach.sh --ide cursor |
| VS Code | Native MCP (Copilot Agent Mode) | ide-attach.sh --ide vscode |
| Zed | Native MCP | ide-attach.sh --ide zed |
| Windsurf | Native MCP | ide-attach.sh --ide windsurf |
| Neovim | Via mcp.nvim community plugin |
See Neovim Setup |
| JetBrains | Planned (Phase 3) | Not yet available |
| Visual Studio (Windows) | Limited — see below | Manual WSL2 setup |
IDE (VS Code / Cursor / Zed / Neovim)
|
| MCP Protocol (stdio)
v
Octopus MCP Server (TypeScript)
|
| execFile() (no shell)
v
orchestrate.sh (bash core — unchanged)
|
v
Codex CLI / Gemini CLI / Claude subagents
The IDE communicates with the MCP server over stdio. The MCP server delegates to orchestrate.sh via execFile (safe, no shell injection). The same bash engine that runs in the terminal — no behavior changes.
After setup, these tools appear in your IDE's AI chat:
| Tool | Description |
|---|---|
octopus_discover |
Multi-provider research (Codex + Gemini) |
octopus_define |
Consensus building on requirements |
octopus_develop |
Implementation with quality gates |
octopus_deliver |
Final validation and review |
octopus_embrace |
Full 4-phase Double Diamond workflow |
octopus_debate |
Three-way AI debate |
octopus_review |
Multi-provider code review |
octopus_security |
Security audit with OWASP checks |
octopus_set_editor_context |
Inject IDE state into workflows |
octopus_list_skills |
Browse available skills |
octopus_status |
Check provider availability |
The octopus_set_editor_context tool lets your IDE pass state into Octopus workflows:
{
"filename": "/path/to/active/file.ts",
"selection": "function handleAuth() { ... }",
"cursor_line": 42,
"language_id": "typescript",
"workspace_root": "/path/to/project"
}This context is injected as environment variables (OCTOPUS_IDE_*) into orchestrate.sh. Currently these variables are passed through for future consumption — orchestrate.sh does not yet act on them, but they establish the contract for IDE-aware workflows in a future release. Input validation enforces path safety and a 50KB selection size limit.
If ide-attach.sh doesn't support your IDE, you can configure MCP manually.
Create .vscode/mcp.json in your project:
{
"servers": {
"claude-octopus": {
"command": "npx",
"args": ["tsx", "/path/to/claude-octopus/mcp-server/src/index.ts"],
"env": {
"OCTO_CLAW_ENABLED": "true",
"OPENAI_API_KEY": "${env:OPENAI_API_KEY}",
"GEMINI_API_KEY": "${env:GEMINI_API_KEY}"
}
}
}
}Important: Cursor does not have Claude Code's plugin/slash-command system. You will not get
/octo:*commands. Instead, Octopus runs as an MCP server exposing tools likeoctopus_discover,octopus_review, etc. that you invoke through Cursor's AI chat.
What works in Cursor:
- All MCP tools (research, review, debate, security audit, etc.)
- Multi-provider dispatch (Codex + Gemini + Claude via the MCP server)
- Editor context injection via
octopus_set_editor_context
What doesn't work in Cursor:
/octo:*slash commands (Claude Code plugin feature only)- Hooks, statusline HUD, and session state (require Claude Code's plugin runtime)
- Discipline mode auto-invoke gates (require Claude Code hooks)
Option 1: Auto-setup (recommended)
git clone --depth 1 https://github.com/nyldn/claude-octopus.git ~/.cursor/claude-octopus
cd ~/.cursor/claude-octopus && scripts/ide-attach.sh --ide cursorOption 2: Manual config
Create .cursor/mcp.json in your project (per-project) or ~/.cursor/mcp.json (global):
{
"mcpServers": {
"claude-octopus": {
"command": "npx",
"args": ["tsx", "${userHome}/.cursor/claude-octopus/mcp-server/src/index.ts"],
"env": {
"OCTO_CLAW_ENABLED": "true",
"OPENAI_API_KEY": "${env:OPENAI_API_KEY}",
"GEMINI_API_KEY": "${env:GEMINI_API_KEY}"
}
}
}
}Restart Cursor after setup. Tools appear in Settings → Tools & MCP.
Using Octopus in Cursor: Ask naturally in Cursor's AI chat — e.g. "use octopus_discover to research OAuth patterns" or "run octopus_review on this PR". Cursor's agent will invoke the MCP tools automatically.
Cursor Rules (optional): To customize Octopus behavior, you can add a .cursor/rules/octopus.md file with project-specific instructions. This is similar to how CLAUDE.md works in Claude Code — it gives the AI context about your project conventions. See Cursor Rules docs for details.
Add to .zed/settings.json in your project:
{
"context_servers": {
"claude-octopus": {
"command": {
"path": "npx",
"args": ["tsx", "/path/to/claude-octopus/mcp-server/src/index.ts"],
"env": {
"OPENAI_API_KEY": "${env:OPENAI_API_KEY}",
"GEMINI_API_KEY": "${env:GEMINI_API_KEY}"
}
}
}
}
}Install the mcp.nvim community plugin, then add to your config:
require('mcp').setup({
servers = {
['claude-octopus'] = {
command = 'npx',
args = { 'tsx', '/path/to/claude-octopus/mcp-server/src/index.ts' },
},
},
})Visual Studio 2026 supports .mcp.json natively via its AI integration, but Claude Octopus has significant constraints on Windows:
The challenge: orchestrate.sh is an 18K-line bash script using Linux-specific features (PIDs, signals, named pipes, GNU tools). It cannot run natively on Windows.
Options:
-
WSL2 (Recommended if you must): Install Claude Octopus inside WSL2. Visual Studio can invoke the MCP server through
wsl.exe:{ "servers": { "claude-octopus": { "command": "wsl", "args": ["npx", "tsx", "/home/user/claude-octopus/mcp-server/src/index.ts"] } } } -
GitHub Copilot Chat: Claude is available as a model within GitHub Copilot Chat in Visual Studio. This doesn't provide Octopus workflows but gives access to Claude directly.
-
Dev Container: Use a
.devcontainer/devcontainer.jsonto run the full Linux environment inside VS.
Our recommendation: If you're a Visual Studio user, use Claude Code in the integrated terminal for Octopus workflows, or use VS Code alongside Visual Studio for AI-assisted work. A native Visual Studio extension is not planned due to the effort-to-impact tradeoff.
# Verify dependencies are installed
cd /path/to/claude-octopus/mcp-server && npm install
# Test the server directly
npx tsx /path/to/claude-octopus/mcp-server/src/index.ts
# Should hang waiting for stdio input (Ctrl+C to exit)- Restart the IDE after adding MCP config
- Check that API keys are set in your environment
- Verify the path to
index.tsis absolute and correct - Check IDE logs for MCP connection errors
If Codex or Gemini workflows fail, check:
command -v codex # Codex CLI installed?
command -v gemini # Gemini CLI installed?Run octopus_status tool to see provider availability.
- Phase 1 (Current): MCP bridge — zero-UI integration for VS Code, Cursor, Zed
- Phase 2: Thin VS Code extension — sidebar with live state, skill gallery, Marketplace distribution
- Phase 3: JetBrains plugin, cross-IDE gateway server