38 lines
976 B
Python
38 lines
976 B
Python
import json
|
|
import os
|
|
|
|
eager_tools = [
|
|
"log_code_change",
|
|
"log_error_fix",
|
|
"log_tech_debt",
|
|
"omni_search",
|
|
"create_entities",
|
|
"learn_preference",
|
|
"list_active_tasks",
|
|
"add_task",
|
|
"set_acceptance_criteria",
|
|
"verify_acceptance_criteria",
|
|
"update_task_status",
|
|
"list_pinned_files",
|
|
"pin_file",
|
|
"unpin_file",
|
|
"get_project_health",
|
|
"list_tech_debt",
|
|
"resolve_tech_debt"
|
|
]
|
|
|
|
# Update Windows config
|
|
win_config_path = r'C:\Users\reazul.ashraf\.gemini\config\mcp_config.json'
|
|
with open(win_config_path, 'r', encoding='utf-8') as f:
|
|
win_data = json.load(f)
|
|
|
|
win_data['mcpServers']['mcp-memory']['eagerTools'] = eager_tools
|
|
if 'args' in win_data['mcpServers']['mcp-memory']:
|
|
# Ensure args are empty as we removed --target earlier
|
|
win_data['mcpServers']['mcp-memory']['args'] = []
|
|
|
|
with open(win_config_path, 'w', encoding='utf-8') as f:
|
|
json.dump(win_data, f, indent=2)
|
|
|
|
print("Updated Windows config")
|