MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / install_windsurf_config

Function install_windsurf_config

src/cli/cli.c:7410–7430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7408}
7409
7410static void install_windsurf_config(const char *binary_path, const char *config_path,
7411 const char *rules_path, bool dry_run) {
7412 if (g_install_plan) {
7413 plan_record("Windsurf", "mcp_config", config_path);
7414 plan_record("Windsurf", "instructions", rules_path);
7415 return;
7416 }
7417 printf("Windsurf:\n");
7418 if (!dry_run) {
7419 if (!prepare_config_parent(config_path) ||
7420 cbm_install_editor_mcp(binary_path, config_path) != CLI_OK) {
7421 record_agent_config_error(false, "Windsurf", "mcp_install", config_path);
7422 }
7423 if (!prepare_config_parent(rules_path) ||
7424 cbm_upsert_windsurf_rules(rules_path, agent_instructions_content) != CLI_OK) {
7425 record_agent_config_error(false, "Windsurf", "instructions_install", rules_path);
7426 }
7427 }
7428 printf(" mcp: %s\n", config_path);
7429 printf(" instructions: %s\n", rules_path);
7430}
7431
7432static bool remove_cline_context_hooks(const char *cline_root, const char *binary_path,
7433 bool dry_run, bool uninstalling);

Callers 1

Calls 5

plan_recordFunction · 0.85
prepare_config_parentFunction · 0.85
cbm_install_editor_mcpFunction · 0.85

Tested by

no test coverage detected