mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-21 19:08:17 +08:00
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>
This commit is contained in:
@@ -99,6 +99,7 @@ const CODEXLENS_ENV_DEFAULTS: Record<string, string> = {
|
|||||||
CODEXLENS_RERANKER_BATCH_SIZE: '32',
|
CODEXLENS_RERANKER_BATCH_SIZE: '32',
|
||||||
CODEXLENS_INDEX_WORKERS: '2',
|
CODEXLENS_INDEX_WORKERS: '2',
|
||||||
CODEXLENS_CODE_AWARE_CHUNKING: 'true',
|
CODEXLENS_CODE_AWARE_CHUNKING: 'true',
|
||||||
|
CODEXLENS_AST_CHUNKING: 'true',
|
||||||
CODEXLENS_MAX_FILE_SIZE: '1000000',
|
CODEXLENS_MAX_FILE_SIZE: '1000000',
|
||||||
CODEXLENS_HNSW_EF: '150',
|
CODEXLENS_HNSW_EF: '150',
|
||||||
CODEXLENS_HNSW_M: '32',
|
CODEXLENS_HNSW_M: '32',
|
||||||
@@ -141,9 +142,12 @@ function buildMcpServerConfig(savedEnv: Record<string, string>): Record<string,
|
|||||||
filteredEnv.CODEXLENS_EMBED_DIM ??= CODEXLENS_ENV_DEFAULTS.CODEXLENS_EMBED_DIM;
|
filteredEnv.CODEXLENS_EMBED_DIM ??= CODEXLENS_ENV_DEFAULTS.CODEXLENS_EMBED_DIM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Always enable AST chunking since [ast] extra is included
|
||||||
|
filteredEnv.CODEXLENS_AST_CHUNKING ??= 'true';
|
||||||
|
|
||||||
return {
|
return {
|
||||||
command: 'uvx',
|
command: 'uvx',
|
||||||
args: ['--from', 'codexlens-search[mcp]', 'codexlens-mcp'],
|
args: ['--from', 'codexlens-search[mcp,ast]', 'codexlens-mcp'],
|
||||||
...(Object.keys(filteredEnv).length > 0 ? { env: filteredEnv } : {}),
|
...(Object.keys(filteredEnv).length > 0 ? { env: filteredEnv } : {}),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "claude-code-workflow",
|
"name": "claude-code-workflow",
|
||||||
"version": "7.2.8",
|
"version": "7.2.9",
|
||||||
"description": "JSON-driven multi-agent development framework with intelligent CLI orchestration (Gemini/Qwen/Codex), context-first architecture, and automated workflow execution",
|
"description": "JSON-driven multi-agent development framework with intelligent CLI orchestration (Gemini/Qwen/Codex), context-first architecture, and automated workflow execution",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "ccw/dist/index.js",
|
"main": "ccw/dist/index.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user