| 1138 | } |
| 1139 | |
| 1140 | static const char *agent_json_section(cbm_agent_client_id_t id) { |
| 1141 | if (id == CBM_AGENT_CLIENT_AMP) { |
| 1142 | return NULL; |
| 1143 | } |
| 1144 | if (id == CBM_AGENT_CLIENT_VISUAL_STUDIO) { |
| 1145 | return "servers"; |
| 1146 | } |
| 1147 | if (id == CBM_AGENT_CLIENT_SOURCEGRAPH_CODY) { |
| 1148 | return "cody.mcpServers"; |
| 1149 | } |
| 1150 | if (id == CBM_AGENT_CLIENT_POCHI) { |
| 1151 | return "mcp"; |
| 1152 | } |
| 1153 | return "mcpServers"; |
| 1154 | } |
| 1155 | |
| 1156 | static int agent_json_edit(cbm_agent_client_id_t id, const char *config_path, |
| 1157 | const char *binary_path, bool remove) { |