Generated reference·
generated-mcpSource:
packages/fabric-mcp/src/tools.tsmcpgeneratedMCP 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.
| Tool | Description |
|---|---|
| fabric_context_gen | Auto-generate context files from the indexed knowledge graph. Produces project-aware CLAUDE.md, .cu… |
| fabric_contracts | List every exported symbol in the indexed graph, ranked by inbound fan-in (CALLS edge count). Not a… |
| fabric_debt | Inventory TODO/FIXME/HACK/@deprecated markers with graph context — each debt node surfaces alongsid… |
| fabric_explain | Full structural summary of a single symbol: name, node type, file, callers, callees, dependencies, … |
| fabric_govern | Check proposed code against governance rules. Returns compliance status, violations (block/warn), a… |
| fabric_govern_add | Add a governance rule. Rules persist as HOT-tier nodes and are enforced on all future governance ch… |
| fabric_impact | Call before refactoring to see "what breaks if I change this?" Reverse-walks call, import, test, an… |
| fabric_index | Index a codebase directory. Parses source files with tree-sitter (TypeScript, Python, Go + 200 lang… |
| fabric_list_snapshots | List cloud snapshots for a repo. Returns snapshot_id, device_id, size, created_at, sha256 for each.… |
| fabric_pull | Restore a snapshot from the Fabric cloud into the local LMDB dir. Refuses if target already has dat… |
| fabric_query | Ask "what symbols match this name and what do they connect to?" Matches nodes by name (case-insensi… |
| fabric_recent_changes | Files sorted by recency — discover what changed most recently without enumerating paths first. Retu… |
| fabric_reindex | Call after editing files to keep the graph current without reparsing the whole repo. Accepts absolu… |
| fabric_slice | Build an LLM-ready context window for a target symbol, bounded by a real token budget (cl100k_base … |
| fabric_staleness | Does the indexed state match disk? For each file, compares on-disk mtime against the timestamp capt… |
| fabric_status | Call this first to orient on the local code index: node/edge counts, governance rule count, store s… |
| fabric_sync_now | Upload a snapshot of the local knowledge graph to the Fabric cloud for disaster recovery. Manually … |
| fabric_text_search | Graph-aware regex grep. Greps for a pattern across indexed source files (Rust regex / RE2 syntax — … |
| fabric_visualize | Open an interactive 3D code graph of the indexed codebase in your default browser. Spins up a local… |
