{"at":"2026-11-23T06:01:25.304Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T06:01:25.589Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"method not found: server/discover"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T06:01:25.639Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T06:01:25.932Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{}},"protocolVersion":"2024-11-05","serverInfo":{"name":"cairn","version":"0.3.4"}}}}
{"at":"2026-11-23T06:01:25.932Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T06:01:25.932Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T06:01:25.932Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Token-saving retrieval: ONE query returns a compact context pack of only the memories/files that matter, fitted to a token budget. Call this INSTEAD of re-reading files or scrolling history — it replaces the re-reading tax with a targeted answer. Top hits come back as capped previews (~1800 chars), the rest as gists — cairn_read returns any node's complete text (raise max_chars for very long nodes).","inputSchema":{"properties":{"account":{"description":"optional: only return memories from this account/galaxy (case-insensitive)","type":"string"},"budget_tokens":{"default":1500,"description":"max tokens in the pack","type":"integer"},"query":{"description":"what you need to know","type":"string"}},"required":["query"],"type":"object"},"name":"cairn_fetch"},{"description":"The creative complement to cairn_fetch. Walks the memory graph outward from the query's best hits, preferring WEAK ties that cross topic boundaries — surfaces adjacent ideas and unseen connections (a past project, an old conversation, an idea from a different domain) that similarity search will never return. Use when brainstorming, stuck, or asked for fresh angles. Returns gists — cairn_read pulls any hit in full (raise max_chars for very long nodes).","inputSchema":{"properties":{"hops":{"default":3,"description":"how far to wander (1-5)","type":"integer"},"k":{"default":10,"type":"integer"},"query":{"description":"what you're working on or thinking about","type":"string"}},"required":["query"],"type":"object"},"name":"cairn_wander"},{"description":"Ranked hybrid search across the whole vault. Returns ids + gists + scores (cheap) — an index, not the text. Pass the ids that matter to cairn_read for their full text — raise max_chars for very long nodes (cairn_fetch for a budgeted context pack).","inputSchema":{"properties":{"k":{"default":10,"type":"integer"},"query":{"type":"string"}},"required":["query"],"type":"object"},"name":"cairn_search"},{"description":"Write a memory to the vault — ambient capture. Use for decisions, insights, ideas, open items, warnings, procedures discovered while working. The vault remembers across sessions and models. Write the complete salient fact, decision, warning, or open item WITHOUT truncating it — but do not paste transcripts (turns are captured separately). For a large artifact, save the file and note its path and purpose.","inputSchema":{"properties":{"kind":{"default":"insight","enum":["decision","insight","idea","open_item","warning","hypothesis","procedure","question","resolved","conversation_turn"],"type":"string"},"tags":{"items":{"type":"string"},"type":"array"},"text":{"type":"string"}},"required":["text"],"type":"object"},"name":"cairn_note"},{"description":"Session-start context: the most recent compiled PROTOCOL digest plus open items. Call once at the beginning of a session to inherit prior context.","inputSchema":{"properties":{},"type":"object"},"name":"cairn_orient"},{"description":"The working set: recent decisions, open items, and warnings across the vault — what's live right now. Returns gists — pass ids to cairn_read for full text (raise max_chars for very long nodes).","inputSchema":{"properties":{"limit":{"default":12,"type":"integer"}},"type":"object"},"name":"cairn_recent"},{"description":"Read specific nodes IN FULL by id — the follow-up to the gists that recent/search/fetch return; this is the verbatim layer (long turns carry their complete text here). Accepts full ids or unambiguous prefixes, up to 8 per call; max_chars dials the per-node body budget. Unlike fetch/search this needs no embeddings, so it reads nodes written moments ago.","inputSchema":{"properties":{"ids":{"description":"node ids (or prefixes) to read","items":{"type":"string"},"type":"array"},"max_chars":{"description":"per-node canonical-body budget in chars (default 24000; total body across ids caps at max(60000, this)) — raise it to pull a very long turn whole, lower it to skim","type":"integer"}},"required":["ids"],"type":"object"},"name":"cairn_read"},{"description":"The LIVE tail of the vault — newest nodes first, ALL kinds including conversation turns, embedded or not. This is how you see what just happened (fetch/search can't see un-embedded nodes until the nightly sleep). Filter by kind, session prefix, or a contains substring; follow up with cairn_read for full text (raise max_chars for very long nodes).","inputSchema":{"properties":{"contains":{"description":"case-insensitive substring to search live text","type":"string"},"kind":{"description":"only this kind (e.g. conversation_turn, decision)","type":"string"},"limit":{"default":20,"description":"rows to return (max 60)","type":"integer"},"session":{"description":"session id prefix (e.g. codex-)","type":"string"},"unembedded_only":{"default":false,"description":"only nodes the nightly embed hasn't reached","type":"boolean"}},"type":"object"},"name":"cairn_logs"}]}}}
