Skip to content
FunCoding

octocode-get-started

Load this skill first when setting up Octocode: install the CLI or bundled skills, connect an MCP client, sign in to GitHub and verify with a real call.

Star
972
License
MIT
Last commit
Dec 2, 2026

skills/octocode-get-started/SKILL.md

View on GitHub

Get started with Octocode

Identify the client, project and requested setup; ask when the client is unknown. Run only needed sections (CLI: terminal and GitHub login; MCP: tools inside a client). Full setup order: CLI, GitHub sign-in, MCP client, so the client's restart picks up the login; done when MCP step 3 returns the README line and auth status --json shows verified.

Try the CLI

One package, octocode-mcp, is both the CLI (octocode-mcp <command>) and the MCP server (an MCP client runs it bare). The npm package needs Node.js 24.15 or later; the standalone native binary needs none, but an MCP entry from install still does (MCP step 2). From a project with a README, run:

npx -y octocode-mcp --version
npx -y octocode-mcp localFetch '{"queries":[{"path":"README.md","ranges":[{"startLine":1,"endLine":1}]}]}'

The reply should hold the README’s first line; local reads work before sign-in. For a global CLI, npm install -g octocode-mcp, then drop npx -y. CLI guide

Sign in to GitHub

Code search and private repositories need a login. On the machine running Octocode, start it from an interactive terminal.

npx -y octocode-mcp auth login
npx -y octocode-mcp auth status --json

The user follows the sign-in steps. Check for verification: "verified" and the expected hostname and username; a device login reports tokenSource: "octocode-storage", which MCP shares when it uses the same Octocode home and GitHub host; a running MCP client sees a new login only after a restart. CI tokens, GitHub CLI accounts or Enterprise: credential selection.

Connect an MCP client

  1. npx -y octocode-mcp install --list shows each client ID and whether its Octocode entry exists (a plugin may supply it); check an existing one with npx -y octocode-mcp install --ide <client-id> --check.
  2. If the entry is missing, run npx -y octocode-mcp install --ide <client-id> --enable-local true (--scope workspace for a project entry where supported; --dry-run previews). The entry starts the server through npx (--method bunx or pnpm instead), so the client needs Node.js 24.15 or later with that runner on its PATH; --check does not test that. Without Node, write the native entry by hand: "command": "octocode-mcp" with no args (stdio configuration); --check accepts it and warns when octocode-mcp is not on PATH. --enable-local true lists the tools that search and read code on this machine; without it the server lists the GitHub and package tools only. --preset full|local|github picks a whole tool set instead and overrides the other tool settings. For a client with no ID, use the stdio configuration.
  3. Restart the client, open the project, and ask “Use Octocode to read the first line of README.md.” It should call localFetch and return the CLI’s line. On failure, do not reinstall: no Octocode tools → rerun --check; GitHub tools but no localFetch → the entry lacks OCTOCODE_ENABLE_LOCAL=true or sets OCTOCODE_TOOLS_PRESET=github (rerun step 2 with --force, or with --preset full); then the client’s MCP log names the start error; a different line or missing file → set the server’s working directory or WORKSPACE_ROOT (stdio configuration), restart, ask again.

Configure settings or add skills

NeedActionCheck
Choose a toolFirst tool callsnpx -y octocode-mcp schema or the client’s tool list
Change settings or enable toolsPrecedence, optional tools; restart MCP afternpx -y octocode-mcp config list
Add a provider keyKey setup; the user enters the secret on stdinnpx -y octocode-mcp config check <KEY> (exit 0 when set)
Install a bundled skillnpx -y octocode-mcp skill list, then npx -y octocode-mcp skill install <name> --platform <platform> --project-dir . (or --global)npx -y octocode-mcp skill check <name>

Report the interface, project and passing checks, or the failing command or tool, its error and the setup part it affects. Omit tokens and device codes.

Similar Skills

rea-ci-tests-audit

MOmorluto/rea486k8,943 new stars in the last 7 days

rea-changelog-update

MOmorluto/rea486k8,943 new stars in the last 7 days

wizard

MAmattpocock/skills337k4,978 new stars in the last 7 days

pr

MAmattpocock/skills337k4,978 new stars in the last 7 days

triage

MAmattpocock/skills337k4,978 new stars in the last 7 days

Featured

git-guardrails-claude-code

Block dangerous git commands like push and reset --hard before they execute.

MAmattpocock/skills337k4,978 new stars in the last 7 days