UNPKG

@macroforge/mcp-server

Version:

MCP server for Macroforge documentation and code analysis

1,167 lines (1,166 loc) • 42.7 kB
[ { "id": "installation", "title": "Installation", "category": "getting-started", "category_title": "Getting Started", "path": "getting-started/installation.md", "use_cases": "setup, install, npm, getting started, quick start, init" }, { "id": "first-macro", "title": "First Macro", "category": "getting-started", "category_title": "Getting Started", "path": "getting-started/first-macro.md", "use_cases": "tutorial, example, hello world, beginner, learn" }, { "id": "how-macros-work", "title": "How Macros Work", "category": "concepts", "category_title": "Core Concepts", "path": "concepts/how-macros-work.md", "use_cases": "architecture, overview, understanding, basics, fundamentals" }, { "id": "derive-system/overview", "title": "The Derive System: Overview", "category": "concepts", "category_title": "Core Concepts", "path": "concepts/derive-system/overview.md", "use_cases": "@derive, decorator, @derive", "parent_id": "derive-system" }, { "id": "derive-system/built-in-vs-custom-macros", "title": "The Derive System: Built-in vs Custom Macros", "category": "concepts", "category_title": "Core Concepts", "path": "concepts/derive-system/built-in-vs-custom-macros.md", "use_cases": "@derive, decorator, import macro, $newtype", "parent_id": "derive-system" }, { "id": "derive-system", "title": "The Derive System", "category": "concepts", "category_title": "Core Concepts", "path": "concepts/derive-system.md", "use_cases": "@derive, decorator, annotation, derive macro", "is_chunked": true, "chunk_ids": [ "derive-system/overview", "derive-system/built-in-vs-custom-macros" ] }, { "id": "declarative-macros", "title": "Declarative Macros", "category": "concepts", "category_title": "Core Concepts", "path": "concepts/declarative-macros.md", "use_cases": "declarative macros" }, { "id": "architecture", "title": "Architecture", "category": "concepts", "category_title": "Core Concepts", "path": "concepts/architecture.md", "use_cases": "internals, rust, oxc, wasm, how it works" }, { "id": "declarative-macros", "title": "Overview", "category": "declarative-macros", "category_title": "Declarative Macros", "path": "declarative-macros/declarative-macros.md", "use_cases": "overview" }, { "id": "defining", "title": "Defining Macros", "category": "declarative-macros", "category_title": "Declarative Macros", "path": "declarative-macros/defining.md", "use_cases": "defining macros" }, { "id": "patterns", "title": "Patterns & Fragments", "category": "declarative-macros", "category_title": "Declarative Macros", "path": "declarative-macros/patterns.md", "use_cases": "patterns & fragments" }, { "id": "repetitions", "title": "Repetitions & Backtracking", "category": "declarative-macros", "category_title": "Declarative Macros", "path": "declarative-macros/repetitions.md", "use_cases": "repetitions & backtracking" }, { "id": "expansion", "title": "Expansion & Hygiene", "category": "declarative-macros", "category_title": "Declarative Macros", "path": "declarative-macros/expansion.md", "use_cases": "expansion & hygiene" }, { "id": "type-macros", "title": "Type-Position Macros", "category": "declarative-macros", "category_title": "Declarative Macros", "path": "declarative-macros/type-macros.md", "use_cases": "type-position macros" }, { "id": "sharing", "title": "Reverse Monomorphization", "category": "declarative-macros", "category_title": "Declarative Macros", "path": "declarative-macros/sharing.md", "use_cases": "reverse monomorphization" }, { "id": "cross-file", "title": "Cross-File & Diagnostics", "category": "declarative-macros", "category_title": "Declarative Macros", "path": "declarative-macros/cross-file.md", "use_cases": "cross-file & diagnostics" }, { "id": "macros-overview/overview", "title": "Overview: Overview", "category": "builtin-macros", "category_title": "Built-in Macros", "path": "builtin-macros/macros-overview/overview.md", "use_cases": "all macros, list, debug, clone, static clone(value: t): t, default", "parent_id": "macros-overview" }, { "id": "macros-overview/type-position-macros", "title": "Overview: Type-Position Macros", "category": "builtin-macros", "category_title": "Built-in Macros", "path": "builtin-macros/macros-overview/type-position-macros.md", "use_cases": "all macros, list, @derive, $newtype<t>, unique symbol, @derive", "parent_id": "macros-overview" }, { "id": "macros-overview/interface-support", "title": "Overview: Interface Support", "category": "builtin-macros", "category_title": "Built-in Macros", "path": "builtin-macros/macros-overview/interface-support.md", "use_cases": "all macros, list, generateconvenienceconst, const", "parent_id": "macros-overview" }, { "id": "macros-overview/enum-support", "title": "Overview: Enum Support", "category": "builtin-macros", "category_title": "Built-in Macros", "path": "builtin-macros/macros-overview/enum-support.md", "use_cases": "all macros, list", "parent_id": "macros-overview" }, { "id": "macros-overview/type-alias-support", "title": "Overview: Type Alias Support", "category": "builtin-macros", "category_title": "Built-in Macros", "path": "builtin-macros/macros-overview/type-alias-support.md", "use_cases": "all macros, list, const", "parent_id": "macros-overview" }, { "id": "macros-overview/detailed-documentation", "title": "Overview: Detailed Documentation", "category": "builtin-macros", "category_title": "Built-in Macros", "path": "builtin-macros/macros-overview/detailed-documentation.md", "use_cases": "all macros, list, decode", "parent_id": "macros-overview" }, { "id": "macros-overview", "title": "Overview", "category": "builtin-macros", "category_title": "Built-in Macros", "path": "builtin-macros/macros-overview.md", "use_cases": "all macros, list, available macros, macro list", "is_chunked": true, "chunk_ids": [ "macros-overview/overview", "macros-overview/type-position-macros", "macros-overview/interface-support", "macros-overview/enum-support", "macros-overview/type-alias-support", "macros-overview/detailed-documentation" ] }, { "id": "debug", "title": "Debug", "category": "builtin-macros", "category_title": "Built-in Macros", "path": "builtin-macros/debug.md", "use_cases": "toString, debugging, logging, output, print" }, { "id": "clone", "title": "Clone", "category": "builtin-macros", "category_title": "Built-in Macros", "path": "builtin-macros/clone.md", "use_cases": "copy, clone, duplicate, shallow copy, immutable" }, { "id": "default", "title": "Default", "category": "builtin-macros", "category_title": "Built-in Macros", "path": "builtin-macros/default.md", "use_cases": "default values, factory, initialization, constructor" }, { "id": "hash", "title": "Hash", "category": "builtin-macros", "category_title": "Built-in Macros", "path": "builtin-macros/hash.md", "use_cases": "hashCode, hashing, hash map, equality, hash function" }, { "id": "ord", "title": "Ord", "category": "builtin-macros", "category_title": "Built-in Macros", "path": "builtin-macros/ord.md", "use_cases": "compare, ordering, sorting, comparison, total order" }, { "id": "partial-eq", "title": "PartialEq", "category": "builtin-macros", "category_title": "Built-in Macros", "path": "builtin-macros/partial-eq.md", "use_cases": "equals, equality, comparison, value equality" }, { "id": "eq", "title": "Eq", "category": "builtin-macros", "category_title": "Built-in Macros", "path": "builtin-macros/eq.md", "use_cases": "Eq, total equality, equivalence relation, marker" }, { "id": "partial-ord", "title": "PartialOrd", "category": "builtin-macros", "category_title": "Built-in Macros", "path": "builtin-macros/partial-ord.md", "use_cases": "partialCompare, partial ordering, sorting, nullable comparison" }, { "id": "encode", "title": "Encode", "category": "builtin-macros", "category_title": "Built-in Macros", "path": "builtin-macros/encode.md", "use_cases": "toJSON, encoding, json, api, data transfer" }, { "id": "decode", "title": "Decode", "category": "builtin-macros", "category_title": "Built-in Macros", "path": "builtin-macros/decode.md", "use_cases": "fromJSON, decoding, parsing, validation, json" }, { "id": "newtype", "title": "$Newtype", "category": "builtin-macros", "category_title": "Built-in Macros", "path": "builtin-macros/newtype.md", "use_cases": "newtype, brand, branded type, nominal type, unique symbol, opaque type" }, { "id": "endec", "title": "Overview", "category": "endec", "category_title": "Endec Reference", "path": "endec/endec.md", "use_cases": "overview" }, { "id": "validators", "title": "Validators", "category": "endec", "category_title": "Endec Reference", "path": "endec/validators.md", "use_cases": "validators" }, { "id": "container-options", "title": "Container Options", "category": "endec", "category_title": "Endec Reference", "path": "endec/container-options.md", "use_cases": "container options" }, { "id": "field-options", "title": "Field Options", "category": "endec", "category_title": "Endec Reference", "path": "endec/field-options.md", "use_cases": "field options" }, { "id": "foreign-types", "title": "Foreign Types", "category": "endec", "category_title": "Endec Reference", "path": "endec/foreign-types.md", "use_cases": "foreign types" }, { "id": "expanded-config/overview", "title": "Expanded Config: Overview", "category": "endec", "category_title": "Endec Reference", "path": "endec/expanded-config/overview.md", "use_cases": "expanded config, macroforge.config.ts, @derive(encode), @derive(decode), .macroforge/config/, #macroforge/config", "parent_id": "expanded-config" }, { "id": "expanded-config/setup", "title": "Expanded Config: Setup", "category": "endec", "category_title": "Endec Reference", "path": "endec/expanded-config/setup.md", "use_cases": "expanded config, #macroforge/config, #lib", "parent_id": "expanded-config" }, { "id": "expanded-config/when-it-is-regenerated", "title": "Expanded Config: When it is regenerated", "category": "endec", "category_title": "Endec Reference", "path": "endec/expanded-config/when-it-is-regenerated.md", "use_cases": "expanded config, .macroforge/config/, .svelte-kit/", "parent_id": "expanded-config" }, { "id": "expanded-config/what-the-config-may-contain", "title": "Expanded Config: What the config may contain", "category": "endec", "category_title": "Endec Reference", "path": "endec/expanded-config/what-the-config-may-contain.md", "use_cases": "expanded config, import.meta, import(), .macroforge/config/, /*#__pure__*/", "parent_id": "expanded-config" }, { "id": "expanded-config", "title": "Expanded Config", "category": "endec", "category_title": "Endec Reference", "path": "endec/expanded-config.md", "use_cases": "expanded config", "is_chunked": true, "chunk_ids": [ "expanded-config/overview", "expanded-config/setup", "expanded-config/when-it-is-regenerated", "expanded-config/what-the-config-may-contain" ] }, { "id": "cycles-and-references", "title": "Cycles & References", "category": "endec", "category_title": "Endec Reference", "path": "endec/cycles-and-references.md", "use_cases": "cycles & references" }, { "id": "attributes", "title": "Attribute Macros", "category": "attributes", "category_title": "Attributes & Buildtime", "path": "attributes/attributes.md", "use_cases": "attribute macros" }, { "id": "buildtime", "title": "Buildtime Evaluation", "category": "attributes", "category_title": "Attributes & Buildtime", "path": "attributes/buildtime.md", "use_cases": "buildtime evaluation" }, { "id": "custom-overview", "title": "Overview", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/custom-overview.md", "use_cases": "custom, extending, creating macros, own macro" }, { "id": "rust-setup", "title": "Rust Setup", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/rust-setup.md", "use_cases": "rust, cargo, wasm, compilation, building" }, { "id": "ts-macro-derive/overview", "title": "#[ts_macro_derive]: Overview", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-macro-derive/overview.md", "use_cases": "attribute, proc macro, #[ts_macro_derive]", "parent_id": "ts-macro-derive" }, { "id": "ts-macro-derive/attribute-options", "title": "#[ts_macro_derive]: Attribute Options", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-macro-derive/attribute-options.md", "use_cases": "attribute, proc macro, @derive()", "parent_id": "ts-macro-derive" }, { "id": "ts-macro-derive/function-signature", "title": "#[ts_macro_derive]: Function Signature", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-macro-derive/function-signature.md", "use_cases": "attribute, proc macro", "parent_id": "ts-macro-derive" }, { "id": "ts-macro-derive/parsing-input", "title": "#[ts_macro_derive]: Parsing Input", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-macro-derive/parsing-input.md", "use_cases": "attribute, proc macro, parse_ts_macro_input!", "parent_id": "ts-macro-derive" }, { "id": "ts-macro-derive/deriveinput-structure", "title": "#[ts_macro_derive]: DeriveInput Structure", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-macro-derive/deriveinput-structure.md", "use_cases": "attribute, proc macro", "parent_id": "ts-macro-derive" }, { "id": "ts-macro-derive/accessing-field-data", "title": "#[ts_macro_derive]: Accessing Field Data", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-macro-derive/accessing-field-data.md", "use_cases": "attribute, proc macro", "parent_id": "ts-macro-derive" }, { "id": "ts-macro-derive/adding-imports", "title": "#[ts_macro_derive]: Adding Imports", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-macro-derive/adding-imports.md", "use_cases": "attribute, proc macro, add_import, tsstream", "parent_id": "ts-macro-derive" }, { "id": "ts-macro-derive/returning-errors", "title": "#[ts_macro_derive]: Returning Errors", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-macro-derive/returning-errors.md", "use_cases": "attribute, proc macro, macroforgeerror", "parent_id": "ts-macro-derive" }, { "id": "ts-macro-derive/complete-example", "title": "#[ts_macro_derive]: Complete Example", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-macro-derive/complete-example.md", "use_cases": "attribute, proc macro", "parent_id": "ts-macro-derive" }, { "id": "ts-macro-derive", "title": "#[ts_macro_derive]", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-macro-derive.md", "use_cases": "attribute, proc macro, derive attribute, rust macro", "is_chunked": true, "chunk_ids": [ "ts-macro-derive/overview", "ts-macro-derive/attribute-options", "ts-macro-derive/function-signature", "ts-macro-derive/parsing-input", "ts-macro-derive/deriveinput-structure", "ts-macro-derive/accessing-field-data", "ts-macro-derive/adding-imports", "ts-macro-derive/returning-errors", "ts-macro-derive/complete-example" ] }, { "id": "ts-macro", "title": "#[ts_macro]", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-macro.md", "use_cases": "call macro, ts_macro, $name, function-like macro" }, { "id": "ts-macro-attribute", "title": "#[ts_macro_attribute]", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-macro-attribute.md", "use_cases": "attribute macro, ts_macro_attribute, decorator, rewrite declaration" }, { "id": "ts-quote/overview", "title": "Template Syntax: Overview", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-quote/overview.md", "use_cases": "ts_quote, template, macroforge_ts_quote, ts_template!, ts_quote!, ts_template!", "parent_id": "ts-quote" }, { "id": "ts-quote/quick-reference", "title": "Template Syntax: Quick Reference", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-quote/quick-reference.md", "use_cases": "ts_quote, template, @{expr}, \"text @{expr}\", \"'^template ${js}^'\"", "parent_id": "ts-quote" }, { "id": "ts-quote/positions", "title": "Template Syntax: Positions", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-quote/positions.md", "use_cases": "ts_quote, template, top, bottom, above, below", "parent_id": "ts-quote" }, { "id": "ts-quote/interpolation-expr", "title": "Template Syntax: Interpolation: `@{expr}`", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-quote/interpolation-expr.md", "use_cases": "ts_quote, template, @{expr}", "parent_id": "ts-quote" }, { "id": "ts-quote/string-interpolation-textexpr", "title": "Template Syntax: String Interpolation: `\"text @{expr}\"`", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-quote/string-interpolation-textexpr.md", "use_cases": "ts_quote, template, \"text @{expr}\", format!()", "parent_id": "ts-quote" }, { "id": "ts-quote/backtick-template-literals", "title": "Template Syntax: Backtick Template Literals: `\"'^...^'\"`", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-quote/backtick-template-literals.md", "use_cases": "ts_quote, template, \"'^...^'\", '^...^', ${\"${}\"}", "parent_id": "ts-quote" }, { "id": "ts-quote/comments", "title": "Template Syntax: Comments", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-quote/comments.md", "use_cases": "ts_quote, template, @{}", "parent_id": "ts-quote" }, { "id": "ts-quote/conditionals-ifif", "title": "Template Syntax: Conditionals: `{#if}...{/if}`", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-quote/conditionals-ifif.md", "use_cases": "ts_quote, template, {#if}...{/if}", "parent_id": "ts-quote" }, { "id": "ts-quote/pattern-matching-iflet", "title": "Template Syntax: Pattern Matching: `{#if let}`", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-quote/pattern-matching-iflet.md", "use_cases": "ts_quote, template, {#if let}, if let, option, result", "parent_id": "ts-quote" }, { "id": "ts-quote/match-expressions-match", "title": "Template Syntax: Match Expressions: `{#match}`", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-quote/match-expressions-match.md", "use_cases": "ts_quote, template, {#match}, match", "parent_id": "ts-quote" }, { "id": "ts-quote/iteration-for", "title": "Template Syntax: Iteration: `{#for}`", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-quote/iteration-for.md", "use_cases": "ts_quote, template, {#for}", "parent_id": "ts-quote" }, { "id": "ts-quote/while-loops-while", "title": "Template Syntax: While Loops: `{#while}`", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-quote/while-loops-while.md", "use_cases": "ts_quote, template, {#while}, while", "parent_id": "ts-quote" }, { "id": "ts-quote/local-constants-let", "title": "Template Syntax: Local Constants: `{$let}`", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-quote/local-constants-let.md", "use_cases": "ts_quote, template, {$let}", "parent_id": "ts-quote" }, { "id": "ts-quote/side-effects-do", "title": "Template Syntax: Side Effects: `{$do}`", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-quote/side-effects-do.md", "use_cases": "ts_quote, template, {$do}", "parent_id": "ts-quote" }, { "id": "ts-quote/tsstream-injection-typescript", "title": "Template Syntax: TsStream Injection: `{$typescript}`", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-quote/tsstream-injection-typescript.md", "use_cases": "ts_quote, template, {$typescript}, tsstream, add_import()", "parent_id": "ts-quote" }, { "id": "ts-quote/nesting-and-regular-typescript", "title": "Template Syntax: Nesting and Regular TypeScript", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-quote/nesting-and-regular-typescript.md", "use_cases": "ts_quote, template", "parent_id": "ts-quote" }, { "id": "ts-quote/identifiers-tsident", "title": "Template Syntax: Identifiers: `ts_ident!`", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-quote/identifiers-tsident.md", "use_cases": "ts_quote, template, ts_ident!, \n\nnote\n\n", "parent_id": "ts-quote" }, { "id": "ts-quote/ast-nodes-tsquote", "title": "Template Syntax: AST Nodes: `ts_quote!`", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-quote/ast-nodes-tsquote.md", "use_cases": "ts_quote, template, ts_quote!, $name", "parent_id": "ts-quote" }, { "id": "ts-quote/complete-example-json-derive-macro", "title": "Template Syntax: Complete Example: JSON Derive Macro", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-quote/complete-example-json-derive-macro.md", "use_cases": "ts_quote, template, ts_template!", "parent_id": "ts-quote" }, { "id": "ts-quote/how-it-works", "title": "Template Syntax: How It Works", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-quote/how-it-works.md", "use_cases": "ts_quote, template, for, match, tsstream, macroforge expand", "parent_id": "ts-quote" }, { "id": "ts-quote", "title": "Template Syntax", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/ts-quote.md", "use_cases": "ts_quote, template, code generation, interpolation", "is_chunked": true, "chunk_ids": [ "ts-quote/overview", "ts-quote/quick-reference", "ts-quote/positions", "ts-quote/interpolation-expr", "ts-quote/string-interpolation-textexpr", "ts-quote/backtick-template-literals", "ts-quote/comments", "ts-quote/conditionals-ifif", "ts-quote/pattern-matching-iflet", "ts-quote/match-expressions-match", "ts-quote/iteration-for", "ts-quote/while-loops-while", "ts-quote/local-constants-let", "ts-quote/side-effects-do", "ts-quote/tsstream-injection-typescript", "ts-quote/nesting-and-regular-typescript", "ts-quote/identifiers-tsident", "ts-quote/ast-nodes-tsquote", "ts-quote/complete-example-json-derive-macro", "ts-quote/how-it-works" ] }, { "id": "output/overview", "title": "Output and Imports: Overview", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/output/overview.md", "use_cases": "output, insert position, tsstream, #[ts_macro_derive], #[ts_macro_attribute], #[ts_macro]", "parent_id": "output" }, { "id": "output/insert-positions", "title": "Output and Imports: Insert Positions", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/output/insert-positions.md", "use_cases": "output, insert position, insertpos", "parent_id": "output" }, { "id": "output/imports", "title": "Output and Imports: Imports", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/output/imports.md", "use_cases": "output, insert position, tsstream", "parent_id": "output" }, { "id": "output/patches", "title": "Output and Imports: Patches", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/output/patches.md", "use_cases": "output, insert position, runtime_patches", "parent_id": "output" }, { "id": "output/warnings", "title": "Output and Imports: Warnings", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/output/warnings.md", "use_cases": "output, insert position, add_diagnostic", "parent_id": "output" }, { "id": "output", "title": "Output and Imports", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/output.md", "use_cases": "output, insert position, imports, add_import, patches, spans, cross-module suffix", "is_chunked": true, "chunk_ids": [ "output/overview", "output/insert-positions", "output/imports", "output/patches", "output/warnings" ] }, { "id": "context-and-ir/overview", "title": "Context and IR: Overview", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/context-and-ir/overview.md", "use_cases": "context, MacroContextIR, macrocontextir, deriveinput, input.context(), deriveinput", "parent_id": "context-and-ir" }, { "id": "context-and-ir/type-parameters", "title": "Context and IR: Type parameters", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/context-and-ir/type-parameters.md", "use_cases": "context, MacroContextIR, declaration(), declare_all, apply_all, <t extends shape>", "parent_id": "context-and-ir" }, { "id": "context-and-ir/classes", "title": "Context and IR: Classes", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/context-and-ir/classes.md", "use_cases": "context, MacroContextIR", "parent_id": "context-and-ir" }, { "id": "context-and-ir/interfaces", "title": "Context and IR: Interfaces", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/context-and-ir/interfaces.md", "use_cases": "context, MacroContextIR", "parent_id": "context-and-ir" }, { "id": "context-and-ir/enums", "title": "Context and IR: Enums", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/context-and-ir/enums.md", "use_cases": "context, MacroContextIR", "parent_id": "context-and-ir" }, { "id": "context-and-ir/type-aliases", "title": "Context and IR: Type Aliases", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/context-and-ir/type-aliases.md", "use_cases": "context, MacroContextIR", "parent_id": "context-and-ir" }, { "id": "context-and-ir/functions", "title": "Context and IR: Functions", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/context-and-ir/functions.md", "use_cases": "context, MacroContextIR, functionir", "parent_id": "context-and-ir" }, { "id": "context-and-ir/decorators", "title": "Context and IR: Decorators", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/context-and-ir/decorators.md", "use_cases": "context, MacroContextIR", "parent_id": "context-and-ir" }, { "id": "context-and-ir", "title": "Context and IR", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/context-and-ir.md", "use_cases": "context, MacroContextIR, IR, ClassIR, FieldIR, TargetIR, EnumValue, TypeBody, FunctionIR", "is_chunked": true, "chunk_ids": [ "context-and-ir/overview", "context-and-ir/type-parameters", "context-and-ir/classes", "context-and-ir/interfaces", "context-and-ir/enums", "context-and-ir/type-aliases", "context-and-ir/functions", "context-and-ir/decorators" ] }, { "id": "type-aware/overview", "title": "Type-Aware Macros: Overview", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/type-aware/overview.md", "use_cases": "type registry, resolve, type_registry", "parent_id": "type-aware" }, { "id": "type-aware/the-projects-config", "title": "Type-Aware Macros: The Project's Config", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/type-aware/the-projects-config.md", "use_cases": "type registry, resolve, ctx.config, macroforge.config", "parent_id": "type-aware" }, { "id": "type-aware", "title": "Type-Aware Macros", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/type-aware.md", "use_cases": "type registry, resolve, resolved fields, foreign types, config, cross-file types", "is_chunked": true, "chunk_ids": [ "type-aware/overview", "type-aware/the-projects-config" ] }, { "id": "diagnostics", "title": "Errors and Diagnostics", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/diagnostics.md", "use_cases": "errors, MacroforgeError, MacroforgeErrors, DiagnosticCollector, warnings, diagnostics" }, { "id": "testing-and-debugging", "title": "Testing and Debugging", "category": "custom-macros", "category_title": "Custom Macros", "path": "custom-macros/testing-and-debugging.md", "use_cases": "testing, unit test, debug log, debug_log, Macroforge trait, register_macro_package" }, { "id": "integration-overview", "title": "Overview", "category": "integration", "category_title": "Integration", "path": "integration/integration-overview.md", "use_cases": "setup, integration, tools, ecosystem" }, { "id": "cli/overview", "title": "CLI: Overview", "category": "integration", "category_title": "Integration", "path": "integration/cli/overview.md", "use_cases": "command line, macroforge command", "parent_id": "cli" }, { "id": "cli/commands", "title": "CLI: Commands", "category": "integration", "category_title": "Integration", "path": "integration/cli/commands.md", "use_cases": "command line, macroforge command, macroforge.config.*, package.json, deno.json, deno.jsonc", "parent_id": "cli" }, { "id": "cli/output-format", "title": "CLI: Output Format", "category": "integration", "category_title": "Integration", "path": "integration/cli/output-format.md", "use_cases": "command line, macroforge command", "parent_id": "cli" }, { "id": "cli/use-cases", "title": "CLI: Use Cases", "category": "integration", "category_title": "Integration", "path": "integration/cli/use-cases.md", "use_cases": "command line, macroforge command, macroforge tsc", "parent_id": "cli" }, { "id": "cli", "title": "CLI", "category": "integration", "category_title": "Integration", "path": "integration/cli.md", "use_cases": "command line, macroforge command, expand, terminal", "is_chunked": true, "chunk_ids": [ "cli/overview", "cli/commands", "cli/output-format", "cli/use-cases" ] }, { "id": "typescript-plugin", "title": "TypeScript Plugin", "category": "integration", "category_title": "Integration", "path": "integration/typescript-plugin.md", "use_cases": "vscode, ide, language server, intellisense, autocomplete" }, { "id": "vite-plugin", "title": "Vite Plugin", "category": "integration", "category_title": "Integration", "path": "integration/vite-plugin.md", "use_cases": "vite, build, bundler, react, svelte, sveltekit" }, { "id": "svelte-preprocessor", "title": "Svelte Preprocessor", "category": "integration", "category_title": "Integration", "path": "integration/svelte-preprocessor.md", "use_cases": "svelte, preprocessor, svelte components, .svelte files, sveltekit" }, { "id": "deno-plugin", "title": "Deno Plugin", "category": "integration", "category_title": "Integration", "path": "integration/deno-plugin.md", "use_cases": "deno plugin" }, { "id": "mcp-server", "title": "MCP Server", "category": "integration", "category_title": "Integration", "path": "integration/mcp-server.md", "use_cases": "mcp, ai, claude, llm, model context protocol, assistant" }, { "id": "configuration/overview", "title": "Configuration: Overview", "category": "integration", "category_title": "Integration", "path": "integration/configuration/overview.md", "use_cases": "macroforge.config.ts, config, macroforge.config.ts, .js, macroforge.config.ts, macroforge.config.mts", "parent_id": "configuration" }, { "id": "configuration/sharing-a-base-config", "title": "Configuration: Sharing a Base Config", "category": "integration", "category_title": "Integration", "path": "integration/configuration/sharing-a-base-config.md", "use_cases": "macroforge.config.ts, config, extends", "parent_id": "configuration" }, { "id": "configuration/options-reference", "title": "Configuration: Options Reference", "category": "integration", "category_title": "Integration", "path": "integration/configuration/options-reference.md", "use_cases": "macroforge.config.ts, config, boolean, false, @derive, false", "parent_id": "configuration" }, { "id": "configuration", "title": "Configuration", "category": "integration", "category_title": "Integration", "path": "integration/configuration.md", "use_cases": "macroforge.config.ts, config, settings, options", "is_chunked": true, "chunk_ids": [ "configuration/overview", "configuration/sharing-a-base-config", "configuration/options-reference" ] }, { "id": "ls-overview", "title": "Overview", "category": "language-servers", "category_title": "Language Servers", "path": "language-servers/ls-overview.md", "use_cases": "lsp, language server, editor support" }, { "id": "svelte", "title": "Svelte", "category": "language-servers", "category_title": "Language Servers", "path": "language-servers/svelte.md", "use_cases": "svelte, svelte language server, .svelte files" }, { "id": "vtsls-macroforge", "title": "vtsls-macroforge", "category": "language-servers", "category_title": "Language Servers", "path": "language-servers/vtsls-macroforge.md", "use_cases": "vtsls-macroforge" }, { "id": "zed", "title": "Zed Extensions", "category": "language-servers", "category_title": "Language Servers", "path": "language-servers/zed.md", "use_cases": "zed, zed editor, extension" }, { "id": "api-overview", "title": "Overview", "category": "api", "category_title": "API Reference", "path": "api/api-overview.md", "use_cases": "api, functions, exports, programmatic" }, { "id": "expand-sync", "title": "expandSync()", "category": "api", "category_title": "API Reference", "path": "api/expand-sync.md", "use_cases": "expandSync, expand, transform, macro expansion" }, { "id": "native-plugin", "title": "NativePlugin", "category": "api", "category_title": "API Reference", "path": "api/native-plugin.md", "use_cases": "NativePlugin, caching, language server, stateful" }, { "id": "position-mapper", "title": "PositionMapper", "category": "api", "category_title": "API Reference", "path": "api/position-mapper.md", "use_cases": "PositionMapper, source map, diagnostics, position" }, { "id": "roadmap", "title": "Roadmap", "category": "roadmap", "category_title": "Roadmap", "path": "roadmap/roadmap.md", "use_cases": "roadmap, future, planned features, upcoming" } ]