MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / generic_md

Function generic_md

src/mcp/tools/render.rs:373–382  ·  view source on GitHub ↗
(value: &Value)

Source from the content-addressed store, hash-verified

371const GENERIC_MAX_DEPTH: u8 = 4;
372
373pub(super) fn generic_md(value: &Value) -> String {
374 let mut md = Md::new();
375 render_value(&mut md, value, 2);
376 let out = md.render();
377 if out.trim().is_empty() {
378 "_No results._\n".to_string()
379 } else {
380 out
381 }
382}
383
384fn is_id_key(k: &str) -> bool {
385 matches!(k, "id" | "node_id" | "qualified_name" | "signature") || k.ends_with("_id")

Calls 3

render_valueFunction · 0.85
renderMethod · 0.45
is_emptyMethod · 0.45