Development
octocode-install - Claude MCP Skill
Interactive step-by-step installer for Octocode tools on macOS and Windows. Use when the user asks to "install octocode", "set up octocode", "configure octocode mcp", "get started with octocode", "install octocode-cli", "octocode setup", or needs help with GitHub auth, IDE MCP config, or skills installation.
SEO Guide: Enhance your AI agent with the octocode-install tool. This Model Context Protocol (MCP) server allows Claude Desktop and other LLMs to interactive step-by-step installer for octocode tools on macos and windows. use when the user asks t... Download and configure this skill to unlock new capabilities for your AI workflow.
Documentation
SKILL.md# Octocode Install โ Interactive Setup
`DETECT` โ `CHECK INSTALLED` โ `NODE` โ `AUTH` โ `INSTALL MCP` โ `SKILLS` โ `VERIFY`
**Agent rule**: Detect what you can from context. Ask only what you can't determine. One step at a time โ wait for the user's answer before proceeding.
---
## Step 0 โ Detect Platform & IDE
Check the conversation and environment context first:
- **Platform**: Is the OS already known? (macOS/Linux vs Windows)
- **IDE**: Is the user in Cursor, Claude Code, Claude Desktop, Windsurf, VS Code, Zed, Opencode, Trae, Kiro, Codex, Gemini CLI, Goose, Antigravity?
If either is **unknown**, ask:
> "What platform are you on, and which IDE/client are you setting up?"
> - macOS / Linux
> - Windows
>
> IDE: Cursor ยท Claude Code ยท Claude Desktop ยท Windsurf ยท Trae ยท Kiro ยท Antigravity ยท VS Code (Cline/Roo/Continue) ยท Zed ยท Opencode ยท Codex ยท Gemini CLI ยท Goose
Carry both answers through all remaining steps.
---
## Step 1 โ Check if Already Installed
Read the IDE's MCP config file (see config paths table below) and check whether an `"octocode"` or `"octocode-mcp"` server entry already exists.
| IDE | Config path (macOS) | Config path (Linux) | Config path (Windows) |
|-----|---------------------|---------------------|-----------------------|
| Cursor | `~/.cursor/mcp.json` | `~/.cursor/mcp.json` | `%APPDATA%\Cursor\mcp.json` |
| Claude Code | `~/.claude.json` | `~/.claude.json` | `%USERPROFILE%\.claude.json` |
| Claude Desktop | `~/Library/Application Support/Claude/claude_desktop_config.json` | `~/.config/claude/claude_desktop_config.json` | `%APPDATA%\Claude\claude_desktop_config.json` |
| Windsurf | `~/.codeium/windsurf/mcp_config.json` | `~/.codeium/windsurf/mcp_config.json` | `%USERPROFILE%\.codeium\windsurf\mcp_config.json` |
| Trae | `~/Library/Application Support/Trae/mcp.json` | `~/.config/Trae/mcp.json` | `%APPDATA%\Trae\mcp.json` |
| Kiro | `~/.kiro/mcp.json` | `~/.kiro/mcp.json` | `%APPDATA%\Kiro\mcp.json` |
| Antigravity | `~/.gemini/antigravity/mcp_config.json` | `~/.gemini/antigravity/mcp_config.json` | `~/.gemini/antigravity/mcp_config.json` |
| VS Code (Cline) | `~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json` | `~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json` | `%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json` |
| VS Code (Roo) | `~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/mcp_settings.json` | `~/.config/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/mcp_settings.json` | `%APPDATA%\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\mcp_settings.json` |
| VS Code (Continue) | `~/.continue/config.json` | `~/.continue/config.json` | `~/.continue/config.json` |
| Zed | `~/.config/zed/settings.json` | `~/.config/zed/settings.json` | `%APPDATA%\Zed\settings.json` |
| Opencode | `~/Library/Application Support/opencode/config.json` | `~/.config/opencode/config.json` | `%APPDATA%\opencode\config.json` |
| Codex | `~/.codex/config.toml` | `~/.codex/config.toml` | `~/.codex/config.toml` |
| Gemini CLI | `~/.gemini/settings.json` | `~/.gemini/settings.json` | `~/.gemini/settings.json` |
| Goose | `~/Library/Application Support/goose/config.yaml` | `~/.config/goose/config.yaml` | `%APPDATA%\goose\config.yaml` |
Also run:
```bash
npx octocode-cli status
```
**If octocode-mcp is already configured in the IDE AND authenticated:**
> Tell the user: "Octocode is already installed and authenticated in your IDE. You're all set!"
>
> Offer: "Would you like to **update** (`npx octocode-cli install --ide <key> --force`), **install skills**, or **change config**?"
**STOP here** โ do not continue with Steps 2โ6 unless the user asks to update, reinstall, or add something.
---
## Step 2 โ Node.js
```bash
node --version
```
- **v18+** โ continue
- **Missing or old** โ tell the user to install it, then wait for confirmation:
- macOS: `brew install node` or [nodejs.org](https://nodejs.org)
- Windows: `winget install OpenJS.NodeJS` or [nodejs.org](https://nodejs.org)
> Ask: "Does `node --version` show v18 or higher now?"
---
## Step 3 โ GitHub Authentication
**Ask the user:**
> "How would you like to authenticate with GitHub?"
> 1. **`npx octocode-cli login`** โ Octocode OAuth (opens browser, stores token automatically)
> 2. **`gh auth login`** โ GitHub CLI (if `gh` is already installed)
> 3. **GitHub PAT (token)** โ paste a token manually; always works, required on Windows if browser auth fails
---
### Option 1 โ Octocode OAuth (recommended)
```bash
npx octocode-cli login
```
- Opens browser โ approve the device code โ done
- Token stored encrypted at `~/.octocode/credentials.json`
- Automatically used by `octocode-mcp` โ no env var needed
> **Windows**: If the browser doesn't open or the command hangs, switch to Option 3 (PAT).
---
### Option 2 โ GitHub CLI
Requires `gh` already installed ([cli.github.com](https://cli.github.com)):
```bash
gh auth login
```
- Follow the interactive prompts
- `octocode-mcp` reads the token via `gh auth token` automatically
---
### Option 3 โ GitHub PAT (always works, required on Windows if OAuth fails)
1. Create token at [github.com/settings/tokens/new](https://github.com/settings/tokens/new)
- Scopes: `repo` + `read:org`
2. Copy the token โ you'll paste it as `GITHUB_TOKEN` in the MCP config (Step 4)
---
**After auth, verify:**
```bash
npx octocode-cli status
```
Expected: `โ Authenticated as <username>`
If not authenticated โ repeat the chosen option or switch to Option 3.
---
## Step 4 โ Install MCP for IDE
**If IDE is unknown, ask:**
> "Which IDE/client do you want to install octocode-mcp into?"
Run:
```bash
npx octocode-cli install --ide <key>
```
| IDE | `<key>` | Aliases |
|-----|---------|---------|
| Cursor | `cursor` | |
| Claude Code | `claude-code` | `claudecode` |
| Claude Desktop | `claude-desktop` | `claude`, `claudedesktop` |
| Windsurf | `windsurf` | |
| Trae | `trae` | |
| Kiro | `kiro` | |
| Antigravity | `antigravity` | |
| VS Code (Cline) | `vscode-cline` | `cline` |
| VS Code (Roo) | `vscode-roo` | `roo`, `roo-cline` |
| VS Code (Continue) | `vscode-continue` | `continue` |
| Zed | `zed` | |
| Opencode | `opencode` | |
| Codex | `codex` | |
| Gemini CLI | `gemini-cli` | `gemini`, `geminicli` |
| Goose | `goose` | |
The CLI writes the config file automatically. Then confirm the result:
### What the config looks like
```json
{
"mcpServers": {
"octocode": {
"command": "npx",
"args": ["octocode-mcp@latest"]
}
}
}
```
### Ask โ enable local tools
> "Do you want to enable **local codebase tools** (search files, LSP, browse dirs)? **Recommended โ Yes.**"
> โ Yes: add `"ENABLE_LOCAL": "true"` to `"env"`
> "Did you use a PAT (Option 3) for auth, or is `npx octocode-cli status` not showing authenticated?"
> โ Yes: add `"GITHUB_TOKEN": "ghp_xxx"` to `"env"`
### Full config with all options:
```json
{
"mcpServers": {
"octocode": {
"command": "npx",
"args": ["octocode-mcp@latest"],
"env": {
"GITHUB_TOKEN": "ghp_xxxx",
"ENABLE_LOCAL": "true"
}
}
}
}
```
> **Token resolution order** (octocode-mcp picks the first found):
> `OCTOCODE_TOKEN` โ `GH_TOKEN` โ `GITHUB_TOKEN` โ `~/.octocode/credentials.json` โ `gh auth token`
> If you used OAuth or `gh auth login`, you can omit `GITHUB_TOKEN`.
**Restart the IDE after saving the config.**
---
## Step 5 โ Install Octocode Skills
**Ask the user:**
> "Would you like to install all Octocode skills? These add research, planning, code review, documentation, and more to your AI assistant."
- **No** โ skip to Step 6
- **Yes** โ ask which targets:
> "Which AI clients should skills be installed into?"
> - **Current IDE only** (detected in Step 0)
> - **All supported platforms** (cursor, claude-code, claude-desktop, codex, opencode)
| Target | Skills directory |
|--------|----------------|
| `claude-code` | `~/.claude/skills/` |
| `claude-desktop` | `~/.claude-desktop/skills/` |
| `cursor` | `~/.cursor/skills/` |
| `codex` | `~/.codex/skills/` |
| `opencode` | `~/.opencode/skills/` |
Then run:
```bash
npx octocode-cli skills install --targets <selected-targets> --force
```
This installs 10 bundled skills:
| Skill | What it does |
|-------|-------------|
| `octocode-researcher` | Deep code exploration & discovery |
| `octocode-research` | Multi-source research orchestration |
| `octocode-engineer` | System-aware implementation & refactoring |
| `octocode-plan` | Research-backed planning |
| `octocode-rfc-generator` | Technical design documents & RFCs |
| `octocode-documentation-writer` | Codebase documentation generation |
| `octocode-pull-request-reviewer` | PR review & analysis |
| `octocode-roast` | Brutally honest code review |
| `octocode-prompt-optimizer` | Agent prompt & SKILL.md optimization |
| `octocode-install` | This installer |
After install, verify:
```bash
npx octocode-cli skills list
```
Expected: all skills show `installed` for each target.
---
## Step 6 โ Verify
```bash
npx octocode-cli status # auth check
npx octocode-cli skills list # skills install check
```
Then open the IDE and test:
> "Use octocode-researcher to find the main entry point of this project"
Tools responding = setup complete.
---
## Using Skills
| Goal | Say... |
|------|--------|
| Find/explore code | "Find where X is defined", "Who calls Y?" |
| Understand/implement | "How does X work?", "Implement this" |
| Plan | "Plan how to add feature X" |
| Review PR | "Review PR #123" |
| Document | "Document this project" |
| Roast | "Roast my code" |
- Local tools require `ENABLE_LOCAL=true` in MCP config
- Skill not triggering? Name it explicitly: "use octocode-researcher to..."
- More skills: `npx octocode-cli` โ Manage Skills โ Browse Marketplace
---
## Troubleshooting
| Problem | Fix |
|---------|-----|
| `npx: command not found` | Install Node.js v18+ |
| OAuth browser doesn't open (Windows) | Use PAT โ set `"GITHUB_TOKEN"` in MCP config `"env"` |
| `npx octocode-cli status` shows not authenticated | Add `"GITHUB_TOKEN": "ghp_xxx"` to MCP `"env"` |
| Local tools return nothing | Add `"ENABLE_LOCAL": "true"` to MCP `"env"`, restart IDE |
| Skills not loading | Verify `~/<client>/skills/<skill>/SKILL.md` has `name` + `description` |
| Already installed, want to update | Add `--force`: `npx octocode-cli install --ide cursor --force` |
Docs: [Auth](https://github.com/bgauryy/octocode-mcp/blob/main/packages/octocode-mcp/docs/AUTHENTICATION_SETUP.md) ยท [CLI Reference](https://github.com/bgauryy/octocode-mcp/blob/main/packages/octocode-cli/docs/CLI_REFERENCE.md) ยท [Skills](https://github.com/bgauryy/octocode-mcp/blob/main/packages/octocode-cli/docs/SKILLS_GUIDE.md)Signals
Information
- Repository
- bgauryy/octocode-mcp
- Author
- bgauryy
- Last Sync
- 5/10/2026
- Repo Updated
- 5/10/2026
- Created
- 4/3/2026
Reviews (0)
No reviews yet. Be the first to review this skill!
Related Skills
upgrade-nodejs
Upgrading Bun's Self-Reported Node.js Version
cn-check
Install and run the Continue CLI (`cn`) to execute AI agent checks on local code changes. Use when asked to "run checks", "lint with AI", "review my changes with cn", or set up Continue CI locally.
CLAUDE
CLAUDE.md
browser-use
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, or extract information from web pages.
Related Guides
Mastering the Oracle CLI: A Complete Guide to the Claude Skill for Database Professionals
Learn how to use the oracle Claude skill. Complete guide with installation instructions and examples.
Python Django Best Practices: A Comprehensive Guide to the Claude Skill
Learn how to use the python django best practices Claude skill. Complete guide with installation instructions and examples.
Mastering VSCode Extension Development with Claude: A Complete Guide to the TypeScript Extension Dev Skill
Learn how to use the vscode extension dev typescript Claude skill. Complete guide with installation instructions and examples.