fix(retrieval): order Claude MCP arguments

This commit is contained in:
Julian lechner committed 2026-09-17 09:21:45 +02:00
1 parent b67eb844bc
commit 79d981e78b
2 files changed
+20 -2

No files matched your search

+3 -2
View File
@@ -111,10 +111,11 @@ def sync(root, home, clients, enabled, dry_run, update):
for client in clients:
command_args = [client, 'mcp', 'add']
if client == 'claude':
command_args += ['--scope', 'user', '-e', f'HF_HOME={target / "model-cache"}']
command_args += [NAME, '--scope', 'user', '-e', f'HF_HOME={target / "model-cache"}']
else:
command_args += ['--env', f'HF_HOME={target / "model-cache"}']
command_args += [NAME] + arguments
command_args += [NAME]
command_args += arguments
if update and client in existing_clients:
command(client, [client, 'mcp', 'remove', NAME] + (['--scope', 'user'] if client == 'claude' else []), home, False)
command(client, command_args, home, False)