Fix Python 3.14 incompatibility: Pin uvx to Python 3.13 for chroma-mcp (#171)

* Initial plan

* Initial exploration - no changes yet

Co-authored-by: thedotmack <683968+thedotmack@users.noreply.github.com>

* Add CLAUDE_MEM_PYTHON_VERSION env var defaulting to 3.13 for uvx/chroma-mcp to avoid onnxruntime Python 3.14 compatibility issues

Co-authored-by: thedotmack <683968+thedotmack@users.noreply.github.com>

* Fix code review comment: update placeholder issue URL to #170

Co-authored-by: thedotmack <683968+thedotmack@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: thedotmack <683968+thedotmack@users.noreply.github.com>
This commit is contained in:
Copilot
2025-12-06 17:29:20 -05:00
committed by GitHub
parent 4eeb8391c6
commit 225424a19e
7 changed files with 13 additions and 5 deletions
+3 -1
View File
@@ -2687,9 +2687,11 @@ async function main() {
setTimeout(async () => {
try {
console.error('[search-server] Initializing Chroma client...');
// Use Python 3.13 by default to avoid onnxruntime compatibility issues with Python 3.14+
const pythonVersion = process.env.CLAUDE_MEM_PYTHON_VERSION || '3.13';
const chromaTransport = new StdioClientTransport({
command: 'uvx',
args: ['chroma-mcp', '--client-type', 'persistent', '--data-dir', VECTOR_DB_DIR],
args: ['--python', pythonVersion, 'chroma-mcp', '--client-type', 'persistent', '--data-dir', VECTOR_DB_DIR],
stderr: 'ignore'
});
+4
View File
@@ -94,9 +94,13 @@ export class ChromaSync {
logger.info('CHROMA_SYNC', 'Connecting to Chroma MCP server...', { project: this.project });
try {
// Use Python 3.13 by default to avoid onnxruntime compatibility issues with Python 3.14+
// See: https://github.com/thedotmack/claude-mem/issues/170 (Python 3.14 incompatibility)
const pythonVersion = process.env.CLAUDE_MEM_PYTHON_VERSION || '3.13';
const transport = new StdioClientTransport({
command: 'uvx',
args: [
'--python', pythonVersion,
'chroma-mcp',
'--client-type', 'persistent',
'--data-dir', this.VECTOR_DB_DIR