@macroforge/mcp-server 0.1.33 → 0.1.35

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.
Files changed (50) hide show
  1. package/README.md +68 -0
  2. package/dist/index.d.ts +32 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +46 -1
  5. package/dist/index.js.map +1 -1
  6. package/dist/tools/docs-loader.d.ts +133 -5
  7. package/dist/tools/docs-loader.d.ts.map +1 -1
  8. package/dist/tools/docs-loader.js +131 -15
  9. package/dist/tools/docs-loader.js.map +1 -1
  10. package/dist/tools/index.d.ts +48 -1
  11. package/dist/tools/index.d.ts.map +1 -1
  12. package/dist/tools/index.js +163 -14
  13. package/dist/tools/index.js.map +1 -1
  14. package/docs/api/api-overview.md +24 -46
  15. package/docs/api/expand-sync.md +24 -51
  16. package/docs/api/native-plugin.md +24 -56
  17. package/docs/api/position-mapper.md +34 -76
  18. package/docs/api/transform-sync.md +27 -59
  19. package/docs/builtin-macros/clone.md +45 -104
  20. package/docs/builtin-macros/debug.md +33 -104
  21. package/docs/builtin-macros/default.md +78 -114
  22. package/docs/builtin-macros/deserialize.md +93 -273
  23. package/docs/builtin-macros/hash.md +58 -100
  24. package/docs/builtin-macros/macros-overview.md +42 -103
  25. package/docs/builtin-macros/ord.md +65 -133
  26. package/docs/builtin-macros/partial-eq.md +53 -179
  27. package/docs/builtin-macros/partial-ord.md +67 -159
  28. package/docs/builtin-macros/serialize.md +64 -194
  29. package/docs/concepts/architecture.md +40 -99
  30. package/docs/concepts/derive-system.md +129 -125
  31. package/docs/concepts/how-macros-work.md +52 -84
  32. package/docs/custom-macros/custom-overview.md +17 -39
  33. package/docs/custom-macros/rust-setup.md +22 -55
  34. package/docs/custom-macros/ts-macro-derive.md +43 -107
  35. package/docs/custom-macros/ts-quote.md +177 -507
  36. package/docs/getting-started/first-macro.md +108 -33
  37. package/docs/getting-started/installation.md +32 -73
  38. package/docs/integration/cli.md +70 -156
  39. package/docs/integration/configuration.md +32 -75
  40. package/docs/integration/integration-overview.md +16 -55
  41. package/docs/integration/mcp-server.md +30 -69
  42. package/docs/integration/svelte-preprocessor.md +60 -83
  43. package/docs/integration/typescript-plugin.md +32 -74
  44. package/docs/integration/vite-plugin.md +30 -79
  45. package/docs/language-servers/ls-overview.md +22 -46
  46. package/docs/language-servers/svelte.md +30 -69
  47. package/docs/language-servers/zed.md +34 -72
  48. package/docs/roadmap/roadmap.md +54 -130
  49. package/docs/sections.json +3 -262
  50. package/package.json +2 -2
@@ -111,106 +111,13 @@
111
111
  "path": "builtin-macros/serialize.md",
112
112
  "use_cases": "toJSON, serialization, json, api, data transfer"
113
113
  },
114
- {
115
- "id": "deserialize/overview",
116
- "title": "Deserialize: Overview",
117
- "category": "builtin-macros",
118
- "category_title": "Built-in Macros",
119
- "path": "builtin-macros/deserialize/overview.md",
120
- "use_cases": "fromJSON, deserialization, deserialize, fromjson()",
121
- "parent_id": "deserialize"
122
- },
123
- {
124
- "id": "deserialize/runtime-validation",
125
- "title": "Deserialize: Runtime Validation",
126
- "category": "builtin-macros",
127
- "category_title": "Built-in Macros",
128
- "path": "builtin-macros/deserialize/runtime-validation.md",
129
- "use_cases": "fromJSON, deserialization",
130
- "parent_id": "deserialize"
131
- },
132
- {
133
- "id": "deserialize/serde-options",
134
- "title": "Deserialize: Serde Options",
135
- "category": "builtin-macros",
136
- "category_title": "Built-in Macros",
137
- "path": "builtin-macros/deserialize/serde-options.md",
138
- "use_cases": "fromJSON, deserialization, @serde",
139
- "parent_id": "deserialize"
140
- },
141
- {
142
- "id": "deserialize/all-options",
143
- "title": "Deserialize: All Options",
144
- "category": "builtin-macros",
145
- "category_title": "Built-in Macros",
146
- "path": "builtin-macros/deserialize/all-options.md",
147
- "use_cases": "fromJSON, deserialization, rename_all, string, deny_unknown_fields, boolean",
148
- "parent_id": "deserialize"
149
- },
150
- {
151
- "id": "deserialize/interface-support",
152
- "title": "Deserialize: Interface Support",
153
- "category": "builtin-macros",
154
- "category_title": "Built-in Macros",
155
- "path": "builtin-macros/deserialize/interface-support.md",
156
- "use_cases": "fromJSON, deserialization, fromjson",
157
- "parent_id": "deserialize"
158
- },
159
- {
160
- "id": "deserialize/enum-support",
161
- "title": "Deserialize: Enum Support",
162
- "category": "builtin-macros",
163
- "category_title": "Built-in Macros",
164
- "path": "builtin-macros/deserialize/enum-support.md",
165
- "use_cases": "fromJSON, deserialization, fromjson",
166
- "parent_id": "deserialize"
167
- },
168
- {
169
- "id": "deserialize/type-alias-support",
170
- "title": "Deserialize: Type Alias Support",
171
- "category": "builtin-macros",
172
- "category_title": "Built-in Macros",
173
- "path": "builtin-macros/deserialize/type-alias-support.md",
174
- "use_cases": "fromJSON, deserialization",
175
- "parent_id": "deserialize"
176
- },
177
- {
178
- "id": "deserialize/combining-with-serialize",
179
- "title": "Deserialize: Combining with Serialize",
180
- "category": "builtin-macros",
181
- "category_title": "Built-in Macros",
182
- "path": "builtin-macros/deserialize/combining-with-serialize.md",
183
- "use_cases": "fromJSON, deserialization",
184
- "parent_id": "deserialize"
185
- },
186
- {
187
- "id": "deserialize/error-handling",
188
- "title": "Deserialize: Error Handling",
189
- "category": "builtin-macros",
190
- "category_title": "Built-in Macros",
191
- "path": "builtin-macros/deserialize/error-handling.md",
192
- "use_cases": "fromJSON, deserialization",
193
- "parent_id": "deserialize"
194
- },
195
114
  {
196
115
  "id": "deserialize",
197
116
  "title": "Deserialize",
198
117
  "category": "builtin-macros",
199
118
  "category_title": "Built-in Macros",
200
119
  "path": "builtin-macros/deserialize.md",
201
- "use_cases": "fromJSON, deserialization, parsing, validation, json",
202
- "is_chunked": true,
203
- "chunk_ids": [
204
- "deserialize/overview",
205
- "deserialize/runtime-validation",
206
- "deserialize/serde-options",
207
- "deserialize/all-options",
208
- "deserialize/interface-support",
209
- "deserialize/enum-support",
210
- "deserialize/type-alias-support",
211
- "deserialize/combining-with-serialize",
212
- "deserialize/error-handling"
213
- ]
120
+ "use_cases": "fromJSON, deserialization, parsing, validation, json"
214
121
  },
215
122
  {
216
123
  "id": "custom-overview",
@@ -228,168 +135,13 @@
228
135
  "path": "custom-macros/rust-setup.md",
229
136
  "use_cases": "rust, cargo, napi, compilation, building"
230
137
  },
231
- {
232
- "id": "ts-macro-derive/overview",
233
- "title": "#[ts_macro_derive]: Overview",
234
- "category": "custom-macros",
235
- "category_title": "Custom Macros",
236
- "path": "custom-macros/ts-macro-derive/overview.md",
237
- "use_cases": "attribute, proc macro, #[ts_macro_derive]",
238
- "parent_id": "ts-macro-derive"
239
- },
240
- {
241
- "id": "ts-macro-derive/attribute-options",
242
- "title": "#[ts_macro_derive]: Attribute Options",
243
- "category": "custom-macros",
244
- "category_title": "Custom Macros",
245
- "path": "custom-macros/ts-macro-derive/attribute-options.md",
246
- "use_cases": "attribute, proc macro, @derive()",
247
- "parent_id": "ts-macro-derive"
248
- },
249
- {
250
- "id": "ts-macro-derive/parsing-input",
251
- "title": "#[ts_macro_derive]: Parsing Input",
252
- "category": "custom-macros",
253
- "category_title": "Custom Macros",
254
- "path": "custom-macros/ts-macro-derive/parsing-input.md",
255
- "use_cases": "attribute, proc macro, parse_ts_macro_input!",
256
- "parent_id": "ts-macro-derive"
257
- },
258
- {
259
- "id": "ts-macro-derive/deriveinput-structure",
260
- "title": "#[ts_macro_derive]: DeriveInput Structure",
261
- "category": "custom-macros",
262
- "category_title": "Custom Macros",
263
- "path": "custom-macros/ts-macro-derive/deriveinput-structure.md",
264
- "use_cases": "attribute, proc macro",
265
- "parent_id": "ts-macro-derive"
266
- },
267
- {
268
- "id": "ts-macro-derive/accessing-field-data",
269
- "title": "#[ts_macro_derive]: Accessing Field Data",
270
- "category": "custom-macros",
271
- "category_title": "Custom Macros",
272
- "path": "custom-macros/ts-macro-derive/accessing-field-data.md",
273
- "use_cases": "attribute, proc macro",
274
- "parent_id": "ts-macro-derive"
275
- },
276
- {
277
- "id": "ts-macro-derive/adding-imports",
278
- "title": "#[ts_macro_derive]: Adding Imports",
279
- "category": "custom-macros",
280
- "category_title": "Custom Macros",
281
- "path": "custom-macros/ts-macro-derive/adding-imports.md",
282
- "use_cases": "attribute, proc macro, add_import, tsstream",
283
- "parent_id": "ts-macro-derive"
284
- },
285
- {
286
- "id": "ts-macro-derive/returning-errors",
287
- "title": "#[ts_macro_derive]: Returning Errors",
288
- "category": "custom-macros",
289
- "category_title": "Custom Macros",
290
- "path": "custom-macros/ts-macro-derive/returning-errors.md",
291
- "use_cases": "attribute, proc macro, macroforgeerror",
292
- "parent_id": "ts-macro-derive"
293
- },
294
- {
295
- "id": "ts-macro-derive/complete-example",
296
- "title": "#[ts_macro_derive]: Complete Example",
297
- "category": "custom-macros",
298
- "category_title": "Custom Macros",
299
- "path": "custom-macros/ts-macro-derive/complete-example.md",
300
- "use_cases": "attribute, proc macro",
301
- "parent_id": "ts-macro-derive"
302
- },
303
138
  {
304
139
  "id": "ts-macro-derive",
305
140
  "title": "#[ts_macro_derive]",
306
141
  "category": "custom-macros",
307
142
  "category_title": "Custom Macros",
308
143
  "path": "custom-macros/ts-macro-derive.md",
309
- "use_cases": "attribute, proc macro, derive attribute, rust macro",
310
- "is_chunked": true,
311
- "chunk_ids": [
312
- "ts-macro-derive/overview",
313
- "ts-macro-derive/attribute-options",
314
- "ts-macro-derive/parsing-input",
315
- "ts-macro-derive/deriveinput-structure",
316
- "ts-macro-derive/accessing-field-data",
317
- "ts-macro-derive/adding-imports",
318
- "ts-macro-derive/returning-errors",
319
- "ts-macro-derive/complete-example"
320
- ]
321
- },
322
- {
323
- "id": "ts-quote/overview",
324
- "title": "Template Syntax: Overview",
325
- "category": "custom-macros",
326
- "category_title": "Custom Macros",
327
- "path": "custom-macros/ts-quote/overview.md",
328
- "use_cases": "ts_quote, template, macroforge_ts_quote, ts_template!, body!",
329
- "parent_id": "ts-quote"
330
- },
331
- {
332
- "id": "ts-quote/quick-reference",
333
- "title": "Template Syntax: Quick Reference",
334
- "category": "custom-macros",
335
- "category_title": "Custom Macros",
336
- "path": "custom-macros/ts-quote/quick-reference.md",
337
- "use_cases": "ts_quote, template, @{expr}, getuser",
338
- "parent_id": "ts-quote"
339
- },
340
- {
341
- "id": "ts-quote/interpolation-expr",
342
- "title": "Template Syntax: Interpolation: `@{expr}`",
343
- "category": "custom-macros",
344
- "category_title": "Custom Macros",
345
- "path": "custom-macros/ts-quote/interpolation-expr.md",
346
- "use_cases": "ts_quote, template, @{expr}, \n\n**generates:**\n\n",
347
- "parent_id": "ts-quote"
348
- },
349
- {
350
- "id": "ts-quote/iteration-for",
351
- "title": "Template Syntax: Iteration: `{#for}`",
352
- "category": "custom-macros",
353
- "category_title": "Custom Macros",
354
- "path": "custom-macros/ts-quote/iteration-for.md",
355
- "use_cases": "ts_quote, template, {#for}, \n\n**generates:**\n\n",
356
- "parent_id": "ts-quote"
357
- },
358
- {
359
- "id": "ts-quote/while-loops-while",
360
- "title": "Template Syntax: While Loops: `{#while}`",
361
- "category": "custom-macros",
362
- "category_title": "Custom Macros",
363
- "path": "custom-macros/ts-quote/while-loops-while.md",
364
- "use_cases": "ts_quote, template, {#while}, while",
365
- "parent_id": "ts-quote"
366
- },
367
- {
368
- "id": "ts-quote/local-constants-let",
369
- "title": "Template Syntax: Local Constants: `{$let}`",
370
- "category": "custom-macros",
371
- "category_title": "Custom Macros",
372
- "path": "custom-macros/ts-quote/local-constants-let.md",
373
- "use_cases": "ts_quote, template, {$let}, :\n\n",
374
- "parent_id": "ts-quote"
375
- },
376
- {
377
- "id": "ts-quote/side-effects-do",
378
- "title": "Template Syntax: Side Effects: `{$do}`",
379
- "category": "custom-macros",
380
- "category_title": "Custom Macros",
381
- "path": "custom-macros/ts-quote/side-effects-do.md",
382
- "use_cases": "ts_quote, template, {$do}",
383
- "parent_id": "ts-quote"
384
- },
385
- {
386
- "id": "ts-quote/complete-example-json-derive-macro",
387
- "title": "Template Syntax: Complete Example: JSON Derive Macro",
388
- "category": "custom-macros",
389
- "category_title": "Custom Macros",
390
- "path": "custom-macros/ts-quote/complete-example-json-derive-macro.md",
391
- "use_cases": "ts_quote, template, ts_template!",
392
- "parent_id": "ts-quote"
144
+ "use_cases": "attribute, proc macro, derive attribute, rust macro"
393
145
  },
394
146
  {
395
147
  "id": "ts-quote",
@@ -397,18 +149,7 @@
397
149
  "category": "custom-macros",
398
150
  "category_title": "Custom Macros",
399
151
  "path": "custom-macros/ts-quote.md",
400
- "use_cases": "ts_quote, template, code generation, interpolation",
401
- "is_chunked": true,
402
- "chunk_ids": [
403
- "ts-quote/overview",
404
- "ts-quote/quick-reference",
405
- "ts-quote/interpolation-expr",
406
- "ts-quote/iteration-for",
407
- "ts-quote/while-loops-while",
408
- "ts-quote/local-constants-let",
409
- "ts-quote/side-effects-do",
410
- "ts-quote/complete-example-json-derive-macro"
411
- ]
152
+ "use_cases": "ts_quote, template, code generation, interpolation"
412
153
  },
413
154
  {
414
155
  "id": "integration-overview",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@macroforge/mcp-server",
3
- "version": "0.1.33",
3
+ "version": "0.1.35",
4
4
  "description": "MCP server for Macroforge documentation and code analysis",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -29,7 +29,7 @@
29
29
  "typescript": "^5.7.0"
30
30
  },
31
31
  "peerDependencies": {
32
- "macroforge": "^0.1.33"
32
+ "macroforge": "^0.1.35"
33
33
  },
34
34
  "peerDependenciesMeta": {
35
35
  "macroforge": {