Source:
packages/fabric-mcp/src/tools.tsmcpgeneratedfabric_context_gen
Auto-generate context files from the indexed knowledge graph. Produces project-aware CLAUDE.md, .cursorrules, copilot-instructions.md, or agents.md. Reads package.json/Cargo.toml/README.md for richer output. Pass format="structured-json" (context_gen v2) to receive the underlying data as a stable, versioned JSON document instead of pre-rendered markdown — useful when you want to feed the data into your own LLM prompt template.
Input schema
| Field | Type | Required | Description |
|---|---|---|---|
format | string | no | Output format. Default: "all". "structured-json" returns a versioned JSON document (schema_version "1.0") with project_structure, key_entry_points, build_commands, dependencies, governance_rules, debt_markers, test_coverage, and contracts — suitable for power users feeding the data into their own LLM prompt template. (enum: "claude_md" | "cursor_rules" | "copilot_instructions" | "agents_md" | "structured-json" | "all") |
project_path | string | no | Absolute path to the project root directory. Used to read package.json, Cargo.toml, README.md for richer context. |
Source
Source: packages/fabric-mcp/src/tools.ts
