mcp
v0.18.1Read-only MCP server that exposes a LuckyStack project's committed AI context (decisions, dependency graph, routes, runbooks, capabilities) to Claude Code as…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
blast_radius
List the files that would be affected by changing a given source file (transitive reverse-dependency / change-impact), from the dependency graph. Pass a repo-relative path like "src/_functions/foo.ts", "shared/tryCatch.ts" or "config.ts".
| Parameter | Type | Description |
|---|---|---|
file * | string | Source file, repo-relative (e.g. "src/_functions/foo.ts", "config.ts"). A bare basename also resolves when unambiguous. |
who_imports
List the DIRECT importers of a given source file (one hop), from the dependency graph.
| Parameter | Type | Description |
|---|---|---|
file * | string | Source file, repo-relative (e.g. "src/_functions/foo.ts", "config.ts"). |
god_nodes
List the most-depended-upon files (highest transitive-dependent count) — the risky-to-change hubs — from the dependency graph.
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many to return (default 15, max 25 — the generator stores only the top 25). |
who_calls
Symbol-level change-impact: list the functions that (transitively) CALL a given function, from the call graph. Pass "file::fn" (e.g. "src/_functions/foo.ts::doThing") or just a function name to disambiguate.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | A symbol id "file::fn", or a bare function name. |
list_decisions
List the project's recorded decisions (ADRs) — the committed "why" record. Optionally filter by a tag substring.
| Parameter | Type | Description |
|---|---|---|
tag | string | Filter to decisions whose row mentions this tag/keyword. |
get_decision
Read a full decision record (Context / Decision / Rejected alternatives / Consequences) by ADR number or slug.
| Parameter | Type | Description |
|---|---|---|
id * | string | ADR number ("2" or "0002") or slug ("native-callgraph..."). |
find_route
Find API/sync routes matching a query, from the committed project index (method, auth, summary).
| Parameter | Type | Description |
|---|---|---|
query * | string | Route name / page / keyword to match. |
get_capability
Look up existing helpers/components/exports by name in the committed capability snapshot — check BEFORE authoring a new helper (Rule 12).
| Parameter | Type | Description |
|---|---|---|
name * | string | Helper / component / export name to search for. |
decision_for_file
Reverse decision lookup: which ADR (if any) governs a given source file, from the `//? @adr NNNN` tags surfaced in the committed decisions index. Use BEFORE "cleaning up" a deliberate-looking construct to check a decision does not depend on it.
| Parameter | Type | Description |
|---|---|---|
file * | string | Source file path (repo-relative or a basename) to find governing decisions for. |
find_lesson
Search the project's recorded lessons (pitfalls — "what failed and why") for a keyword. Consult BEFORE retrying something tricky so a known dead-end is not rediscovered. Omit query to list all lessons.
| Parameter | Type | Description |
|---|---|---|
query | string | Keyword to match against lesson titles/takeaways/tags. |
get_lesson
Read a full lesson (What happened / Root cause / How to avoid) by number or slug.
| Parameter | Type | Description |
|---|---|---|
id * | string | Lesson number ("3" or "0003") or slug. |
graph_status
Check whether the local dependency-graph cache (docs/ai-graph.json) is likely fresh or stale by comparing its mtime to the newest source file the graph generator scans (src/, server/, shared/, functions/, luckystack/ and root config files). Returns the graph mtime, the newest source mtime, and a staleness verdict. A STALE verdict is not a problem to report — just run `npm run ai:graph`.