Neural network background
Generated reference·generated-mcp
Source: packages/fabric-mcp/src/tools.tsmcpgenerated

MCP Tool Reference

Fabric exposes the following tools over the Model Context Protocol (MCP). Each tool page includes the full description, input schema, and required fields.

ToolDescription
fabric_context_genAuto-generate context files from the indexed knowledge graph.
fabric_contractsList every exported symbol in the indexed graph, ranked by inbound fan-in (CALLS edge count).
fabric_debtInventory TODO/FIXME/HACK/@deprecated markers with graph context — each debt node surfaces alongside its direct incoming edges so you can see what calls or tests the debt-bearing code.
fabric_explainFull structural summary of a single symbol: name, node type, file, callers, callees, dependencies, tests covering it, API contracts it satisfies, governance rules that apply, and tech debt it carries.
fabric_governCheck proposed code against governance rules.
fabric_govern_addAdd a governance rule.
fabric_impactCall before refactoring to see "what breaks if I change this?" Reverse-walks call, import, test, and contract edges to surface every node that would be affected — with a risk label (LOW/MEDIUM/HIGH), the specific API contracts that would break, and tests that may go stale.
fabric_indexIndex a codebase directory.
fabric_list_snapshotsList cloud snapshots for a repo.
fabric_pullRestore a snapshot from the Fabric cloud into the local index.
fabric_queryAsk "what symbols match this name and what do they connect to?" Matches nodes by name (case-insensitive substring + optional Damerau–Levenshtein fuzzy), then walks edges up to depth hops.
fabric_recent_changesFiles sorted by recency — discover what changed most recently without enumerating paths first.
fabric_reindexCall after editing files to keep the graph current without reparsing the whole repo.
fabric_sliceBuild an LLM-ready context window for a target symbol, bounded by a real token budget (cl100k_base BPE, the same tokenizer GPT-4 and Claude use).
fabric_stalenessDoes the indexed state match disk?
fabric_statusCall this first to orient on the local code index: node/edge counts, governance rule count, store size, and per-type breakdown.
fabric_sync_nowUpload a snapshot of the local knowledge graph to the Fabric cloud for disaster recovery.
fabric_text_searchGraph-aware regex grep.
fabric_visualizeOpen an interactive 3D code graph of the indexed codebase in your default browser.