mcp

v0.18.1
@luckystack/mcp Checked 11 hours ago Published 6 days ago

Read-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".

ParameterTypeDescription
file *stringSource 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.

ParameterTypeDescription
file *stringSource 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.

ParameterTypeDescription
limitintegerHow 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.

ParameterTypeDescription
symbol *stringA 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.

ParameterTypeDescription
tagstringFilter 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.

ParameterTypeDescription
id *stringADR 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).

ParameterTypeDescription
query *stringRoute 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).

ParameterTypeDescription
name *stringHelper / 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.

ParameterTypeDescription
file *stringSource 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.

ParameterTypeDescription
querystringKeyword to match against lesson titles/takeaways/tags.

get_lesson

Read a full lesson (What happened / Root cause / How to avoid) by number or slug.

ParameterTypeDescription
id *stringLesson 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`.