@macroforge/mcp-server 0.1.40 → 0.1.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/docs/BOOK.md +165 -0
- package/docs/api/api-overview.md +65 -46
- package/docs/api/expand-sync.md +88 -53
- package/docs/api/native-plugin.md +121 -71
- package/docs/api/position-mapper.md +114 -54
- package/docs/api/transform-sync.md +85 -59
- package/docs/builtin-macros/clone.md +0 -20
- package/docs/builtin-macros/debug.md +0 -23
- package/docs/builtin-macros/default.md +1 -40
- package/docs/builtin-macros/deserialize/example.md +8 -1416
- package/docs/builtin-macros/deserialize.md +8 -1416
- package/docs/builtin-macros/hash.md +0 -42
- package/docs/builtin-macros/macros-overview/detailed-documentation.md +13 -0
- package/docs/builtin-macros/macros-overview/enum-support.md +30 -0
- package/docs/builtin-macros/macros-overview/interface-support.md +28 -0
- package/docs/builtin-macros/macros-overview/overview.md +36 -0
- package/docs/builtin-macros/macros-overview/type-alias-support.md +62 -0
- package/docs/builtin-macros/macros-overview.md +171 -130
- package/docs/builtin-macros/ord.md +0 -25
- package/docs/builtin-macros/partial-eq.md +0 -84
- package/docs/builtin-macros/partial-ord.md +11 -43
- package/docs/builtin-macros/serialize.md +2 -62
- package/docs/concepts/architecture.md +125 -48
- package/docs/concepts/derive-system/built-in-vs-custom-macros.md +13 -0
- package/docs/concepts/derive-system/overview.md +200 -0
- package/docs/concepts/derive-system.md +171 -97
- package/docs/concepts/how-macros-work.md +89 -37
- package/docs/custom-macros/custom-overview.md +79 -57
- package/docs/custom-macros/rust-setup.md +138 -99
- package/docs/custom-macros/ts-macro-derive/accessing-field-data.md +40 -31
- package/docs/custom-macros/ts-macro-derive/adding-imports.md +14 -11
- package/docs/custom-macros/ts-macro-derive/attribute-options.md +20 -25
- package/docs/custom-macros/ts-macro-derive/complete-example.md +40 -38
- package/docs/custom-macros/ts-macro-derive/deriveinput-structure.md +49 -47
- package/docs/custom-macros/ts-macro-derive/function-signature.md +12 -0
- package/docs/custom-macros/ts-macro-derive/overview.md +9 -7
- package/docs/custom-macros/ts-macro-derive/parsing-input.md +20 -18
- package/docs/custom-macros/ts-macro-derive/returning-errors.md +15 -13
- package/docs/custom-macros/ts-macro-derive.md +322 -228
- package/docs/custom-macros/ts-quote/backtick-template-literals.md +19 -7
- package/docs/custom-macros/ts-quote/comments-and.md +56 -22
- package/docs/custom-macros/ts-quote/complete-example-json-derive-macro.md +89 -98
- package/docs/custom-macros/ts-quote/conditionals-ifif.md +35 -29
- package/docs/custom-macros/ts-quote/identifier-concatenation-content.md +30 -22
- package/docs/custom-macros/ts-quote/iteration-for.md +48 -40
- package/docs/custom-macros/ts-quote/local-constants-let.md +23 -21
- package/docs/custom-macros/ts-quote/match-expressions-match.md +46 -38
- package/docs/custom-macros/ts-quote/overview.md +5 -10
- package/docs/custom-macros/ts-quote/pattern-matching-iflet.md +39 -0
- package/docs/custom-macros/ts-quote/quick-reference.md +50 -129
- package/docs/custom-macros/ts-quote/side-effects-do.md +13 -78
- package/docs/custom-macros/ts-quote/string-interpolation-textexpr.md +36 -0
- package/docs/custom-macros/ts-quote/tsstream-injection-typescript.md +43 -35
- package/docs/custom-macros/ts-quote/while-loops-while.md +31 -23
- package/docs/custom-macros/ts-quote.md +799 -519
- package/docs/getting-started/first-macro.md +61 -32
- package/docs/getting-started/installation.md +109 -66
- package/docs/integration/cli.md +212 -103
- package/docs/integration/configuration.md +114 -71
- package/docs/integration/integration-overview.md +54 -17
- package/docs/integration/mcp-server.md +83 -42
- package/docs/integration/svelte-preprocessor.md +183 -126
- package/docs/integration/typescript-plugin.md +101 -54
- package/docs/integration/vite-plugin.md +116 -76
- package/docs/language-servers/ls-overview.md +37 -21
- package/docs/language-servers/svelte.md +69 -39
- package/docs/language-servers/zed.md +81 -45
- package/docs/roadmap/roadmap.md +75 -53
- package/docs/sections.json +333 -44
- package/package.json +27 -28
package/docs/sections.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"title": "Installation",
|
|
5
5
|
"category": "getting-started",
|
|
6
6
|
"category_title": "Getting Started",
|
|
7
|
-
"path": "getting-started/
|
|
7
|
+
"path": "getting-started/getting-started.md",
|
|
8
8
|
"use_cases": "setup, install, npm, getting started, quick start, init"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
@@ -20,16 +20,39 @@
|
|
|
20
20
|
"title": "How Macros Work",
|
|
21
21
|
"category": "concepts",
|
|
22
22
|
"category_title": "Core Concepts",
|
|
23
|
-
"path": "concepts/
|
|
23
|
+
"path": "concepts/concepts.md",
|
|
24
24
|
"use_cases": "architecture, overview, understanding, basics, fundamentals"
|
|
25
25
|
},
|
|
26
|
+
{
|
|
27
|
+
"id": "derive-system/overview",
|
|
28
|
+
"title": "The Derive System: Overview",
|
|
29
|
+
"category": "concepts",
|
|
30
|
+
"category_title": "Core Concepts",
|
|
31
|
+
"path": "concepts/derive-system/overview.md",
|
|
32
|
+
"use_cases": "@derive, decorator, @derive",
|
|
33
|
+
"parent_id": "derive-system"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "derive-system/built-in-vs-custom-macros",
|
|
37
|
+
"title": "The Derive System: Built-in vs Custom Macros",
|
|
38
|
+
"category": "concepts",
|
|
39
|
+
"category_title": "Core Concepts",
|
|
40
|
+
"path": "concepts/derive-system/built-in-vs-custom-macros.md",
|
|
41
|
+
"use_cases": "@derive, decorator, import macro",
|
|
42
|
+
"parent_id": "derive-system"
|
|
43
|
+
},
|
|
26
44
|
{
|
|
27
45
|
"id": "derive-system",
|
|
28
46
|
"title": "The Derive System",
|
|
29
47
|
"category": "concepts",
|
|
30
48
|
"category_title": "Core Concepts",
|
|
31
49
|
"path": "concepts/derive-system.md",
|
|
32
|
-
"use_cases": "@derive, decorator, annotation, derive macro"
|
|
50
|
+
"use_cases": "@derive, decorator, annotation, derive macro",
|
|
51
|
+
"is_chunked": true,
|
|
52
|
+
"chunk_ids": [
|
|
53
|
+
"derive-system/overview",
|
|
54
|
+
"derive-system/built-in-vs-custom-macros"
|
|
55
|
+
]
|
|
33
56
|
},
|
|
34
57
|
{
|
|
35
58
|
"id": "architecture",
|
|
@@ -39,13 +62,66 @@
|
|
|
39
62
|
"path": "concepts/architecture.md",
|
|
40
63
|
"use_cases": "internals, rust, swc, napi, how it works"
|
|
41
64
|
},
|
|
65
|
+
{
|
|
66
|
+
"id": "macros-overview/overview",
|
|
67
|
+
"title": "Overview: Overview",
|
|
68
|
+
"category": "builtin-macros",
|
|
69
|
+
"category_title": "Built-in Macros",
|
|
70
|
+
"path": "builtin-macros/macros-overview/overview.md",
|
|
71
|
+
"use_cases": "all macros, list, debug, tostring(): string, clone, clone(): t",
|
|
72
|
+
"parent_id": "macros-overview"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "macros-overview/interface-support",
|
|
76
|
+
"title": "Overview: Interface Support",
|
|
77
|
+
"category": "builtin-macros",
|
|
78
|
+
"category_title": "Built-in Macros",
|
|
79
|
+
"path": "builtin-macros/macros-overview/interface-support.md",
|
|
80
|
+
"use_cases": "all macros, list, self",
|
|
81
|
+
"parent_id": "macros-overview"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"id": "macros-overview/enum-support",
|
|
85
|
+
"title": "Overview: Enum Support",
|
|
86
|
+
"category": "builtin-macros",
|
|
87
|
+
"category_title": "Built-in Macros",
|
|
88
|
+
"path": "builtin-macros/macros-overview/enum-support.md",
|
|
89
|
+
"use_cases": "all macros, list",
|
|
90
|
+
"parent_id": "macros-overview"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"id": "macros-overview/type-alias-support",
|
|
94
|
+
"title": "Overview: Type Alias Support",
|
|
95
|
+
"category": "builtin-macros",
|
|
96
|
+
"category_title": "Built-in Macros",
|
|
97
|
+
"path": "builtin-macros/macros-overview/type-alias-support.md",
|
|
98
|
+
"use_cases": "all macros, list",
|
|
99
|
+
"parent_id": "macros-overview"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "macros-overview/detailed-documentation",
|
|
103
|
+
"title": "Overview: Detailed Documentation",
|
|
104
|
+
"category": "builtin-macros",
|
|
105
|
+
"category_title": "Built-in Macros",
|
|
106
|
+
"path": "builtin-macros/macros-overview/detailed-documentation.md",
|
|
107
|
+
"use_cases": "all macros, list",
|
|
108
|
+
"parent_id": "macros-overview"
|
|
109
|
+
},
|
|
42
110
|
{
|
|
43
111
|
"id": "macros-overview",
|
|
44
112
|
"title": "Overview",
|
|
45
113
|
"category": "builtin-macros",
|
|
46
114
|
"category_title": "Built-in Macros",
|
|
47
115
|
"path": "builtin-macros/macros-overview.md",
|
|
48
|
-
"use_cases": "all macros, list, available macros, macro list"
|
|
116
|
+
"use_cases": "all macros, list, available macros, macro list",
|
|
117
|
+
"is_chunked": true,
|
|
118
|
+
"chunk_ids": [
|
|
119
|
+
"macros-overview/overview",
|
|
120
|
+
"macros-overview/interface-support",
|
|
121
|
+
"macros-overview/enum-support",
|
|
122
|
+
"macros-overview/type-alias-support",
|
|
123
|
+
"macros-overview/detailed-documentation"
|
|
124
|
+
]
|
|
49
125
|
},
|
|
50
126
|
{
|
|
51
127
|
"id": "debug",
|
|
@@ -103,46 +179,13 @@
|
|
|
103
179
|
"path": "builtin-macros/partial-ord.md",
|
|
104
180
|
"use_cases": "compareTo, partial ordering, sorting, nullable comparison"
|
|
105
181
|
},
|
|
106
|
-
{
|
|
107
|
-
"id": "serialize/overview",
|
|
108
|
-
"title": "Serialize: Overview",
|
|
109
|
-
"category": "builtin-macros",
|
|
110
|
-
"category_title": "Built-in Macros",
|
|
111
|
-
"path": "builtin-macros/serialize/overview.md",
|
|
112
|
-
"use_cases": "toJSON, serialization, serialize, classnameserialize(value), enumnameserialize(value), enumnameserializewithcontext",
|
|
113
|
-
"parent_id": "serialize"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"id": "serialize/type-specific-serialization",
|
|
117
|
-
"title": "Serialize: Type-Specific Serialization",
|
|
118
|
-
"category": "builtin-macros",
|
|
119
|
-
"category_title": "Built-in Macros",
|
|
120
|
-
"path": "builtin-macros/serialize/type-specific-serialization.md",
|
|
121
|
-
"use_cases": "toJSON, serialization, date, toisostring(), serializewithcontext(ctx)",
|
|
122
|
-
"parent_id": "serialize"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"id": "serialize/example",
|
|
126
|
-
"title": "Serialize: Example",
|
|
127
|
-
"category": "builtin-macros",
|
|
128
|
-
"category_title": "Built-in Macros",
|
|
129
|
-
"path": "builtin-macros/serialize/example.md",
|
|
130
|
-
"use_cases": "toJSON, serialization",
|
|
131
|
-
"parent_id": "serialize"
|
|
132
|
-
},
|
|
133
182
|
{
|
|
134
183
|
"id": "serialize",
|
|
135
184
|
"title": "Serialize",
|
|
136
185
|
"category": "builtin-macros",
|
|
137
186
|
"category_title": "Built-in Macros",
|
|
138
187
|
"path": "builtin-macros/serialize.md",
|
|
139
|
-
"use_cases": "toJSON, serialization, json, api, data transfer"
|
|
140
|
-
"is_chunked": true,
|
|
141
|
-
"chunk_ids": [
|
|
142
|
-
"serialize/overview",
|
|
143
|
-
"serialize/type-specific-serialization",
|
|
144
|
-
"serialize/example"
|
|
145
|
-
]
|
|
188
|
+
"use_cases": "toJSON, serialization, json, api, data transfer"
|
|
146
189
|
},
|
|
147
190
|
{
|
|
148
191
|
"id": "deserialize/overview",
|
|
@@ -210,7 +253,7 @@
|
|
|
210
253
|
"title": "Overview",
|
|
211
254
|
"category": "custom-macros",
|
|
212
255
|
"category_title": "Custom Macros",
|
|
213
|
-
"path": "custom-macros/custom-
|
|
256
|
+
"path": "custom-macros/custom-macros.md",
|
|
214
257
|
"use_cases": "custom, extending, creating macros, own macro"
|
|
215
258
|
},
|
|
216
259
|
{
|
|
@@ -221,13 +264,241 @@
|
|
|
221
264
|
"path": "custom-macros/rust-setup.md",
|
|
222
265
|
"use_cases": "rust, cargo, napi, compilation, building"
|
|
223
266
|
},
|
|
267
|
+
{
|
|
268
|
+
"id": "ts-macro-derive/overview",
|
|
269
|
+
"title": "#[ts_macro_derive]: Overview",
|
|
270
|
+
"category": "custom-macros",
|
|
271
|
+
"category_title": "Custom Macros",
|
|
272
|
+
"path": "custom-macros/ts-macro-derive/overview.md",
|
|
273
|
+
"use_cases": "attribute, proc macro, #[ts_macro_derive]",
|
|
274
|
+
"parent_id": "ts-macro-derive"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"id": "ts-macro-derive/attribute-options",
|
|
278
|
+
"title": "#[ts_macro_derive]: Attribute Options",
|
|
279
|
+
"category": "custom-macros",
|
|
280
|
+
"category_title": "Custom Macros",
|
|
281
|
+
"path": "custom-macros/ts-macro-derive/attribute-options.md",
|
|
282
|
+
"use_cases": "attribute, proc macro, @derive()",
|
|
283
|
+
"parent_id": "ts-macro-derive"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"id": "ts-macro-derive/function-signature",
|
|
287
|
+
"title": "#[ts_macro_derive]: Function Signature",
|
|
288
|
+
"category": "custom-macros",
|
|
289
|
+
"category_title": "Custom Macros",
|
|
290
|
+
"path": "custom-macros/ts-macro-derive/function-signature.md",
|
|
291
|
+
"use_cases": "attribute, proc macro",
|
|
292
|
+
"parent_id": "ts-macro-derive"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"id": "ts-macro-derive/parsing-input",
|
|
296
|
+
"title": "#[ts_macro_derive]: Parsing Input",
|
|
297
|
+
"category": "custom-macros",
|
|
298
|
+
"category_title": "Custom Macros",
|
|
299
|
+
"path": "custom-macros/ts-macro-derive/parsing-input.md",
|
|
300
|
+
"use_cases": "attribute, proc macro, parse_ts_macro_input!",
|
|
301
|
+
"parent_id": "ts-macro-derive"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"id": "ts-macro-derive/deriveinput-structure",
|
|
305
|
+
"title": "#[ts_macro_derive]: DeriveInput Structure",
|
|
306
|
+
"category": "custom-macros",
|
|
307
|
+
"category_title": "Custom Macros",
|
|
308
|
+
"path": "custom-macros/ts-macro-derive/deriveinput-structure.md",
|
|
309
|
+
"use_cases": "attribute, proc macro",
|
|
310
|
+
"parent_id": "ts-macro-derive"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"id": "ts-macro-derive/accessing-field-data",
|
|
314
|
+
"title": "#[ts_macro_derive]: Accessing Field Data",
|
|
315
|
+
"category": "custom-macros",
|
|
316
|
+
"category_title": "Custom Macros",
|
|
317
|
+
"path": "custom-macros/ts-macro-derive/accessing-field-data.md",
|
|
318
|
+
"use_cases": "attribute, proc macro",
|
|
319
|
+
"parent_id": "ts-macro-derive"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"id": "ts-macro-derive/adding-imports",
|
|
323
|
+
"title": "#[ts_macro_derive]: Adding Imports",
|
|
324
|
+
"category": "custom-macros",
|
|
325
|
+
"category_title": "Custom Macros",
|
|
326
|
+
"path": "custom-macros/ts-macro-derive/adding-imports.md",
|
|
327
|
+
"use_cases": "attribute, proc macro, add_import, tsstream",
|
|
328
|
+
"parent_id": "ts-macro-derive"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"id": "ts-macro-derive/returning-errors",
|
|
332
|
+
"title": "#[ts_macro_derive]: Returning Errors",
|
|
333
|
+
"category": "custom-macros",
|
|
334
|
+
"category_title": "Custom Macros",
|
|
335
|
+
"path": "custom-macros/ts-macro-derive/returning-errors.md",
|
|
336
|
+
"use_cases": "attribute, proc macro, macroforgeerror",
|
|
337
|
+
"parent_id": "ts-macro-derive"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"id": "ts-macro-derive/complete-example",
|
|
341
|
+
"title": "#[ts_macro_derive]: Complete Example",
|
|
342
|
+
"category": "custom-macros",
|
|
343
|
+
"category_title": "Custom Macros",
|
|
344
|
+
"path": "custom-macros/ts-macro-derive/complete-example.md",
|
|
345
|
+
"use_cases": "attribute, proc macro",
|
|
346
|
+
"parent_id": "ts-macro-derive"
|
|
347
|
+
},
|
|
224
348
|
{
|
|
225
349
|
"id": "ts-macro-derive",
|
|
226
350
|
"title": "#[ts_macro_derive]",
|
|
227
351
|
"category": "custom-macros",
|
|
228
352
|
"category_title": "Custom Macros",
|
|
229
353
|
"path": "custom-macros/ts-macro-derive.md",
|
|
230
|
-
"use_cases": "attribute, proc macro, derive attribute, rust macro"
|
|
354
|
+
"use_cases": "attribute, proc macro, derive attribute, rust macro",
|
|
355
|
+
"is_chunked": true,
|
|
356
|
+
"chunk_ids": [
|
|
357
|
+
"ts-macro-derive/overview",
|
|
358
|
+
"ts-macro-derive/attribute-options",
|
|
359
|
+
"ts-macro-derive/function-signature",
|
|
360
|
+
"ts-macro-derive/parsing-input",
|
|
361
|
+
"ts-macro-derive/deriveinput-structure",
|
|
362
|
+
"ts-macro-derive/accessing-field-data",
|
|
363
|
+
"ts-macro-derive/adding-imports",
|
|
364
|
+
"ts-macro-derive/returning-errors",
|
|
365
|
+
"ts-macro-derive/complete-example"
|
|
366
|
+
]
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"id": "ts-quote/overview",
|
|
370
|
+
"title": "Template Syntax: Overview",
|
|
371
|
+
"category": "custom-macros",
|
|
372
|
+
"category_title": "Custom Macros",
|
|
373
|
+
"path": "custom-macros/ts-quote/overview.md",
|
|
374
|
+
"use_cases": "ts_quote, template, macroforge_ts_quote, ts_template!, body!",
|
|
375
|
+
"parent_id": "ts-quote"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"id": "ts-quote/quick-reference",
|
|
379
|
+
"title": "Template Syntax: Quick Reference",
|
|
380
|
+
"category": "custom-macros",
|
|
381
|
+
"category_title": "Custom Macros",
|
|
382
|
+
"path": "custom-macros/ts-quote/quick-reference.md",
|
|
383
|
+
"use_cases": "ts_quote, template, @{expr}, {| content |}, {|get@{name}|}, getuser",
|
|
384
|
+
"parent_id": "ts-quote"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"id": "ts-quote/identifier-concatenation-content",
|
|
388
|
+
"title": "Template Syntax: Identifier Concatenation: `{| content |}`",
|
|
389
|
+
"category": "custom-macros",
|
|
390
|
+
"category_title": "Custom Macros",
|
|
391
|
+
"path": "custom-macros/ts-quote/identifier-concatenation-content.md",
|
|
392
|
+
"use_cases": "ts_quote, template, {| content |}, getuser, setname, {| |}",
|
|
393
|
+
"parent_id": "ts-quote"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"id": "ts-quote/comments-and",
|
|
397
|
+
"title": "Template Syntax: Comments: `{> \"...\" <}` and `{>> \"...\" <<}`",
|
|
398
|
+
"category": "custom-macros",
|
|
399
|
+
"category_title": "Custom Macros",
|
|
400
|
+
"path": "custom-macros/ts-quote/comments-and.md",
|
|
401
|
+
"use_cases": "ts_quote, template, {> \"...\" <}, {>> \"...\" <<}, {> \"comment\" <}",
|
|
402
|
+
"parent_id": "ts-quote"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"id": "ts-quote/string-interpolation-textexpr",
|
|
406
|
+
"title": "Template Syntax: String Interpolation: `\"text @{expr}\"`",
|
|
407
|
+
"category": "custom-macros",
|
|
408
|
+
"category_title": "Custom Macros",
|
|
409
|
+
"path": "custom-macros/ts-quote/string-interpolation-textexpr.md",
|
|
410
|
+
"use_cases": "ts_quote, template, \"text @{expr}\", format!()",
|
|
411
|
+
"parent_id": "ts-quote"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"id": "ts-quote/backtick-template-literals",
|
|
415
|
+
"title": "Template Syntax: Backtick Template Literals: `\"'^...^'\"`",
|
|
416
|
+
"category": "custom-macros",
|
|
417
|
+
"category_title": "Custom Macros",
|
|
418
|
+
"path": "custom-macros/ts-quote/backtick-template-literals.md",
|
|
419
|
+
"use_cases": "ts_quote, template, \"'^...^'\", '^...^', ${\"${}\"}",
|
|
420
|
+
"parent_id": "ts-quote"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"id": "ts-quote/conditionals-ifif",
|
|
424
|
+
"title": "Template Syntax: Conditionals: `{#if}...{/if}`",
|
|
425
|
+
"category": "custom-macros",
|
|
426
|
+
"category_title": "Custom Macros",
|
|
427
|
+
"path": "custom-macros/ts-quote/conditionals-ifif.md",
|
|
428
|
+
"use_cases": "ts_quote, template, {#if}...{/if}",
|
|
429
|
+
"parent_id": "ts-quote"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"id": "ts-quote/pattern-matching-iflet",
|
|
433
|
+
"title": "Template Syntax: Pattern Matching: `{#if let}`",
|
|
434
|
+
"category": "custom-macros",
|
|
435
|
+
"category_title": "Custom Macros",
|
|
436
|
+
"path": "custom-macros/ts-quote/pattern-matching-iflet.md",
|
|
437
|
+
"use_cases": "ts_quote, template, {#if let}, if let, option, result",
|
|
438
|
+
"parent_id": "ts-quote"
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"id": "ts-quote/match-expressions-match",
|
|
442
|
+
"title": "Template Syntax: Match Expressions: `{#match}`",
|
|
443
|
+
"category": "custom-macros",
|
|
444
|
+
"category_title": "Custom Macros",
|
|
445
|
+
"path": "custom-macros/ts-quote/match-expressions-match.md",
|
|
446
|
+
"use_cases": "ts_quote, template, {#match}, match, \npublic field: string;\n",
|
|
447
|
+
"parent_id": "ts-quote"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"id": "ts-quote/iteration-for",
|
|
451
|
+
"title": "Template Syntax: Iteration: `{#for}`",
|
|
452
|
+
"category": "custom-macros",
|
|
453
|
+
"category_title": "Custom Macros",
|
|
454
|
+
"path": "custom-macros/ts-quote/iteration-for.md",
|
|
455
|
+
"use_cases": "ts_quote, template, {#for}",
|
|
456
|
+
"parent_id": "ts-quote"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"id": "ts-quote/while-loops-while",
|
|
460
|
+
"title": "Template Syntax: While Loops: `{#while}`",
|
|
461
|
+
"category": "custom-macros",
|
|
462
|
+
"category_title": "Custom Macros",
|
|
463
|
+
"path": "custom-macros/ts-quote/while-loops-while.md",
|
|
464
|
+
"use_cases": "ts_quote, template, {#while}, while",
|
|
465
|
+
"parent_id": "ts-quote"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"id": "ts-quote/local-constants-let",
|
|
469
|
+
"title": "Template Syntax: Local Constants: `{$let}`",
|
|
470
|
+
"category": "custom-macros",
|
|
471
|
+
"category_title": "Custom Macros",
|
|
472
|
+
"path": "custom-macros/ts-quote/local-constants-let.md",
|
|
473
|
+
"use_cases": "ts_quote, template, {$let}",
|
|
474
|
+
"parent_id": "ts-quote"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"id": "ts-quote/side-effects-do",
|
|
478
|
+
"title": "Template Syntax: Side Effects: `{$do}`",
|
|
479
|
+
"category": "custom-macros",
|
|
480
|
+
"category_title": "Custom Macros",
|
|
481
|
+
"path": "custom-macros/ts-quote/side-effects-do.md",
|
|
482
|
+
"use_cases": "ts_quote, template, {$do}",
|
|
483
|
+
"parent_id": "ts-quote"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"id": "ts-quote/tsstream-injection-typescript",
|
|
487
|
+
"title": "Template Syntax: TsStream Injection: `{$typescript}`",
|
|
488
|
+
"category": "custom-macros",
|
|
489
|
+
"category_title": "Custom Macros",
|
|
490
|
+
"path": "custom-macros/ts-quote/tsstream-injection-typescript.md",
|
|
491
|
+
"use_cases": "ts_quote, template, {$typescript}, add_import()",
|
|
492
|
+
"parent_id": "ts-quote"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"id": "ts-quote/complete-example-json-derive-macro",
|
|
496
|
+
"title": "Template Syntax: Complete Example: JSON Derive Macro",
|
|
497
|
+
"category": "custom-macros",
|
|
498
|
+
"category_title": "Custom Macros",
|
|
499
|
+
"path": "custom-macros/ts-quote/complete-example-json-derive-macro.md",
|
|
500
|
+
"use_cases": "ts_quote, template, ts_template!",
|
|
501
|
+
"parent_id": "ts-quote"
|
|
231
502
|
},
|
|
232
503
|
{
|
|
233
504
|
"id": "ts-quote",
|
|
@@ -235,14 +506,32 @@
|
|
|
235
506
|
"category": "custom-macros",
|
|
236
507
|
"category_title": "Custom Macros",
|
|
237
508
|
"path": "custom-macros/ts-quote.md",
|
|
238
|
-
"use_cases": "ts_quote, template, code generation, interpolation"
|
|
509
|
+
"use_cases": "ts_quote, template, code generation, interpolation",
|
|
510
|
+
"is_chunked": true,
|
|
511
|
+
"chunk_ids": [
|
|
512
|
+
"ts-quote/overview",
|
|
513
|
+
"ts-quote/quick-reference",
|
|
514
|
+
"ts-quote/identifier-concatenation-content",
|
|
515
|
+
"ts-quote/comments-and",
|
|
516
|
+
"ts-quote/string-interpolation-textexpr",
|
|
517
|
+
"ts-quote/backtick-template-literals",
|
|
518
|
+
"ts-quote/conditionals-ifif",
|
|
519
|
+
"ts-quote/pattern-matching-iflet",
|
|
520
|
+
"ts-quote/match-expressions-match",
|
|
521
|
+
"ts-quote/iteration-for",
|
|
522
|
+
"ts-quote/while-loops-while",
|
|
523
|
+
"ts-quote/local-constants-let",
|
|
524
|
+
"ts-quote/side-effects-do",
|
|
525
|
+
"ts-quote/tsstream-injection-typescript",
|
|
526
|
+
"ts-quote/complete-example-json-derive-macro"
|
|
527
|
+
]
|
|
239
528
|
},
|
|
240
529
|
{
|
|
241
530
|
"id": "integration-overview",
|
|
242
531
|
"title": "Overview",
|
|
243
532
|
"category": "integration",
|
|
244
533
|
"category_title": "Integration",
|
|
245
|
-
"path": "integration/integration
|
|
534
|
+
"path": "integration/integration.md",
|
|
246
535
|
"use_cases": "setup, integration, tools, ecosystem"
|
|
247
536
|
},
|
|
248
537
|
{
|
|
@@ -298,7 +587,7 @@
|
|
|
298
587
|
"title": "Overview",
|
|
299
588
|
"category": "language-servers",
|
|
300
589
|
"category_title": "Language Servers",
|
|
301
|
-
"path": "language-servers/
|
|
590
|
+
"path": "language-servers/language-servers.md",
|
|
302
591
|
"use_cases": "lsp, language server, editor support"
|
|
303
592
|
},
|
|
304
593
|
{
|
|
@@ -322,7 +611,7 @@
|
|
|
322
611
|
"title": "Overview",
|
|
323
612
|
"category": "api",
|
|
324
613
|
"category_title": "API Reference",
|
|
325
|
-
"path": "api/api
|
|
614
|
+
"path": "api/api.md",
|
|
326
615
|
"use_cases": "api, functions, exports, programmatic"
|
|
327
616
|
},
|
|
328
617
|
{
|
package/package.json
CHANGED
|
@@ -1,41 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@macroforge/mcp-server",
|
|
3
|
-
"version": "0.1.40",
|
|
4
|
-
"description": "MCP server for Macroforge documentation and code analysis",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
2
|
"bin": {
|
|
8
3
|
"macroforge-mcp": "./dist/index.js"
|
|
9
4
|
},
|
|
10
|
-
"repository": {
|
|
11
|
-
"type": "git",
|
|
12
|
-
"url": "git+https://github.com/rymskip/macroforge-ts.git",
|
|
13
|
-
"directory": "packages/mcp-server"
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"build": "tsc && chmod +x dist/index.js",
|
|
17
|
-
"build:docs": "node scripts/extract-docs.cjs",
|
|
18
|
-
"clean": "rm -rf dist",
|
|
19
|
-
"cleanbuild": "npm run clean && npm run build",
|
|
20
|
-
"dev": "npx @modelcontextprotocol/inspector dist/index.js",
|
|
21
|
-
"start": "node dist/index.js",
|
|
22
|
-
"test": "node --test tests/**/*.test.js"
|
|
23
|
-
},
|
|
24
5
|
"dependencies": {
|
|
25
6
|
"@modelcontextprotocol/sdk": "^1.11.1"
|
|
26
7
|
},
|
|
8
|
+
"description": "MCP server for Macroforge documentation and code analysis",
|
|
27
9
|
"devDependencies": {
|
|
28
10
|
"@types/node": "^22.0.0",
|
|
29
11
|
"typescript": "^5.7.0"
|
|
30
12
|
},
|
|
31
|
-
"peerDependencies": {
|
|
32
|
-
"macroforge": "^0.1.40"
|
|
33
|
-
},
|
|
34
|
-
"peerDependenciesMeta": {
|
|
35
|
-
"macroforge": {
|
|
36
|
-
"optional": true
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
13
|
"files": [
|
|
40
14
|
"dist",
|
|
41
15
|
"docs"
|
|
@@ -47,5 +21,30 @@
|
|
|
47
21
|
"macros",
|
|
48
22
|
"documentation"
|
|
49
23
|
],
|
|
50
|
-
"license": "MIT"
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"main": "dist/index.js",
|
|
26
|
+
"name": "@macroforge/mcp-server",
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"macroforge": "^0.1.48"
|
|
29
|
+
},
|
|
30
|
+
"peerDependenciesMeta": {
|
|
31
|
+
"macroforge": {
|
|
32
|
+
"optional": true
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/macroforge-ts/mcp-server.git"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "tsc && chmod +x dist/index.js",
|
|
41
|
+
"build:docs": "rust-script scripts/extract-docs.rs",
|
|
42
|
+
"clean": "rm -rf dist",
|
|
43
|
+
"cleanbuild": "npm run clean && npm run build",
|
|
44
|
+
"dev": "npx @modelcontextprotocol/inspector dist/index.js",
|
|
45
|
+
"start": "node dist/index.js",
|
|
46
|
+
"test": "node --test tests/**/*.test.js"
|
|
47
|
+
},
|
|
48
|
+
"type": "module",
|
|
49
|
+
"version": "0.1.49"
|
|
51
50
|
}
|