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

Function mcp_tool_annotations

src/mcp/mcp.c:918–926  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

916};
917
918static const tool_annotation_def_t *mcp_tool_annotations(const char *name) {
919 size_t count = sizeof(TOOL_ANNOTATIONS) / sizeof(TOOL_ANNOTATIONS[0]);
920 for (size_t i = 0; i < count; i++) {
921 if (strcmp(TOOL_ANNOTATIONS[i].name, name) == 0) {
922 return &TOOL_ANNOTATIONS[i];
923 }
924 }
925 return NULL;
926}
927
928static void mcp_add_json_schema(yyjson_mut_doc *doc, yyjson_mut_val *obj, const char *key,
929 const char *schema_json) {

Callers 1

mcp_add_tool_defFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected