Shared preamble: the ownership markers and a note telling whoever opens the * file that edits inside the block are overwritten. */
| 94 | /* Shared preamble: the ownership markers and a note telling whoever opens the |
| 95 | * file that edits inside the block are overwritten. */ |
| 96 | static void emit_header(adapter_sb_t *sb, const char *client) { |
| 97 | /* No markers here: cbm_text_upsert_managed_block adds them and REJECTS |
| 98 | * content that already carries them, so the body must stay marker-free. */ |
| 99 | sb_append(sb, "// Generated by codebase-memory-mcp for "); |
| 100 | sb_append(sb, client); |
| 101 | sb_append(sb, |
| 102 | ".\n" |
| 103 | "// Regenerated on install/update from the MCP tool registry, so it cannot\n" |
| 104 | "// drift from the tools the server actually serves. Edits inside this block\n" |
| 105 | "// are overwritten; edit outside it, or remove the markers to take ownership.\n"); |
| 106 | } |
| 107 | |
| 108 | char *cbm_client_adapter_pi(const char *binary_path) { |
| 109 | if (!binary_path || !binary_path[0]) { |
no test coverage detected