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

Function emit_header

src/cli/client_adapter.c:96–106  ·  view source on GitHub ↗

Shared preamble: the ownership markers and a note telling whoever opens the * file that edits inside the block are overwritten. */

Source from the content-addressed store, hash-verified

94/* Shared preamble: the ownership markers and a note telling whoever opens the
95 * file that edits inside the block are overwritten. */
96static 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
108char *cbm_client_adapter_pi(const char *binary_path) {
109 if (!binary_path || !binary_path[0]) {

Callers 2

cbm_client_adapter_piFunction · 0.70

Calls 1

sb_appendFunction · 0.85

Tested by

no test coverage detected