Skip to content

Commit cf321ea

Browse files
catlog22claude
andcommitted
fix: update CodexLens MCP template with AST support defaults
- Add [ast] extra to uvx install args (codexlens-search[mcp,ast]) - Add CODEXLENS_AST_CHUNKING to env defaults - Auto-inject AST_CHUNKING in buildMcpServerConfig Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7c1853c commit cf321ea

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ccw/src/core/routes/codexlens-routes.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ const CODEXLENS_ENV_DEFAULTS: Record<string, string> = {
9999
CODEXLENS_RERANKER_BATCH_SIZE: '32',
100100
CODEXLENS_INDEX_WORKERS: '2',
101101
CODEXLENS_CODE_AWARE_CHUNKING: 'true',
102+
CODEXLENS_AST_CHUNKING: 'true',
102103
CODEXLENS_MAX_FILE_SIZE: '1000000',
103104
CODEXLENS_HNSW_EF: '150',
104105
CODEXLENS_HNSW_M: '32',
@@ -141,9 +142,12 @@ function buildMcpServerConfig(savedEnv: Record<string, string>): Record<string,
141142
filteredEnv.CODEXLENS_EMBED_DIM ??= CODEXLENS_ENV_DEFAULTS.CODEXLENS_EMBED_DIM;
142143
}
143144

145+
// Always enable AST chunking since [ast] extra is included
146+
filteredEnv.CODEXLENS_AST_CHUNKING ??= 'true';
147+
144148
return {
145149
command: 'uvx',
146-
args: ['--from', 'codexlens-search[mcp]', 'codexlens-mcp'],
150+
args: ['--from', 'codexlens-search[mcp,ast]', 'codexlens-mcp'],
147151
...(Object.keys(filteredEnv).length > 0 ? { env: filteredEnv } : {}),
148152
};
149153
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "claude-code-workflow",
3-
"version": "7.2.8",
3+
"version": "7.2.9",
44
"description": "JSON-driven multi-agent development framework with intelligent CLI orchestration (Gemini/Qwen/Codex), context-first architecture, and automated workflow execution",
55
"type": "module",
66
"main": "ccw/dist/index.js",

0 commit comments

Comments
 (0)