octocode-cli 1.5.0 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +167 -90
- package/out/chunks/chunk-375ZNU3A.js +317 -0
- package/out/chunks/{chunk-V64AXUWB.js → chunk-AYILFPX4.js} +1 -1
- package/out/chunks/chunk-BRHVQB64.js +10 -0
- package/out/chunks/{command-help-specs-JZXVSLZ5.js → chunk-KWJUBVXJ.js} +1 -1
- package/out/chunks/chunk-OMXWZJBJ.js +100 -0
- package/out/chunks/command-help-specs-RVJK6V6M.js +8 -0
- package/out/chunks/commands-JFDCC4Q7.js +8 -0
- package/out/chunks/{help-P7TCOYAJ.js → help-H3WGUJO7.js} +1 -1
- package/out/chunks/main-help-BUTDD4IR.js +10 -0
- package/out/chunks/{spinner-URV2OX6O.js → spinner-DXD4JQIU.js} +1 -1
- package/out/chunks/tool-command-L6PVHUNS.js +8 -0
- package/out/octocode-cli.js +1 -1
- package/package.json +2 -2
- package/skills/octocode-brainstorming/scripts/tavily-search.mjs +1 -10
- package/skills/octocode-chrome-devtools/scripts/cdp-runner.mjs +0 -2
- package/skills/octocode-chrome-devtools/scripts/cdp-sandbox.mjs +1 -5
- package/skills/octocode-chrome-devtools/scripts/cdp-template.mjs +1 -10
- package/skills/octocode-chrome-devtools/scripts/open-browser.mjs +0 -3
- package/skills/octocode-chrome-devtools/scripts/sourcemap-resolver.mjs +1 -4
- package/skills/octocode-chrome-devtools/scripts/undercover.mjs +0 -2
- package/skills/octocode-engineer/SKILL.md +7 -33
- package/skills/octocode-engineer/references/cli-reference.md +5 -11
- package/skills/octocode-engineer/references/externals.md +0 -4
- package/skills/octocode-engineer/references/quality-indicators.md +10 -50
- package/skills/octocode-engineer/references/tool-workflows.md +10 -13
- package/skills/octocode-engineer/src/analysis/dependency-summary.test.ts +2 -2
- package/skills/octocode-engineer/src/ast/metrics.test.ts +2 -2
- package/skills/octocode-engineer/src/ast/search-main.ts +2 -15
- package/skills/octocode-engineer/src/ast/search.ts +1 -7
- package/skills/octocode-engineer/src/ast/tree-sitter.test.ts +4 -4
- package/skills/octocode-engineer/src/ast/tree-sitter.ts +2 -2
- package/skills/octocode-engineer/src/collectors/chains.ts +3 -10
- package/skills/octocode-engineer/src/collectors/prototype-pollution.ts +3 -3
- package/skills/octocode-engineer/src/collectors/security.ts +3 -3
- package/skills/octocode-engineer/src/common/ensure-deps.ts +3 -20
- package/skills/octocode-engineer/src/detectors/code-quality.ts +0 -1
- package/skills/octocode-engineer/src/index.test.ts +1 -1
- package/skills/octocode-engineer/src/index.ts +1 -11
- package/skills/octocode-engineer/src/pipeline/affected.ts +2 -7
- package/skills/octocode-engineer/src/pipeline/baseline.ts +2 -8
- package/skills/octocode-engineer/src/pipeline/cache.ts +2 -2
- package/skills/octocode-engineer/src/pipeline/config-loader.test.ts +1 -2
- package/skills/octocode-engineer/src/pipeline/config-loader.ts +0 -9
- package/skills/octocode-engineer/src/pipeline/create-options.ts +2 -15
- package/skills/octocode-engineer/src/pipeline/reporters.ts +2 -12
- package/skills/octocode-engineer/src/reporting/summary-md.test.ts +2 -2
- package/skills/octocode-engineer/src/run.ts +1 -7
- package/skills/octocode-engineer/src/types/constants.ts +0 -5
- package/skills/octocode-engineer/src/types/core.ts +0 -5
- package/skills/octocode-news/eslint.config.mjs +1 -6
- package/skills/octocode-news/src/rss-core.ts +2 -4
- package/skills/octocode-research/ecosystem.config.cjs +0 -31
- package/skills/octocode-research/package.json +1 -1
- package/skills/octocode-research/scripts/server.js +272 -230
- package/skills/octocode-research/src/__tests__/integration/circuitBreaker.test.ts +0 -24
- package/skills/octocode-research/src/__tests__/integration/routes.test.ts +0 -10
- package/skills/octocode-research/src/__tests__/integration/serverLifecycle.test.ts +5 -22
- package/skills/octocode-research/src/__tests__/integration/toolsRoutes.test.ts +0 -27
- package/skills/octocode-research/src/__tests__/unit/circuitBreaker.test.ts +0 -29
- package/skills/octocode-research/src/__tests__/unit/errorHandler.test.ts +1 -12
- package/skills/octocode-research/src/__tests__/unit/httpPreprocess.test.ts +1 -9
- package/skills/octocode-research/src/__tests__/unit/logger.test.ts +0 -7
- package/skills/octocode-research/src/__tests__/unit/queryParser.test.ts +1 -7
- package/skills/octocode-research/src/__tests__/unit/responseBuilder.test.ts +0 -11
- package/skills/octocode-research/src/__tests__/unit/retry.test.ts +1 -18
- package/skills/octocode-research/src/__tests__/unit/schemas.test.ts +2 -25
- package/skills/octocode-research/src/index.ts +0 -27
- package/skills/octocode-research/src/mcpCache.ts +3 -18
- package/skills/octocode-research/src/middleware/errorHandler.ts +1 -4
- package/skills/octocode-research/src/middleware/logger.ts +1 -6
- package/skills/octocode-research/src/middleware/queryParser.ts +3 -22
- package/skills/octocode-research/src/routes/github.ts +0 -11
- package/skills/octocode-research/src/routes/local.ts +0 -12
- package/skills/octocode-research/src/routes/lsp.ts +1 -10
- package/skills/octocode-research/src/routes/package.ts +0 -2
- package/skills/octocode-research/src/routes/prompts.ts +2 -32
- package/skills/octocode-research/src/routes/tools.ts +12 -177
- package/skills/octocode-research/src/server-init.ts +0 -32
- package/skills/octocode-research/src/server.ts +8 -37
- package/skills/octocode-research/src/types/errorGuards.ts +0 -15
- package/skills/octocode-research/src/types/guards.ts +6 -27
- package/skills/octocode-research/src/types/mcp.ts +1 -8
- package/skills/octocode-research/src/types/responses.ts +0 -15
- package/skills/octocode-research/src/utils/asyncTimeout.ts +1 -63
- package/skills/octocode-research/src/utils/circuitBreaker.ts +43 -166
- package/skills/octocode-research/src/utils/colors.ts +3 -17
- package/skills/octocode-research/src/utils/errorQueue.ts +6 -28
- package/skills/octocode-research/src/utils/logger.ts +11 -93
- package/skills/octocode-research/src/utils/resilience.ts +22 -77
- package/skills/octocode-research/src/utils/responseBuilder.ts +26 -78
- package/skills/octocode-research/src/utils/responseFactory.ts +0 -7
- package/skills/octocode-research/src/utils/responseParser.ts +11 -59
- package/skills/octocode-research/src/utils/retry.ts +12 -75
- package/skills/octocode-research/src/utils/routeFactory.ts +10 -61
- package/skills/octocode-research/src/utils/url.ts +0 -5
- package/skills/octocode-research/src/validation/httpPreprocess.ts +15 -61
- package/skills/octocode-research/src/validation/schemas.ts +14 -101
- package/skills/octocode-research/src/validation/toolCallSchema.ts +5 -65
- package/skills/octocode-research/tsdown.config.ts +2 -7
- package/skills/octocode-search-skill/SKILL.md +9 -2
- package/skills/octocode-search-skill/references/discovery-surfaces.md +2 -1
- package/skills/octocode-slides/scripts/navbridge.js +1 -14
- package/skills/octocode-slides/scripts/presenter.js +2 -61
- package/skills/octocode-stats/scripts/build_dashboard.mjs +1 -19
- package/assets/example.png +0 -0
- package/out/chunks/chunk-7476PETK.js +0 -309
- package/out/chunks/chunk-OQBJTZWK.js +0 -60
- package/out/chunks/chunk-UCZCF3BQ.js +0 -9
- package/out/chunks/commands-XBFPLHSQ.js +0 -8
- package/out/chunks/main-help-ULF5PAQY.js +0 -10
- package/out/chunks/tool-command-M6VA7P2F.js +0 -8
- package/skills/octocode-research/AGENTS.md +0 -349
package/README.md
CHANGED
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
[Website](https://octocode.ai) · [CLI Reference](https://github.com/bgauryy/octocode-mcp/blob/main/docs/dev/reference/CLI_REFERENCE.md) · [GitHub](https://github.com/bgauryy/octocode-mcp)
|
|
12
12
|
|
|
13
|
-
<img src="https://
|
|
13
|
+
<img src="https://github.com/bgauryy/octocode-mcp/raw/main/packages/octocode-mcp/assets/logo_white.png" width="400px" alt="Octocode Logo">
|
|
14
|
+
|
|
14
15
|
|
|
15
16
|
</div>
|
|
16
17
|
|
|
@@ -19,9 +20,12 @@
|
|
|
19
20
|
## Install
|
|
20
21
|
|
|
21
22
|
```bash
|
|
22
|
-
# Homebrew (macOS / Linux)
|
|
23
|
+
# Homebrew (macOS / Linux): installs the `octocode` command globally
|
|
23
24
|
brew install bgauryy/octocode/octocode
|
|
24
25
|
|
|
26
|
+
# equivalent short form
|
|
27
|
+
brew tap bgauryy/octocode && brew install octocode
|
|
28
|
+
|
|
25
29
|
# or npm (global)
|
|
26
30
|
npm install -g octocode-cli
|
|
27
31
|
|
|
@@ -29,113 +33,185 @@ npm install -g octocode-cli
|
|
|
29
33
|
npx octocode-cli install
|
|
30
34
|
```
|
|
31
35
|
|
|
32
|
-
|
|
36
|
+
Verify, then sign in:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
octocode --version # → octocode v1.5.3
|
|
40
|
+
octocode login # GitHub OAuth (device flow)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
The installed command is **`octocode`** (not `octocode-cli`). Homebrew pulls in Node automatically.
|
|
33
44
|
|
|
34
45
|
## Quick Start
|
|
35
46
|
|
|
36
47
|
```bash
|
|
37
|
-
|
|
38
|
-
octocode install --ide cursor
|
|
39
|
-
octocode install --ide cursor --check #
|
|
40
|
-
octocode
|
|
48
|
+
octocode login # GitHub authentication
|
|
49
|
+
octocode install --ide cursor # wire MCP into an editor
|
|
50
|
+
octocode install --ide cursor --check # pre-flight: check writability & current state
|
|
51
|
+
octocode skills install --targets claude-code # add Agent Skills
|
|
52
|
+
octocode tools # list every tool
|
|
53
|
+
octocode tools localSearchCode --queries '{"path":".","pattern":"TODO"}'
|
|
41
54
|
```
|
|
42
55
|
|
|
43
56
|
---
|
|
44
57
|
|
|
58
|
+
## The 14 Tools
|
|
59
|
+
|
|
60
|
+
Call any tool directly from the terminal. Great for scripts, pipelines, and one-off queries. No MCP server required.
|
|
61
|
+
|
|
62
|
+
| Group | Tool | What it does |
|
|
63
|
+
|-------|------|--------------|
|
|
64
|
+
| **GitHub** | `githubSearchCode` | Search code across GitHub `[EXTERNAL]` |
|
|
65
|
+
| | `githubSearchRepositories` | Search repositories by keywords/topics `[EXTERNAL]` |
|
|
66
|
+
| | `githubSearchPullRequests` | Search pull requests `[EXTERNAL]` |
|
|
67
|
+
| | `githubGetFileContent` | Read file content (matchString, line ranges) `[EXTERNAL]` |
|
|
68
|
+
| | `githubViewRepoStructure` | List a repo's directory tree `[EXTERNAL]` |
|
|
69
|
+
| | `githubCloneRepo` | Clone a repo/subtree to disk for local + LSP analysis |
|
|
70
|
+
| **Local** | `localSearchCode` | Search code patterns with ripgrep (PCRE2) |
|
|
71
|
+
| | `localFindFiles` | Find files by name/metadata |
|
|
72
|
+
| | `localGetFileContent` | Read local file content |
|
|
73
|
+
| | `localViewStructure` | View a local directory tree |
|
|
74
|
+
| **LSP** | `lspGotoDefinition` | Navigate to a symbol's definition |
|
|
75
|
+
| | `lspFindReferences` | Find all usages of a symbol |
|
|
76
|
+
| | `lspCallHierarchy` | Trace function call relationships |
|
|
77
|
+
| **Package** | `packageSearch` | Resolve an npm package to its source repo + metadata |
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# Discover
|
|
81
|
+
octocode --agent # agent bootstrap: protocol + tools + input fields
|
|
82
|
+
octocode --agent --full # …plus every tool's full JSON schema inline
|
|
83
|
+
octocode tools # list all tools
|
|
84
|
+
octocode tools localSearchCode # show one tool's schema
|
|
85
|
+
octocode tools localSearchCode githubSearchCode # batch schemas
|
|
86
|
+
octocode instructions # alias of --agent (add --full for all schemas)
|
|
87
|
+
|
|
88
|
+
# Run
|
|
89
|
+
octocode tools localSearchCode --queries '{"path":".","pattern":"TODO"}'
|
|
90
|
+
octocode tools githubSearchCode --queries '{"keywordsToSearch":["useReducer"],"owner":"facebook","repo":"react"}'
|
|
91
|
+
octocode tools localSearchCode --queries '{"path":".","pattern":"TODO"}' --json # full MCP envelope
|
|
92
|
+
octocode tools localSearchCode --queries '{"path":".","pattern":"TODO"}' --compact # leanest (structuredContent only)
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
The shared metadata fields (`id`, `researchGoal`, `reasoning`, `mainResearchGoal`) are auto-filled. Provide only tool-specific fields.
|
|
96
|
+
|
|
97
|
+
> **For agents:** run `octocode --agent` once for the full bootstrap (protocol + every tool + input fields + the mandatory "read the schema before calling" rule + the exit-code table). Then `octocode tools <name>` to confirm a tool's exact schema before calling it. This checklist is also printed at the top of `octocode --help`.
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
45
101
|
## GitHub Token
|
|
46
102
|
|
|
47
|
-
Octocode resolves a GitHub token in this order: **environment variable → Octocode-managed token (`
|
|
103
|
+
Octocode resolves a GitHub token in this order: **environment variable → Octocode-managed token (`octocode login`) → `gh` CLI**.
|
|
48
104
|
|
|
49
105
|
For env-based setup, any of these are accepted (checked in this priority): `OCTOCODE_TOKEN`, `GH_TOKEN`, `GITHUB_TOKEN`.
|
|
50
106
|
|
|
51
107
|
```bash
|
|
52
108
|
export GITHUB_TOKEN=ghp_xxx # or OCTOCODE_TOKEN / GH_TOKEN
|
|
53
|
-
octocode token --source
|
|
54
|
-
octocode token --validate
|
|
109
|
+
octocode token --source # show which token & source is being used
|
|
110
|
+
octocode token --validate # ping the GitHub API to verify it
|
|
111
|
+
octocode token # masked on screen; raw when piped, e.g. export GH_TOKEN=$(octocode token)
|
|
112
|
+
octocode token --reveal # print the full token on screen
|
|
55
113
|
```
|
|
56
114
|
|
|
57
115
|
---
|
|
58
116
|
|
|
59
|
-
##
|
|
117
|
+
## Commands
|
|
118
|
+
|
|
119
|
+
| Command | Aliases | What it does |
|
|
120
|
+
|---------|---------|--------------|
|
|
121
|
+
| `install --ide <ide>` | `i`, `setup` | Configure octocode-mcp for an IDE |
|
|
122
|
+
| `install --ide <ide> --check` | | Pre-flight: verify config path is writable, show what would change |
|
|
123
|
+
| `install --ide <ide> --method npx` | | Installation method (`npx` is the only/default method) |
|
|
124
|
+
| `install --ide <ide> --force` | | Overwrite an existing configuration |
|
|
125
|
+
| `install --ide <ide> --rollback` | | Restore the most recent backup configuration |
|
|
126
|
+
| `install --ide <ide> --rollback --backup-path <file>` | | Restore a specific backup file |
|
|
127
|
+
| `auth` / `login` / `logout` | `a`, `gh` / `l` / | GitHub authentication |
|
|
128
|
+
| `login --force` | | Log out the current session and re-authenticate in one step |
|
|
129
|
+
| `login --git-protocol <ssh\|https>` | | Set the git protocol used for clones |
|
|
130
|
+
| `login --hostname <host>` | | Target a GitHub Enterprise host |
|
|
131
|
+
| `logout --yes` | | Skip the confirmation prompt |
|
|
132
|
+
| `auth refresh` | | Refresh an Octocode-managed token (source-aware) |
|
|
133
|
+
| `token` | `t` | Print the resolved GitHub token |
|
|
134
|
+
| `token --type <auto\|octocode\|gh>` | | Force a specific token source instead of auto-resolution |
|
|
135
|
+
| `token --source` | | Show which source resolved the token |
|
|
136
|
+
| `token --validate` | | Ping the GitHub API to verify the token and show rate-limit |
|
|
137
|
+
| `token --reveal` | | Print the full token on screen (default: masked on a terminal, raw when piped) |
|
|
138
|
+
| `status` | `s` | Full health check: auth + MCP clients + cache |
|
|
139
|
+
| `status --sync` | | Also include per-MCP sync analysis |
|
|
140
|
+
| `sync` | `sy` | Sync MCP configs across all IDEs |
|
|
141
|
+
| `sync --dry-run` | | Show what `sync` would do without writing anything |
|
|
142
|
+
| `sync --status` | | Show sync analysis without syncing |
|
|
143
|
+
| `sync --force` | | Auto-resolve conflicts (use first variant found) |
|
|
144
|
+
| `skills` | `sk` | Install / remove / list / search / read / sync skills |
|
|
145
|
+
| `skills search <query>` | | In a terminal: immediate results from skills.sh. In scripts/agents (non-TTY): emits the research protocol |
|
|
146
|
+
| `skills search --direct` | | Force direct results from skills.sh (auto-enabled in a terminal; use this in scripts/pipes) |
|
|
147
|
+
| `skills search --direct --install` | | Fetch and install top result automatically |
|
|
148
|
+
| `skills read <path \| owner/repo/path \| github-url>` | | Preview a SKILL.md from disk or GitHub (`--full` for untruncated) |
|
|
149
|
+
| `skills install --targets <t1,t2>` | | Install all bundled skills to targets |
|
|
150
|
+
| `skills install --skill <name> --targets <t>` | | Install one specific skill |
|
|
151
|
+
| `skills install --local <path> --targets <t>` | | Install a local skill folder |
|
|
152
|
+
| `skills install --dry-run` | | Preview installs without writing |
|
|
153
|
+
| `skills install --mode <copy\|symlink>` | | Symlink instead of copy (default `copy`) |
|
|
154
|
+
| `skills remove --skill <name> --targets <t>` | | Remove a skill |
|
|
155
|
+
| `skills list` / `skills list --target <t>` | | List installed skills (optionally filter to one target) |
|
|
156
|
+
| `skills sync <from> <to>` | | Copy skills between targets |
|
|
157
|
+
| `mcp list` | | Scan all OS MCP config files |
|
|
158
|
+
| `mcp list --client <id>` | | Search registry for a specific client |
|
|
159
|
+
| `mcp list --installed` | | List only installed MCPs with env-var status |
|
|
160
|
+
| `mcp list --search <text>` / `--category <name>` | | Filter the list |
|
|
161
|
+
| `mcp status --client <id>` | | Show servers in one config + env var status |
|
|
162
|
+
| `mcp install --id <id> --client <id>` | | Install one MCP server |
|
|
163
|
+
| `mcp install --id a,b,c` | | Batch-install MCPs (parallel preflight) |
|
|
164
|
+
| `mcp install --id <id> --config <path>` | | Install into a custom config file |
|
|
165
|
+
| `mcp install --id <id> --env K=V,K2=V2` | | Set env vars for the installed server |
|
|
166
|
+
| `mcp install --id <id> --force` | | Overwrite an existing entry |
|
|
167
|
+
| `mcp remove --id <id> --client <id>` | | Remove an MCP server |
|
|
168
|
+
| `cache status` | | Inspect cache sizes (repos, skills, logs) |
|
|
169
|
+
| `cache clean --all` | | Clean repos + skills + logs |
|
|
170
|
+
| `cache clean --repos` / `--skills` / `--logs` | | Clean specific targets |
|
|
171
|
+
| `cache clean --tools` | | Clean all tool caches (local + lsp + api) |
|
|
172
|
+
| `cache clean --local` / `--lsp` / `--api` | | Clean individual tool caches |
|
|
173
|
+
| `cache clean --all --dry-run` | | Show what would be freed without deleting |
|
|
174
|
+
| `cache clean --all --yes` | | Skip the confirmation prompt |
|
|
175
|
+
| `tools [name...]` | | List tools, show schema(s), or run with `--queries '<json>'` |
|
|
176
|
+
| `instructions` | | Print MCP instructions + every tool schema |
|
|
177
|
+
|
|
178
|
+
Most subcommands accept `--hostname <host>` for GitHub Enterprise.
|
|
60
179
|
|
|
61
|
-
|
|
180
|
+
---
|
|
62
181
|
|
|
63
|
-
|
|
64
|
-
# Discover tools
|
|
65
|
-
octocode tools # list all tools with descriptions
|
|
66
|
-
octocode tools localSearchCode # show schema for a specific tool
|
|
67
|
-
octocode tools localSearchCode githubSearchCode # batch schemas
|
|
182
|
+
## Global Flags
|
|
68
183
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
184
|
+
| Flag | Description |
|
|
185
|
+
|------|-------------|
|
|
186
|
+
| `--json`, `-j` | Raw JSON output (full MCP envelope) for tool runs |
|
|
187
|
+
| `--compact` | Leanest tool output: minified `structuredContent` only (~60% smaller than `--json`) |
|
|
188
|
+
| `--agent` | Print the agent bootstrap: protocol + every tool + input fields (add `--full` for all JSON schemas) |
|
|
189
|
+
| `--no-color` | Disable ANSI colors (also honored via `NO_COLOR=1`) |
|
|
190
|
+
| `--version`, `-v` | Print the CLI version |
|
|
191
|
+
| `--help`, `-h` | Show help for the CLI or a command |
|
|
72
192
|
|
|
73
|
-
|
|
74
|
-
octocode tools localSearchCode --queries '{"path":".","pattern":"TODO"}' --json
|
|
193
|
+
## Environment
|
|
75
194
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
195
|
+
| Variable | Purpose |
|
|
196
|
+
|----------|---------|
|
|
197
|
+
| `OCTOCODE_TOKEN` | GitHub token (checked first) |
|
|
198
|
+
| `GH_TOKEN` | GitHub token (checked second) |
|
|
199
|
+
| `GITHUB_TOKEN` | GitHub token (checked third) |
|
|
200
|
+
| `OCTOCODE_HOME` | Override the data directory (default `~/.octocode`) |
|
|
79
201
|
|
|
80
|
-
|
|
202
|
+
## Exit Codes
|
|
81
203
|
|
|
82
|
-
|
|
204
|
+
| Code | Meaning |
|
|
205
|
+
|------|---------|
|
|
206
|
+
| `0` | Success |
|
|
207
|
+
| `1` | General error |
|
|
208
|
+
| `2` | Invalid input / unsupported flags |
|
|
209
|
+
| `3` | Unknown tool or command |
|
|
210
|
+
| `4` | Authentication failure |
|
|
211
|
+
| `5` | Tool / API execution error |
|
|
212
|
+
| `7` | Rate limited |
|
|
83
213
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
| Command | What it does |
|
|
87
|
-
|---------|--------------|
|
|
88
|
-
| `install --ide <ide>` | Configure octocode-mcp for an IDE |
|
|
89
|
-
| `install --ide <ide> --check` | Pre-flight: verify config path is writable, show what would change |
|
|
90
|
-
| `install --ide <ide> --rollback` | Restore the most recent backup configuration |
|
|
91
|
-
| `install --ide <ide> --rollback --backup-path <file>` | Restore a specific backup file |
|
|
92
|
-
| `auth` / `login` / `logout` | GitHub authentication |
|
|
93
|
-
| `login --force` | Log out the current session and re-authenticate in one step |
|
|
94
|
-
| `login --git-protocol <ssh\|https>` | Set the git protocol used for clones |
|
|
95
|
-
| `logout --yes` | Skip the confirmation prompt |
|
|
96
|
-
| `auth refresh` | Refresh an Octocode-managed token (source-aware) |
|
|
97
|
-
| `token` | Print the resolved GitHub token |
|
|
98
|
-
| `token --type <auto\|octocode\|gh>` | Force a specific token source instead of auto-resolution |
|
|
99
|
-
| `token --source` | Show which source resolved the token |
|
|
100
|
-
| `token --validate` | Ping the GitHub API to verify the token and show rate-limit |
|
|
101
|
-
| `status` | Full health check: auth + MCP clients + cache |
|
|
102
|
-
| `status --sync` | Also includes per-MCP sync analysis |
|
|
103
|
-
| `sync` | Sync MCP configs across all IDEs |
|
|
104
|
-
| `sync plan` / `sync --dry-run` | Show what `sync` would do without writing anything |
|
|
105
|
-
| `sync --status` | Show sync analysis without syncing |
|
|
106
|
-
| `sync --force` | Auto-resolve conflicts (use first variant found) |
|
|
107
|
-
| `skills` | Install / remove / list / search / read bundled skills |
|
|
108
|
-
| `skills search --direct` | Search skills.sh directly (human-readable) |
|
|
109
|
-
| `skills search --direct --install` | Fetch and install top result automatically |
|
|
110
|
-
| `skills read <path\|github:owner/repo/name>` | Preview a SKILL.md from disk or GitHub |
|
|
111
|
-
| `skills install --targets <t1,t2>` | Install all bundled skills to targets |
|
|
112
|
-
| `skills install --skill <name> --targets <t>` | Install one specific skill |
|
|
113
|
-
| `skills install --local <path> --targets <t>` | Install a local skill folder |
|
|
114
|
-
| `skills install --dry-run` | Preview installs without writing |
|
|
115
|
-
| `skills install --mode symlink` | Symlink instead of copy |
|
|
116
|
-
| `skills remove --skill <name> --targets <t>` | Remove a skill |
|
|
117
|
-
| `skills list` | List all installed skills across all targets |
|
|
118
|
-
| `skills list --target <t>` | Filter to one target |
|
|
119
|
-
| `skills sync <from> <to>` | Copy skills between targets |
|
|
120
|
-
| `mcp list` | Scan all OS MCP config files |
|
|
121
|
-
| `mcp list --client <id>` | Search registry for a specific client |
|
|
122
|
-
| `mcp list --installed` | List only installed MCPs with env-var status |
|
|
123
|
-
| `mcp list --search <text>` | Filter by id / name / description / tags |
|
|
124
|
-
| `mcp list --category <name>` | Filter by category |
|
|
125
|
-
| `mcp status --client <id>` | Show servers in one config + env var status |
|
|
126
|
-
| `mcp install --id <id> --client <id>` | Install one MCP server |
|
|
127
|
-
| `mcp install --id a,b,c` | Batch-install MCPs (parallel preflight) |
|
|
128
|
-
| `mcp install --id <id> --config <path>` | Install into a custom config file |
|
|
129
|
-
| `mcp install --id <id> --env K=V,K2=V2` | Set env vars for the installed server |
|
|
130
|
-
| `mcp install --id <id> --force` | Overwrite existing entry |
|
|
131
|
-
| `mcp remove --id <id> --client <id>` | Remove an MCP server |
|
|
132
|
-
| `cache status` | Inspect cache sizes (repos, skills, logs) |
|
|
133
|
-
| `cache clean --all` | Clean repos + skills + logs |
|
|
134
|
-
| `cache clean --repos` / `--skills` / `--logs` | Clean specific targets |
|
|
135
|
-
| `cache clean --tools` | Clean all tool caches (local + lsp + api) |
|
|
136
|
-
| `cache clean --local` / `--lsp` / `--api` | Clean individual tool caches |
|
|
137
|
-
| `cache clean --all --dry-run` | Show what would be freed without deleting |
|
|
138
|
-
| `cache clean --all --yes` | Skip confirmation prompt |
|
|
214
|
+
Typed codes `2`–`7` apply to the tool surface (`tools`, `--tool`) and command dispatch, so agents can branch on the failure mode without parsing output. Management commands (`install`, `auth`, `sync`, …) use `0`/`1`.
|
|
139
215
|
|
|
140
216
|
---
|
|
141
217
|
|
|
@@ -148,22 +224,23 @@ Shared fields (`id`, `researchGoal`, `reasoning`, `mainResearchGoal`) are auto-f
|
|
|
148
224
|
## Troubleshooting
|
|
149
225
|
|
|
150
226
|
```bash
|
|
151
|
-
octocode status --sync
|
|
152
|
-
octocode token --validate
|
|
153
|
-
octocode token --source
|
|
154
|
-
octocode install --ide cursor --check
|
|
155
|
-
octocode sync
|
|
156
|
-
octocode cache clean --all --dry-run
|
|
227
|
+
octocode status --sync # Full health check including sync analysis
|
|
228
|
+
octocode token --validate # Verify your GitHub token against the API
|
|
229
|
+
octocode token --source # Debug token resolution chain
|
|
230
|
+
octocode install --ide cursor --check # Pre-flight before installing
|
|
231
|
+
octocode sync --dry-run # Preview sync changes before applying
|
|
232
|
+
octocode cache clean --all --dry-run # See what cache clean would free
|
|
157
233
|
```
|
|
158
234
|
|
|
159
235
|
---
|
|
160
236
|
|
|
161
237
|
## Docs
|
|
162
238
|
|
|
163
|
-
- [CLI Reference](https://github.com/bgauryy/octocode-mcp/blob/main/docs/dev/reference/CLI_REFERENCE.md)
|
|
164
|
-
- [Skills Guide](https://github.com/bgauryy/octocode-mcp/blob/main/docs/dev/SKILLS_GUIDE.md)
|
|
239
|
+
- [CLI Reference](https://github.com/bgauryy/octocode-mcp/blob/main/docs/dev/reference/CLI_REFERENCE.md): full command and flag reference
|
|
240
|
+
- [Skills Guide](https://github.com/bgauryy/octocode-mcp/blob/main/docs/dev/SKILLS_GUIDE.md): bundled skills installation
|
|
165
241
|
- [Configuration Reference](https://github.com/bgauryy/octocode-mcp/blob/main/docs/configuration/CONFIGURATION_REFERENCE.md)
|
|
166
242
|
- [Troubleshooting](https://github.com/bgauryy/octocode-mcp/blob/main/docs/configuration/TROUBLESHOOTING.md)
|
|
243
|
+
|
|
167
244
|
---
|
|
168
245
|
|
|
169
246
|
## Privacy & Telemetry
|