| 1154 | } |
| 1155 | |
| 1156 | static const char *agent_json_section(cbm_agent_client_id_t id) { |
| 1157 | if (id == CBM_AGENT_CLIENT_AMP) { |
| 1158 | return NULL; |
| 1159 | } |
| 1160 | if (id == CBM_AGENT_CLIENT_VISUAL_STUDIO) { |
| 1161 | return "servers"; |
| 1162 | } |
| 1163 | if (id == CBM_AGENT_CLIENT_SOURCEGRAPH_CODY) { |
| 1164 | return "cody.mcpServers"; |
| 1165 | } |
| 1166 | if (id == CBM_AGENT_CLIENT_POCHI) { |
| 1167 | return "mcp"; |
| 1168 | } |
| 1169 | return "mcpServers"; |
| 1170 | } |
| 1171 | |
| 1172 | static int agent_json_edit(cbm_agent_client_id_t id, const char *config_path, |
| 1173 | const char *binary_path, bool remove) { |