Add stderr option to Chroma client initialization for better error handling
- Updated the StdioClientTransport configuration in search-server.ts to include 'stderr: ignore' for the Chroma client. - Modified the ChromaSync class in ChromaSync.ts to also set 'stderr: ignore' when initializing the Chroma client.
This commit is contained in:
@@ -1756,7 +1756,8 @@ async function main() {
|
||||
console.error('[search-server] Initializing Chroma client...');
|
||||
const chromaTransport = new StdioClientTransport({
|
||||
command: 'uvx',
|
||||
args: ['chroma-mcp', '--client-type', 'persistent', '--data-dir', VECTOR_DB_DIR]
|
||||
args: ['chroma-mcp', '--client-type', 'persistent', '--data-dir', VECTOR_DB_DIR],
|
||||
stderr: 'ignore'
|
||||
});
|
||||
|
||||
const client = new Client({
|
||||
|
||||
@@ -98,7 +98,8 @@ export class ChromaSync {
|
||||
'chroma-mcp',
|
||||
'--client-type', 'persistent',
|
||||
'--data-dir', this.VECTOR_DB_DIR
|
||||
]
|
||||
],
|
||||
stderr: 'ignore'
|
||||
});
|
||||
|
||||
this.client = new Client({
|
||||
|
||||
Reference in New Issue
Block a user