CCM
/MCP
SkillsMCPMarketplacesDigestToolsAdvertise

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by Category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP Servers by Category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by Category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control

Claude Code Marketplaces

Discover Claude Code plugins, extensions, and tools. Automatically updated directory of Anthropic Claude AI marketplaces with development tools, productivity plugins, and integrations.

Resources

  • Browse Skills
  • Browse MCP Servers
  • Browse Marketplaces
  • Plugins Reference

Community

  • About
  • Tools
  • Feedback
  • Privacy Policy
  • Advertise

Built for the Claude Code community with Claude Code by mertbuilds.com

Independent project, not affiliated with Anthropic

Octocode MCP - AI Context Platform

bgauryy/octocode-mcp
863authSTDIOregistry active
Summary

Octocode MCP provides AI assistants with research-driven development capabilities by connecting to GitHub, GitLab, and local codebases through tools including repository search, code pattern discovery, Language Server Protocol intelligence (Go to Definition, Find References, Call Hierarchy), and file browsing. The server enables AI agents to understand code implementations, explore pull requests, and perform compiler-level code analysis to solve problems that typically require senior engineer expertise. It offers both a core MCP server and modular skills (Researcher, Research, Engineer, and Plan) that support multi-phase investigation, code generation, and evidence-based planning workflows.

CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Email for Agents: Free tier availableEmail for Agents: Free tier available
Email for Agents: Free tier available
Give your AI agent a complete email layer—sending, inbound inboxes, and sandbox testing.
Get 4K emails/month free →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Capacitor makes coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →
inference shell
inference shell
create and run specialised agents in minutes
build now →
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Email for Agents: Free tier availableEmail for Agents: Free tier available
Email for Agents: Free tier available
Give your AI agent a complete email layer—sending, inbound inboxes, and sandbox testing.
Get 4K emails/month free →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Capacitor makes coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →
inference shell
inference shell
create and run specialised agents in minutes
build now →

Octocode - Agentic Research Platform

Octocode Logo

MCP Community Server Ask DeepWiki

Website YouTube

Evidence-first code research for AI agents and developers.

Evidence from your local workspace and external sources (GitHub repos, PRs, npm). One toolset: ripgrep + AST search, trees, precise reads, and LSP - as a CLI or MCP server, backed by a Rust engine for fast, token-efficient results across single files or mega-repos.


Table of Contents

  • Quick Start
  • Why Octocode
  • What You Can Do
  • Built for Research (Benchmarks)
  • Tools
  • MCP
  • CLI
  • Configuration
  • Authentication Methods
  • Security
  • Language Support
  • Skills
  • Architecture
  • Documentation
  • Troubleshooting

Quick Start

Prerequisites: Node.js v18+

1. Run the Octocode CLI with npx

npx octocode --help

2. Authenticate with GitHub - optional, but unlocks private repositories and higher API rate limits:

npx octocode auth login
npx octocode status       # verify the active token source

3. Choose your interface. The same engine and tools run identically either way.

🖥️ CLI - research straight from your terminal:

npx octocode

🤖 MCP - one-click install:

  • Install in Cursor
  • Install in VS Code
Show more install options (Windsurf, Kiro, Goose, LM Studio, Claude Code)
  • Install in VS Code Insiders
  • Install in Windsurf
  • Install in Kiro
  • Install in Goose
  • Install in LM Studio

Claude Code:

claude mcp add-json octocode --scope user '{"command":"npx","type":"stdio","args":["@octocodeai/mcp@latest"]}'

Any other client: npx octocode install


See it in action

Search your local codebase and see the minified, token-efficient output:

npx octocode tools localSearchCode --queries '{"query": "authenticate"}' --yaml
- id: "1"
  results:
    - path: "src/auth.ts"
      matches:
        - line: 12
          content: "export async function authenticate(req: Request) {"

➡️ Learn more at octocode.ai.


Why Octocode

Agents write better code from evidence than from assumptions. Octocode turns guess-driven work into research-driven work. Before an agent changes, reviews, or explains code, it gathers real evidence from your local workspace and from GitHub repositories, pull requests, and npm packages, then hands it back as compact, citable context. Code is truth; context is the map.

Most tools cover one slice: searching the web, or grepping your repo. Octocode covers the whole research flow, end to end:

  • Built for scale. In organizations with thousands of repositories and endless code, Octocode is the solution: spot a pattern in one repo, follow it through the pull request that introduced it, then trace the same shape across other repos and your own files without leaving the conversation. Clone any repo and study it locally, on any machine.
  • Smart GitHub workflows. Parallel bulk queries and built-in next-step hints keep the agent on the cheapest path: search broadly, read narrowly, trace semantically. Each result points to the natural follow-up.
  • No GitHub required. Even without GitHub, clone any repository locally and point Octocode's local tools (search, structural AST, LSP, content) at it for the same evidence-first research.
  • Reads the shape, not the noise. Code is minified and skeletonized on the fly across 70+ languages, so an agent grasps a 100 KB file in a few hundred tokens instead of spending its context on boilerplate.
  • Fast and self-contained. Search, parsing, semantic navigation, and redaction run in one prebuilt Rust engine: quick on a laptop or a mega-repo, with no extra toolchain to install.
  • Safe by default. Every byte returned to the model is scanned and secrets redacted first (see Security).

What You Can Do

Octocode is useful whenever the next coding step depends on finding and proving context, not guessing it.

NeedUse Octocode to
Codebase questionsSearch local or GitHub code, read exact regions, browse trees, and carry file/line anchors into the answer.
Implementation researchCompare patterns across repositories, npm packages, pull requests, commits, and local files before changing code.
Semantic navigationResolve definitions, references, callers/callees, call hierarchy, hovers, symbols, diagnostics, and type relationships through LSP.
Structural matchingRun AST-shaped searches with patterns or YAML rules so comments and strings do not become false positives.
Large-file contextMinify, skeletonize, or paginate code so agents spend tokens on relevant structure instead of boilerplate.
Agent workflowsSame engine via MCP, CLI, and Agent Skills.

See Quick Start to install in your terminal or AI assistant.


Built for Research (Benchmarks)

Octocode is built for research - and it's measured on it. Across four independent, blind-graded runs against the leading GitHub-research CLIs (gh alone, gh + rtk, and gh + Headroom), the same runner model answered the same 17 real GitHub research questions with each tool. At equal or better correctness, Octocode pulled 1.4×–5.8× less context into the model - lower is better:

gh alone  (17 questions)
  octocode  ████████████████··············  152,710 chars
  gh        ██████████████████████████████  286,812 chars   → gh pulls 1.9× more

gh + rtk (by-hand pass)  (17 questions)
  octocode  █████████████████████·········  168,773 chars
  gh+rtk    ██████████████████████████████  242,691 chars   → gh+rtk pulls 1.4× more

gh + rtk (orchestrated: 2 blind runners + grader)  (17 questions)
  octocode  ███████████···················  395,644 chars
  gh+rtk    ██████████████████████████████  1,040,783 chars   → gh+rtk pulls 2.6× more

gh + Headroom compression (orchestrated)  (15 questions)
  octocode  █████·························  203,708 chars
  gh+hr     ██████████████████████████████  1,180,822 chars   → gh+hr pulls 5.8× more

Correctness was a tie or an Octocode edge in every run - gh 9.94/9.94, gh+rtk 10.0/10.0 (ties); orchestrated 9.18 → 9.38; Headroom 9.07 → 9.67.

Measured in characters of raw CLI output pulled into context (~4 chars ≈ 1 token) - the honest, measured number, not a self-report. Correctness graded first; leaner only wins at equal correctness.

Why it's leaner: gh and friends have no region read - to inspect one symbol they fetch the whole file, tree, or diff; Octocode reads the region that answers the question. Compression (Headroom) shrinks output only after it's fetched, so it can't offset over-fetching what you never needed.

A note on truncation: most context-shrinking tools truncate output blind to the question - for example, silently cutting a multi-file gh pr diff, hiding half the changes and forcing a full re-fetch. In research flows the answer often lives in those connections across files, so Octocode instead tries to fetch just what the request needs, rather than trimming after the fact.

Use the right tool for the job: for a quick check - a single small object, a flat list, a yes/no where you know where to look - gh's bare output is leaner, and the benchmark shows it. For actual research - multi-hop questions whose answers live inside large files, trees, and diffs - Octocode wins, because that's what it was built for.

📊 Full write-up - per-question visual charts, the three baselines, and honest caveats: Benchmark Summary. Every run is reproducible by hand via the octocode-benchmark skill - isolated runners, a blind grader, no harness.


Tools

13 always-on tools (same on MCP and CLI). Local tools on by default (ENABLE_LOCAL=false to disable). Three opt-ins: ghCloneRepo (MCP opt-in ENABLE_CLONE=true, CLI on by default), ghListReleases (ENABLE_RELEASES=true), and ghSearchDiscussions (ENABLE_DISCUSSIONS=true). Flags: Configuration.

Token knobs. concise:true returns path/title-only lists. minify controls file read density: symbols = skeleton with line numbers, standard = comments/blanks stripped (default), none = exact bytes.

GitHub Tools

ToolWhat it doesKnob
ghSearchCodeCode and path search across GitHub by owner, repo, path, filename, extension, and match filters. Accepts 1 to 5 parallel queries.concise
ghGetFileContentRead a GitHub file or region: full file, line range, match slice, or paginated chars.minify
ghViewRepoStructureBrowse a repository's directory tree, plus opt-in repo enrichments.include
ghSearchReposDiscover repositories by keywords, owner, topic, language, stars, updated, license, visibility.concise
ghSearchPullRequestsSearch pull requests, or deep-read one PR: files, patches, comments, reviews, commits.content
ghSearchIssuesSearch issues, or read one issue's body and comments.content
ghSearchCommitsWalk a repo's commit history, or compare two refs (base+head).includeDiff
ghListReleasesList releases + latest, with opt-in assets. Opt-in (ENABLE_RELEASES=true).includeAssets
ghSearchDiscussionsSearch a repo's Discussions (Q&A, RFCs, announcements) via GraphQL. Opt-in (ENABLE_DISCUSSIONS=true).keywordsToSearch
ghCloneRepoClone a repo or sparse subtree into the local cache for local/LSP analysis. Opt-in on MCP (ENABLE_CLONE=true; CLI on by default).sparsePath

Local Tools

ToolWhat it doesKnob
localSearchCodeLocal code/text search returning file and line anchors. mode:"structural" runs Octocode AST shape queries (pattern or rule).mode
localViewStructureBrowse a local directory tree: depth, filters, pagination, metadata.concise
localFindFilesFind local files and directories by name, path, regex, extension, size, time, permissions, type.
localGetFileContentRead a local file or region: exact slice, match string, line range, or paginated chars.minify

Package Search

ToolWhat it doesKnob
npmSearchnpm package lookup and keyword search; returns metadata and the source repository for GitHub handoff.concise

LSP

ToolWhat it does
lspGetSemanticsTyped semantic navigation: definition, references, callers, callees, callHierarchy, hover, documentSymbols, typeDefinition, implementation, workspaceSymbol, supertypes, subtypes, and diagnostic. From the CLI, invoke it directly: npx octocode tools lspGetSemantics --queries '<json>'. Navigation runs through installed language servers (see the LSP Tools Reference).

Full schemas, fields, and examples for every tool live in docs/OCTOCODE_TOOLS.md (linked under Documentation).


MCP

The MCP server exposes the Octocode tool catalog directly to your AI assistant over stdio.

https://github.com/user-attachments/assets/de8d14c0-2ead-46ed-895e-09144c9b5071

Manual Configuration

Add to your MCP client config. Pick the package that matches the version you want:

New Octocode (Rust-powered engine) - use @octocodeai/mcp:

{
  "octocode": {
    "command": "npx",
    "type": "stdio",
    "args": [
      "@octocodeai/mcp@latest"
    ]
  }
}

Classic octocode-mcp - use octocode-mcp:

{
  "octocode": {
    "command": "npx",
    "type": "stdio",
    "args": [
      "octocode-mcp@latest"
    ]
  }
}

Add a GitHub token and options under env - see Authentication and Configuration.


CLI

Same research engine, no MCP client needed. Local paths route to local tools; owner/repo[/path] routes to GitHub.

npx octocode auth login   # authenticate once
npx octocode status       # verify setup
npx octocode --help       # full usage

Commands

Tools

CommandWhat it does
npx octocode tools <name> --schemeShow one tool's schema: fields, types, bounds, defaults
npx octocode tools <name> --queries '<json>'Run a tool (same tools as MCP), YAML output
npx octocode tools <name> --queries '<json>' --jsonRun a tool, full CallToolResult JSON
npx octocode toolsList every available tool

More commands

  • Cache & clone - npx octocode clone, npx octocode cache fetch|status|clear
  • Skills - npx octocode skill list|install|check|info|remove for bundled Octocode skills
  • Language servers - npx octocode lsp-server list|install|status|uninstall|clean
  • Setup & introspection - npx octocode install, npx octocode auth, npx octocode status, npx octocode context

Full syntax, flags, and exit codes: Octocode CLI Guide


Configuration

Everything is optional; Octocode runs on sensible defaults. Settings resolve from three sources, in priority order:

environment variables  >  <octocode-home>/.octocoderc  >  built-in defaults
  1. MCP / environment variables (highest): per client or per project, set in your MCP config env or your shell.
  2. Global config: <octocode-home>/.octocoderc, machine-wide defaults read by both the CLI and the MCP server.
  3. Built-in defaults: used when neither is set.

Octocode home (<octocode-home>) holds the global config, encrypted credentials, sessions, stats, and tmp materialization caches. It defaults by platform and can be overridden with OCTOCODE_HOME:

PlatformLocation
macOS~/.octocode
Linux${XDG_CONFIG_HOME:-~/.config}/.octocode
Windows%APPDATA%\.octocode

Set values as MCP env entries (per client; these win over .octocoderc) or globally in <octocode-home>/.octocoderc (JSON with comments). Tokens never go in .octocoderc - use env or npx octocode auth login.

Common settings

The Scope column shows where a setting applies: Both, or MCP (the CLI ignores it).

Env var.octocoderc keyDefaultScopeWhat it does
OCTOCODE_HOMEenv onlyplatform defaultBothOverrides the Octocode data directory for config, credentials, sessions, stats, and caches.
OCTOCODE_TOKEN / GH_TOKEN / GITHUB_TOKENenv onlyunsetBothGitHub token, in priority order. Tokens stay in env, never in .octocoderc.
GITHUB_API_URLgithub.apiUrlhttps://api.github.comBothAPI endpoint; use /api/v3 for GitHub Enterprise.
ENABLE_LOCALlocal.enabledtrueBothTurns local filesystem + LSP tools on/off; set false to disable.
ENABLE_CLONElocal.enableCloneCLI true, MCP falseBothghCloneRepo and directory fetch. Default differs by surface; set false to disable in either.
WORKSPACE_ROOTlocal.workspaceRootcwdBothAbsolute root for resolving relative local paths.
ALLOWED_PATHSlocal.allowedPaths[]BothExtra path allowlist for local access; empty means home directory only after validation.
TOOLS_TO_RUN / ENABLE_TOOLS / DISABLE_TOOLStools.*unsetMCPWhitelist, add to, or remove from the registered tool set. The CLI exposes every tool.
REQUEST_TIMEOUTnetwork.timeout30000BothRequest timeout in ms (clamped 5000..300000).
MAX_RETRIESnetwork.maxRetries3BothRetry attempts (clamped 0..10).
OCTOCODE_OUTPUT_FORMAToutput.formatyamlBothResponse format: yaml or json.

Local defaults on; clone differs by surface. Both CLI and MCP default local tools on; set ENABLE_LOCAL=false to disable them. The CLI defaults clone on, while the MCP server requires ENABLE_CLONE=true.

Example Configuration

~/.octocode/.octocoderc:

{
  "github": {
    "apiUrl": "https://api.github.com"
  },
  "local": {
    "enabled": true,
    "enableClone": true
  },
  "output": {
    "format": "yaml"
  }
}

Per-project overrides and custom LSP servers live in a workspace .octocode/ folder. For the full .octocoderc schema, a ready-to-copy example, clone-cache tuning, GitHub Enterprise setup, and precedence details, see the Configuration Reference.


Authentication Methods

GitHub-backed tools require authentication. Any one method is enough. Full details: Authentication Setup.

Option 1: Octocode CLI (Recommended)

npx octocode auth login
npx octocode status       # verify the active token source

Interactive login lets you choose Octocode browser OAuth or gh auth login. Octocode OAuth credentials are stored encrypted on disk.

Option 2: GitHub CLI (also supported)

gh auth login

Octocode reads the gh token automatically - no further config needed.

Option 3: Personal Access Token (also supported)

Set OCTOCODE_TOKEN, GH_TOKEN, or GITHUB_TOKEN in your shell. Required scopes: repo, read:user, read:org.

Create a token at github.com/settings/tokens.

Security tip: Never commit tokens to version control. Use environment variables or secure secret management.


Security

Every byte that reaches the model is scanned and redacted first. All content (local files, GitHub and npm responses, error messages, and tool outputs) passes through the Rust engine's secret scanner on the way in (tool inputs) and on the way out (results), so secrets never reach the LLM. The same enforcement runs identically under MCP and the CLI.

  • Secret redaction, in and out. 300+ provider credential patterns (AWS, Azure, GCP, GitHub, OpenAI, Anthropic, Stripe, Slack, 1Password, and more) plus generic JWTs, PEM/private keys, bearer tokens, database connection strings, and high-entropy strings. Masked values surface a redaction warning so the agent knows.
  • Content sanitized at the source. Local reads (localGetFileContent, ripgrep, structural search, binary, file discovery, structure) and external fetches (GitHub code/files, npm) are scanned as they are read, not only at the boundary.
  • Path safety. Relative inputs resolve from WORKSPACE_ROOT / config / cwd, then local reads are bounded to the engine's allowed roots (home by default, plus ALLOWED_PATHS and Octocode-registered roots). Symlinks are resolved and the real target is re-validated, so a link cannot escape into a blocked location.
  • Sensitive files and directories are blocked by default. Octocode refuses to read known secret-bearing files and folders wherever they live, returning a redacted error instead of contents. Blocked patterns include:
    • Keys and certs: *.pem, *.key, *.crt/*.cer/*.csr, *.p12/*.pfx/*.jks/*.keystore, and SSH keys (id_rsa, *_ed25519, authorized_keys, known_hosts, .ssh/).
    • Credentials and tokens: .env / .env.*, .netrc, .npmrc, .pgpass, .git-credentials, *_token / .token, client_secret*.json, *service-account*.json, auth.json, .htpasswd.
    • Cloud and infra: .aws/, .azure/, .config/gcloud/, .kube/ / kubeconfig, .docker/, .terraform/ and *.tfstate.
    • OS and app secret stores: .git/, secrets/, private/, browser login data (Chrome/Firefox), OS keychains, password managers (*.kdbx), shell history files, and crypto wallets.
  • Command safety. Normal local search runs in-process inside octocode-engine. External helpers are fixed per lane, command/argument allowlisted, and run via spawn with argument arrays: no shell strings, no injection.
  • Schema validation runs before any tool executes; untrusted input size and shape are bounded.
  • Credentials. GitHub auth via env tokens, AES-256-GCM-encrypted on-disk OAuth, or the gh CLI; tokens are never logged.

Full security model, pipeline, and threat coverage: SECURITY.md. Related: Authentication · Configuration · Credentials


Language Support

Four code-intelligence axes; three are native to the Rust engine and need no external tooling:

AxisWhat it doesHow to use it
Structural ASTTree-sitter shape queries (pattern or YAML rule) across 60+ extensions.localSearchCode mode:"structural" · CLI tools localSearchCode --scheme
Signature outlineBody-free skeleton with line numbers from real tree-sitter parsing, no heuristics. An anti-growth guard returns the real file when a skeleton wouldn't be smaller.minify:"symbols" · CLI tools localGetFileContent --scheme
Content minificationComment/whitespace stripping for 70+ languages and config formats; HTML/Vue/Svelte also minify embedded <style>/<script>.minify:"standard" (default)
LSP navigationdefinition, references, callers/callees, callHierarchy, hover, typeDefinition, implementation, documentSymbols, via an installed language server; JS/TS also have a native, no-server path.lspGetSemantics · CLI tools lspGetSemantics --scheme

📋 Full support matrix: every extension with its exact AST, signature, LSP, and minify capability, machine-generated from the shipped binary, lives in the Full format support matrix (151 extensions: 61 AST, 47 signature, 32 LSP, 90 minify-only). Regenerate or verify with yarn workspace @octocodeai/octocode-benchmark matrix:check.


Skills

Agent Skills are a lightweight, open format for extending AI agent capabilities. Browse and install on skills.sh/bgauryy/octocode-mcp

13 skills under skills/, bundled in the octocode package. Every skill shares one architecture - a lean SKILL.md lobby with hard gates, references loaded only when a step needs them, and cross-skill routes - so they compose. Start with ⭐ Research for evidence-first code work.

npx octocode skill list
npx octocode skill install octocode-research --platform pi
npx octocode skill check --json
npx octocode skill help

Core Research & Extraction

SkillUse when
⭐ octocode-researchEvidence-first research, review, debugging, refactors, prior-art validation.
octocode-scrapingPublic page extraction and crawl triage: static corpus + graph v2 (pages/data/actions/risks/evidence), then CDP handoff for dynamic actions and blocked pages.
octocode-chrome-devtoolsBrowser/CDP evidence: network, console, performance, cookies/storage, screenshots, auth-gated pages, and live validation of scrape-graph actions.

Planning & Architecture

SkillUse when
octocode-brainstormingDisciplined idea exploration before building: options, worth-building tests, prior-art maps.
octocode-rfc-generatorEvidence-backed RFCs, design docs, migration plans, option comparisons.
octocode-documentationWriting or updating README, API docs, runbooks, AGENTS.md, ADRs.

Evaluation & Review

SkillUse when
octocode-roastBlunt, evidence-backed code critique with severity ranking and repair paths.
octocode-graph-evalMeasuring whether a change helped: goal→KPI contracts, baselines, accept/revert loops, eval suites.
octocode-prompt-optimizerMaking prompts, tool schemas, and agent contracts clearer, safer, cheaper, measurable.

Agent Orchestration

SkillUse when
octocode-subagentDelegation: spawn gates, decomposition, sealed packets, coordination, synthesis.
octocode-awarenessShared-repo coordination: collision avoidance, handoffs, verification debt, durable memory.
octocode-skillsAgent-skill lifecycle: discover, review, create, improve, install, sync.
octocode-orchestrator-local-workerOffloading token-heavy text work to a local Ollama worker under a verify gate.

Web automation workflow: octocode-scraping performs the safe static pass first (fetch/crawl/extract → local corpus → graph v2). When the graph exposes dynamic actions or static output is blocked/thin, octocode-chrome-devtools validates live actionability, cookies/storage, network/HAR bodies, screenshots, or auth-gated state; discovered URLs/data/artifacts can be fed back into the scraping corpus for continued proof.


Architecture

A yarn-workspaces monorepo. The MCP server and the CLI are thin front-ends over one shared TypeScript tool core, which delegates every CPU-heavy path to a single Rust engine (compiled via napi-rs to prebuilt .node binaries). One tool catalog, one security layer, one response shaper, reached two ways.

graph LR
    CLI["octocode<br/>CLI"]
    MCP["octocode-mcp<br/>MCP server, stdio"]
    VSC["VS Code extension<br/>OAuth + install"]
    CORE["octocode-tools-core<br/>tools, GitHub client, auth, pagination, security bridge"]
    ENGINE["octocode-engine (Rust)<br/>secrets, minify, AST, signatures, ripgrep/diff/YAML, LSP"]
    EXT["GitHub API, local FS + ripgrep, language servers"]

    CLI --> CORE
    MCP --> CORE
    VSC -. starts .-> MCP
    CORE --> ENGINE
    CORE --> EXT
    ENGINE --> EXT

    style ENGINE fill:#1a1a2e,stroke:#e75d2a,color:#fff

Request flow is identical whether a call arrives over MCP or the CLI:

client → sanitize inputs (Rust) → run tool (GitHub / FS / LSP) → sanitize + YAML-serialize + paginate (Rust) → result + next-step hints

One Rust engine owns secret detection, sanitization, path/command validation, minification (70+ languages), signature extraction, structural AST search, ripgrep parsing, diff filtering, YAML serialization, and LSP, so the Node event loop stays unblocked and there is no duplicate native loader. It ships prebuilt for darwin (arm64/x64), linux (arm64/x64, gnu + musl), and win32-x64; no Rust toolchain is needed at runtime.

Packages

Directorynpm packageRole
packages/octocodeoctocodeCLI: quick commands, raw tool runner, skill installs, auth/login/logout, install, status, context.
packages/octocode-mcp@octocodeai/mcpMCP server (stdio) that registers the tool catalog for AI assistants.
packages/octocode-tools-core@octocodeai/octocode-tools-coreShared tool core: implementations, GitHub client, credentials and token resolution, session, pagination, security bridge.
packages/octocode-engine@octocodeai/octocode-engineRust/napi native engine: security scanning, minification, signatures, structural AST, ripgrep/diff/YAML, LSP.
packages/octocode-config@octocodeai/configZero-dep env + config loader: getOctocodeHome, .env parsing, .octocoderc reading. Single source used by every package and skill.
packages/octocode-vscodeoctocode-mcp-vscodeVS Code extension: GitHub OAuth + multi-editor MCP install.

packages/octocode-benchmark (private, not published) holds benchmark methodology, evals, and run artifacts - see Documentation.


Documentation

Website: octocode.ai · Product docs: github.com/bgauryy/octocode/tree/main/docs. This section is the canonical documentation index; benchmark methodology, evals, and run artifacts live in packages/octocode-benchmark.

AreaDocs
MCP serverOctocode MCP Server · Configuration · Authentication
Tools and workflowsOctocode Tools Reference · RDD Manifest & Workflows · Octocode Research Skill · Search Guide
CLIOctocode CLI Guide
SkillsSkills
Development and securitySecurity Model · LSP Server Lifecycle
Benchmarks and evalsResearch Efficiency Results · Benchmark Design · Unified CLI/Tool Eval · Benchmark Runbook · Support Matrix
Shared internalsCredentials Architecture · Session Persistence

Troubleshooting

Node.js or Environment Issues? Run the built-in doctor command to check your environment:

npx node-doctor check --json

Common Pitfalls:

  • GitHub Auth Failures: Ensure your Personal Access Token (PAT) has the repo and read:user scopes. If using the CLI, run npx octocode auth login to refresh.
  • MCP Connection Issues: If your AI assistant (like Cursor or Windsurf) fails to connect, ensure you have run npx octocode auth login in your terminal first, or explicitly pass your OCTOCODE_TOKEN in the MCP env configuration.
  • Native Engine Errors: Octocode uses a prebuilt Rust engine. If it fails to load on Linux, ensure your system has glibc or musl compatibility. On macOS/Windows, ensure you are on a supported architecture (x64 or arm64).

Agent Workflows

Recommended dev mode: Pi + Octocode

Pi is a fast, local-first coding agent whose stated philosophy is "CLI tools with READMEs (Skills) over MCP." Pairing it with Octocode gives a lean, evidence-driven dev loop - Pi edits, Octocode researches. Two routes, pick by how much surface you need:

  • Skill route - recommended, leanest. Drop the octocode-research skill into Pi's global skills dir. It drives the Octocode CLI directly - no MCP transport, minimal token overhead - and Pi auto-discovers it:

    npx octocode skill install octocode-research --platform pi
    
  • Adapter route - full tool surface. Install pi-mcp-adapter to expose Octocode MCP tools behind a single ~200-token proxy tool, so servers stay disconnected until a tool is actually called. Enable clone tools with ENABLE_CLONE=true.

Research-driven loop

Most agent failures start before implementation: the agent guesses the owner of a behavior, trusts a snippet without reading the exact source, or edits before proving blast radius. Prefer a cheaper loop first: orient with trees and discovery output, search with Octocode, read exact evidence, use AST/LSP when identity matters, then patch and verify.

That shape keeps the editing surface small while preserving context for what matters: file anchors, symbols, call paths, PR/history evidence, package sources, and the verification command that proves the change. In short, the host edits, Octocode is the map, and skills encode the habit.

The Manifest

"Code is Truth, but Context is the Map." Read the Manifest of Octocode for Research Driven Development to understand the philosophy behind Octocode.

Featured
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Email for Agents: Free tier availableEmail for Agents: Free tier available
Email for Agents: Free tier available
Give your AI agent a complete email layer—sending, inbound inboxes, and sandbox testing.
Get 4K emails/month free →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Capacitor makes coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →
inference shell
inference shell
create and run specialised agents in minutes
build now →

Configuration

GITHUB_TOKENsecret

GitHub Personal Access Token. Optional - authenticate via GitHub CLI (gh auth login) for automatic token management, or set this token manually for CI/CD environments.

Categories
Developer ToolsSearch & Web Crawling
Registryactive
Packageoctocode-mcp
TransportSTDIO
AuthRequired
UpdatedNov 10, 2025
View on GitHub

Related Developer Tools MCP Servers

View all →
Git Mcp Server

ray0907/git-mcp-server

MCP server for GitLab and GitHub
Git Mcp Server

cyanheads/git-mcp-server

Comprehensive Git MCP server enabling native git tools including clone, commit, worktree, & more.
221
Atlassian Dc Mcp Bitbucket

io.github.b1ff/atlassian-dc-mcp-bitbucket

MCP server for Atlassian Bitbucket Data Center - interact with repositories and code
77
Atlassian Dc Mcp Jira

io.github.b1ff/atlassian-dc-mcp-jira

MCP server for Atlassian Jira Data Center - search, view, and create issues
77
Atlassian Jira

com.mcparmory/atlassian-jira

Create, search, and manage issues, projects, and team workflows
25
Vscode Terminal Mcp

sirlordt/vscode-terminal-mcp

Execute commands in visible VSCode terminal tabs with output capture and session reuse.
1