{"at":"2026-11-23T01:32:00.059Z","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-23T01:32:00.575Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"unknown method 'server/discover'"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T01:32:00.676Z","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-23T01:32:01.205Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"resources":{},"tools":{}},"protocolVersion":"2025-11-25","serverInfo":{"name":"dekko","version":"1.9.0"}}}}
{"at":"2026-11-23T01:32:01.205Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T01:32:01.205Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T01:32:01.206Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Rank symbols by free-text relevance (BM25 over names, signatures and doc lines, not substring matching) — for when you know what the code should do but not its name. Zero hits is not an error: try broader terms. Once you have an exact name, use query_symbol/get_callers instead.","inputSchema":{"properties":{"budget":{"description":"Token budget for the output (default 800; 0 = no cap)","type":"integer"},"include_tests":{"description":"Include test-path symbols (default: false)","type":"boolean"},"kind":{"description":"Comma-separated symbol kinds to restrict to (function, method, class, ...)","type":"string"},"limit":{"description":"Max hits (default 15)","type":"integer"},"query":{"description":"Free-text description of the code you're looking for","type":"string"},"root":{"description":"Repo root containing map.json (default: server cwd)","type":"string"},"scorer":{"description":"Relevance scorer: 'lexical' (default, BM25, always available), 'embedding' (hashing-trick embedding), or 'both' (fuses lexical + embedding rankings via reciprocal rank fusion) — 'embedding' and 'both' only work if the server was installed with the dekko[search] extra","enum":["lexical","embedding","both"],"type":"string"}},"required":["query"],"type":"object"},"name":"search_code"},{"description":"Signature, kind, location, doc, fan-in/out, and notes for one symbol — the fast way to learn what a symbol is without reading its file.","inputSchema":{"properties":{"root":{"description":"Repo root containing map.json (default: server cwd)","type":"string"},"symbol":{"description":"Symbol: name, Class.method, file.py:name, or a symbol id a reply printed (Foo.java::Foo.run#2). If the reply says the target is ambiguous, append ':LINE' from a printed candidate row (file.py:Class.method:42) to pick one. 'name', 'target' and 'type' are also accepted as aliases for this argument; two of them with different values is an error.","type":"string"}},"required":["symbol"],"type":"object"},"name":"query_symbol"},{"description":"Every symbol (and module-level site) that calls a symbol — exact call edges, unlike grep, which can't tell a call from a same-named string. Use for impact analysis before a change.","inputSchema":{"properties":{"budget":{"description":"Approximate token budget (default 800; 0 = no cap); lowest-relevance rows are dropped to fit and a cost footer is appended","type":"integer"},"include_tests":{"description":"Include results from test files (default: false — test-file callers are usually noise for impact analysis; set true to include them)","type":"boolean"},"root":{"description":"Repo root containing map.json (default: server cwd)","type":"string"},"sites":{"description":"One row per call site (path:line of each call expression) instead of one per definition","type":"boolean"},"symbol":{"description":"Symbol: name, Class.method, file.py:name, or a symbol id a reply printed (Foo.java::Foo.run#2). If the reply says the target is ambiguous, append ':LINE' from a printed candidate row (file.py:Class.method:42) to pick one. 'name', 'target' and 'type' are also accepted as aliases for this argument; two of them with different values is an error.","type":"string"}},"required":["symbol"],"type":"object"},"name":"get_callers"},{"description":"Every in-repo symbol a symbol calls — what this code depends on, without reading its body. Resolved call edges, not a grep of the body for call-shaped names.","inputSchema":{"properties":{"budget":{"description":"Approximate token budget (default 800; 0 = no cap); lowest-relevance rows are dropped to fit and a cost footer is appended","type":"integer"},"root":{"description":"Repo root containing map.json (default: server cwd)","type":"string"},"sites":{"description":"One row per call site (path:line of each call expression) instead of one per definition","type":"boolean"},"symbol":{"description":"Symbol: name, Class.method, file.py:name, or a symbol id a reply printed (Foo.java::Foo.run#2). If the reply says the target is ambiguous, append ':LINE' from a printed candidate row (file.py:Class.method:42) to pick one. 'name', 'target' and 'type' are also accepted as aliases for this argument; two of them with different values is an error.","type":"string"}},"required":["symbol"],"type":"object"},"name":"get_callees"},{"description":"The symbols that call into an external (out-of-repo) name — a function, an imported binding, or a whole module — with call sites and a summary line. Calls only: type positions, JSX and property reads are not recorded; the summary's importing-file count shows what a low count leaves out.","inputSchema":{"properties":{"budget":{"description":"Approximate token budget (default 800; 0 = no cap); lowest-relevance rows are dropped to fit and a cost footer is appended","type":"integer"},"limit":{"description":"Max result lines (default 50)","type":"integer"},"name":{"description":"An external name: a function's own name ('run'), an imported binding ('chalk', 'np', 'React'), or a module ('numpy', 'node:path'). 'symbol', 'target' and 'type' are also accepted; two with different values is an error.","type":"string"},"root":{"description":"Repo root containing map.json (default: server cwd)","type":"string"}},"required":["name"],"type":"object"},"name":"find_usages"},{"description":"Every parameter or return annotation that uses a type — 'what breaks if I change this struct/class's shape', which the call graph can't answer since code can use a type without calling it. Covers named functions/methods plus TS callbacks and interface method signatures. Not covered: fields, generic arguments, JSX.","inputSchema":{"properties":{"budget":{"description":"Approximate token budget (default 800; 0 = no cap); lowest-relevance rows are dropped to fit and a cost footer is appended","type":"integer"},"exact":{"description":"Match the declared type text exactly; by default the bare name matches inside wrappers (Optional[Config], Vec<Config>, Config | None all match 'Config'). Default false","type":"boolean"},"limit":{"description":"Max result lines (default 50)","type":"integer"},"root":{"description":"Repo root containing map.json (default: server cwd)","type":"string"},"type":{"description":"Type/class/struct/interface name to search for, e.g. 'Config'. 'symbol', 'name' and 'target' are also accepted; two with different values is an error.","type":"string"}},"required":["type"],"type":"object"},"name":"find_type_usages"},{"description":"What a class/interface/struct/trait extends, implements, or is impl'd for — its own declared heritage (Python/JS/TS/Java/Rust/C++). Go is not covered: struct embedding is not extracted and structural interface satisfaction has no declaring syntax to see.","inputSchema":{"properties":{"budget":{"description":"Approximate token budget (default 800; 0 = no cap); lowest-relevance rows are dropped to fit and a cost footer is appended","type":"integer"},"include_tests":{"description":"Include results from test files (default: true; set false to drop test-path types from the index first)","type":"boolean"},"relation":{"description":"Filter to one heritage-relation kind ('embeds' never appears: Go struct embedding is not extracted)","enum":["extends","implements","impl","embeds"],"type":"string"},"root":{"description":"Repo root containing map.json (default: server cwd)","type":"string"},"symbol":{"description":"Symbol: name, Class.method, file.py:name, or a symbol id a reply printed (Foo.java::Foo.run#2). If the reply says the target is ambiguous, append ':LINE' from a printed candidate row (file.py:Class.method:42) to pick one. 'name', 'target' and 'type' are also accepted as aliases for this argument; two of them with different values is an error.","type":"string"},"transitive":{"description":"Full ancestor chain/DAG instead of one hop (default false)","type":"boolean"}},"required":["symbol"],"type":"object"},"name":"get_supertypes"},{"description":"What extends, implements, or is impl'd for a class/interface/struct/trait — the blast radius of changing a type declaration. Does not include each implementor's own callers; pair with get_callers for that.","inputSchema":{"properties":{"budget":{"description":"Approximate token budget (default 800; 0 = no cap); lowest-relevance rows are dropped to fit and a cost footer is appended","type":"integer"},"include_tests":{"description":"Include results from test files (default: false — test-file callers are usually noise for impact analysis; set true to include them)","type":"boolean"},"relation":{"description":"Filter to one heritage-relation kind ('embeds' never appears: Go struct embedding is not extracted)","enum":["extends","implements","impl","embeds"],"type":"string"},"root":{"description":"Repo root containing map.json (default: server cwd)","type":"string"},"symbol":{"description":"Symbol: name, Class.method, file.py:name, or a symbol id a reply printed (Foo.java::Foo.run#2). If the reply says the target is ambiguous, append ':LINE' from a printed candidate row (file.py:Class.method:42) to pick one. 'name', 'target' and 'type' are also accepted as aliases for this argument; two of them with different values is an error.","type":"string"},"transitive":{"description":"Every direct and indirect implementor instead of just direct ones (default false)","type":"boolean"}},"required":["symbol"],"type":"object"},"name":"get_subtypes"},{"description":"Compact signature neighborhood (callers/callees within N hops) for editing a symbol or file. Token-budgetable. Example: target=\"awardXp\", task=\"who calls this\".","inputSchema":{"properties":{"budget":{"description":"Approx token budget for the pack (default 800; 0 = no cap)","type":"integer"},"hops":{"description":"Neighborhood radius (default 1)","type":"integer"},"root":{"description":"Repo root containing map.json (default: server cwd)","type":"string"},"target":{"description":"Symbol or repo-relative file path. 'symbol', 'name' and 'type' are also accepted; two with different values is an error.","type":"string"},"task":{"description":"Rank output by relevance to this task description, blended with structural centrality and the working diff","type":"string"},"with_source":{"description":"Inline the target's source body and hop-1 call-site lines (default false; counts against budget)","type":"boolean"}},"required":["target"],"type":"object"},"name":"get_context_pack"},{"description":"A file's (or directory's) structural outline — signatures + doc lines, no bodies — at roughly a tenth the cost of reading it. Prefer this before reading a file to learn what it contains.","inputSchema":{"properties":{"budget":{"description":"Approximate token budget (default 2000; 0 = no cap); lowest-relevance rows are dropped to fit and a cost footer is appended","type":"integer"},"limit":{"description":"Max symbol rows (default 200; if omitted and budget is set explicitly, budget governs instead — the 200 default doesn't stack with it)","type":"integer"},"root":{"description":"Repo root containing map.json (default: server cwd)","type":"string"},"target":{"description":"Mapped file path or directory (suffix-matched); a directory rolls up its files. 'symbol', 'name' and 'type' are also accepted; two with different values is an error.","type":"string"}},"required":["target"],"type":"object"},"name":"outline"},{"description":"Test files a runner should exercise after a change: reverse call-graph reachability from changed symbols plus an import-edge fallback. Leads, not verdicts (static analysis misses fixtures and dynamic dispatch), but it finds the indirect callers a grep for the changed name misses.","inputSchema":{"properties":{"budget":{"description":"Approximate token budget (default 6000; 0 = no cap); weakest-tier test files are dropped first to fit","type":"integer"},"limit":{"description":"Max impacted symbols per test file (default 8)","type":"integer"},"rev":{"description":"Git rev to compare against (default: the commit the map was generated at, else HEAD)","type":"string"},"root":{"description":"Repo root containing map.json (default: server cwd)","type":"string"}},"type":"object"},"name":"impacted_tests"},{"description":"Task work-set: for a change (git rev) or a symbol, bundle the touched files' outlines plus call-graph packs for the most central touched symbols under one token budget. One call replaces impacted_tests + N outlines + N packs when starting on a change.","inputSchema":{"properties":{"budget":{"description":"Shared token budget for the whole bundle (default 6000; 0 = no cap)","type":"integer"},"packs":{"description":"Top-centrality touched symbols to deep-pack (default 5)","type":"integer"},"rev":{"description":"Git rev to bundle changes against (default: the commit the map was generated at, else HEAD); omit when using 'symbol'","type":"string"},"root":{"description":"Repo root containing map.json (default: server cwd)","type":"string"},"symbol":{"description":"Seed from a symbol instead of a diff (name, Class.method, file.py:name); not with 'rev'","type":"string"},"task":{"description":"Rank output by relevance to this task description, blended with structural centrality and the working diff","type":"string"},"type_impact":{"description":"Also union every type-usage site and implementor into the touched set: the full blast radius of changing a shared type's shape. Requires 'symbol' naming a class/interface/struct/trait (no-op otherwise). Default false","type":"boolean"}},"type":"object"},"name":"workset"},{"description":"Repo-wide resolver-trust summary: ambiguous call-site count and rate, top colliding names/files. Run before an impact decision built on get_callers/get_callees/workset in a repo with common method names: a low rate means trust the graph; a high rate concentrated in a few files means spot-check those call sites by hand.","inputSchema":{"properties":{"budget":{"description":"Approx token budget (default 500; 0 = no cap)","type":"integer"},"root":{"description":"Repo root containing map.json (default: server cwd)","type":"string"},"top":{"description":"Top-N entries per ranking (default 5)","type":"integer"}},"type":"object"},"name":"check_ambiguous"},{"description":"Compact repo digest (~40 lines): counts, language mix, per-directory rollup with coupling and purpose, load-bearing/orchestrating symbols, entry points, parse errors. Read this before exploring an unfamiliar repo.","inputSchema":{"properties":{"budget":{"description":"Approximate token cap (default 2000; 0 = no cap); trailing sections are shed to fit and a footer reports the omission","type":"integer"},"root":{"description":"Repo root containing map.json (default: server cwd)","type":"string"}},"type":"object"},"name":"summary"},{"description":"Anchor a durable note to a symbol. Notes are committed to .dekko/notes.json and shown on the symbol's card and in its context pack. Use after a non-obvious change so the rationale survives.","inputSchema":{"properties":{"root":{"description":"Repo root containing map.json (default: server cwd)","type":"string"},"symbol":{"description":"Symbol: name, Class.method, file.py:name, or a symbol id a reply printed (Foo.java::Foo.run#2). If the reply says the target is ambiguous, append ':LINE' from a printed candidate row (file.py:Class.method:42) to pick one. 'name', 'target' and 'type' are also accepted as aliases for this argument; two of them with different values is an error.","type":"string"},"text":{"description":"The note text","type":"string"}},"required":["symbol","text"],"type":"object"},"name":"add_note"},{"description":"List notes anchored to a symbol, or every note in the repo when no symbol is given.","inputSchema":{"properties":{"root":{"description":"Repo root containing map.json (default: server cwd)","type":"string"},"symbol":{"description":"Symbol to list notes for (omit for all notes)","type":"string"}},"type":"object"},"name":"list_notes"},{"description":"Report whether map.json is fresh or stale.","inputSchema":{"properties":{"root":{"description":"Repo root containing map.json (default: server cwd)","type":"string"}},"type":"object"},"name":"map_status"},{"description":"Regenerate the map; set full=true to ignore the cache and re-parse every file.","inputSchema":{"properties":{"full":{"description":"Ignore the .dekko cache (cold rebuild)","type":"boolean"},"root":{"description":"Repo root containing map.json (default: server cwd)","type":"string"}},"type":"object"},"name":"refresh_map"}]}}}
