opencode-codebase-index 0.13.0 → 0.13.2
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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -2
- package/.codex-plugin/plugin.json +1 -1
- package/README.md +17 -7
- package/dist/cli.cjs +6 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +7 -3
- package/dist/cli.js.map +1 -1
- package/native/codebase-index-native.darwin-arm64.node +0 -0
- package/native/codebase-index-native.darwin-x64.node +0 -0
- package/native/codebase-index-native.win32-x64-msvc.node +0 -0
- package/package.json +3 -1
- package/scripts/link-local-mcp-bin.mjs +25 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codebase-index",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.2",
|
|
4
4
|
"description": "Semantic code search and codebase graph tools for Claude Code",
|
|
5
5
|
"displayName": "Codebase Index",
|
|
6
6
|
"author": {
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
"mcp"
|
|
20
20
|
],
|
|
21
21
|
"skills": "./skills/",
|
|
22
|
-
"hooks": "./hooks/hooks.json",
|
|
23
22
|
"mcpServers": {
|
|
24
23
|
"codebase-index": {
|
|
25
24
|
"command": "npx",
|
package/README.md
CHANGED
|
@@ -99,6 +99,15 @@ The plugin includes:
|
|
|
99
99
|
- `.mcp.json` running the published `opencode-codebase-index` CLI via `npx … --host codex`, so a git marketplace install works without a local build
|
|
100
100
|
- `.agents/plugins/marketplace.json` so this repo can act as a Codex marketplace source
|
|
101
101
|
|
|
102
|
+
For local plugin development from this checkout, build and link the local MCP bin once:
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
npm run build:ts
|
|
106
|
+
npm run dev:link-mcp
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
After that, the normal `.mcp.json` command also works when Codex starts the plugin from this repository.
|
|
110
|
+
|
|
102
111
|
## 🧩 Claude Code Plugin
|
|
103
112
|
Install once for Claude Code sessions and get skill guidance plus MCP tools in one manifest.
|
|
104
113
|
|
|
@@ -115,7 +124,6 @@ Install once for Claude Code sessions and get skill guidance plus MCP tools in o
|
|
|
115
124
|
|
|
116
125
|
The plugin includes:
|
|
117
126
|
- `skills/` guidance for local workflows
|
|
118
|
-
- `hooks/hooks.json` lightweight session-start guidance
|
|
119
127
|
- inline `mcpServers` (in `.claude-plugin/plugin.json`) running the published `opencode-codebase-index` CLI via `npx … --host claude`, so a git marketplace install works without a local build
|
|
120
128
|
- `.claude-plugin/marketplace.json` so this repo can act as a Claude Code marketplace source
|
|
121
129
|
|
|
@@ -156,7 +164,7 @@ Use the same semantic search from any MCP-compatible client. Index once, search
|
|
|
156
164
|
"mcpServers": {
|
|
157
165
|
"codebase-index": {
|
|
158
166
|
"command": "npx",
|
|
159
|
-
"args": ["opencode-codebase-index-mcp", "--project", "/path/to/your/project"]
|
|
167
|
+
"args": ["-y", "--package", "opencode-codebase-index", "opencode-codebase-index-mcp", "--project", "/path/to/your/project"]
|
|
160
168
|
}
|
|
161
169
|
}
|
|
162
170
|
}
|
|
@@ -168,7 +176,7 @@ Use the same semantic search from any MCP-compatible client. Index once, search
|
|
|
168
176
|
"mcpServers": {
|
|
169
177
|
"codebase-index": {
|
|
170
178
|
"command": "npx",
|
|
171
|
-
"args": ["opencode-codebase-index-mcp", "--project", "/path/to/your/project"]
|
|
179
|
+
"args": ["-y", "--package", "opencode-codebase-index", "opencode-codebase-index-mcp", "--project", "/path/to/your/project"]
|
|
172
180
|
}
|
|
173
181
|
}
|
|
174
182
|
}
|
|
@@ -176,14 +184,16 @@ Use the same semantic search from any MCP-compatible client. Index once, search
|
|
|
176
184
|
|
|
177
185
|
3. **CLI options**
|
|
178
186
|
```bash
|
|
179
|
-
npx opencode-codebase-index-mcp --project /path/to/repo
|
|
180
|
-
npx opencode-codebase-index-mcp --config /path/to/config
|
|
181
|
-
npx opencode-codebase-index-mcp
|
|
187
|
+
npx -y --package opencode-codebase-index opencode-codebase-index-mcp --project /path/to/repo
|
|
188
|
+
npx -y --package opencode-codebase-index opencode-codebase-index-mcp --config /path/to/config
|
|
189
|
+
npx -y --package opencode-codebase-index opencode-codebase-index-mcp
|
|
182
190
|
```
|
|
183
191
|
|
|
184
192
|
The MCP server exposes all 12 tools (`codebase_search`, `codebase_peek`, `find_similar`, `implementation_lookup`, `call_graph`, `call_graph_path`, `pr_impact`, `index_codebase`, `index_status`, `index_health_check`, `index_metrics`, `index_logs`) and 5 prompts (`search`, `find`, `definition`, `index`, `status`).
|
|
185
193
|
|
|
186
|
-
The MCP dependencies (`@modelcontextprotocol/sdk`, `zod`)
|
|
194
|
+
The MCP dependencies (`@modelcontextprotocol/sdk`, `zod`) ship with the package so published `npx --package opencode-codebase-index` launches work in clean MCP clients.
|
|
195
|
+
|
|
196
|
+
If you are testing the MCP command from inside this repository checkout and see `opencode-codebase-index-mcp: command not found`, run `npm run build:ts && npm run dev:link-mcp`. That adds the local bin shim expected by `npx` without changing the published MCP config.
|
|
187
197
|
|
|
188
198
|
## 🔍 See It In Action
|
|
189
199
|
|
package/dist/cli.cjs
CHANGED
|
@@ -659,6 +659,7 @@ var require_ignore = __commonJS({
|
|
|
659
659
|
// src/cli.ts
|
|
660
660
|
var cli_exports = {};
|
|
661
661
|
__export(cli_exports, {
|
|
662
|
+
isCliEntrypoint: () => isCliEntrypoint,
|
|
662
663
|
loadCliRawConfig: () => loadCliRawConfig,
|
|
663
664
|
parseArgs: () => parseArgs
|
|
664
665
|
});
|
|
@@ -13768,6 +13769,9 @@ function parseArgs(argv) {
|
|
|
13768
13769
|
function loadCliRawConfig(args) {
|
|
13769
13770
|
return args.config ? loadConfigFile(args.config) : loadMergedConfig(args.project, args.host);
|
|
13770
13771
|
}
|
|
13772
|
+
function isCliEntrypoint(moduleUrl, argvPath) {
|
|
13773
|
+
return argvPath !== void 0 && (0, import_fs15.realpathSync)((0, import_url2.fileURLToPath)(moduleUrl)) === (0, import_fs15.realpathSync)(argvPath);
|
|
13774
|
+
}
|
|
13771
13775
|
function parseVisualizeArgs(argv, cwd) {
|
|
13772
13776
|
let project = cwd;
|
|
13773
13777
|
let directory;
|
|
@@ -13879,11 +13883,12 @@ function handleMainError(error) {
|
|
|
13879
13883
|
console.error("Fatal: failed to start MCP server");
|
|
13880
13884
|
process.exit(1);
|
|
13881
13885
|
}
|
|
13882
|
-
if (
|
|
13886
|
+
if (isCliEntrypoint(import_meta3.url, process.argv[1])) {
|
|
13883
13887
|
main().catch(handleMainError);
|
|
13884
13888
|
}
|
|
13885
13889
|
// Annotate the CommonJS export names for ESM import in node:
|
|
13886
13890
|
0 && (module.exports = {
|
|
13891
|
+
isCliEntrypoint,
|
|
13887
13892
|
loadCliRawConfig,
|
|
13888
13893
|
parseArgs
|
|
13889
13894
|
});
|