@macroforge/mcp-server 0.1.39 → 0.1.42
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/docs/api/api-overview.md +32 -32
- package/docs/api/expand-sync.md +30 -30
- package/docs/api/native-plugin.md +38 -38
- package/docs/api/position-mapper.md +18 -18
- package/docs/api/transform-sync.md +31 -31
- package/docs/builtin-macros/default.md +6 -6
- package/docs/builtin-macros/macros-overview.md +84 -84
- package/docs/builtin-macros/partial-ord.md +18 -20
- package/docs/concepts/architecture.md +16 -16
- package/docs/concepts/derive-system.md +89 -68
- package/docs/concepts/how-macros-work.md +13 -12
- package/docs/custom-macros/custom-overview.md +36 -36
- package/docs/custom-macros/rust-setup.md +71 -71
- package/docs/custom-macros/ts-macro-derive.md +167 -167
- package/docs/custom-macros/ts-quote.md +347 -347
- package/docs/getting-started/first-macro.md +57 -55
- package/docs/getting-started/installation.md +34 -35
- package/docs/integration/cli.md +43 -43
- package/docs/integration/configuration.md +41 -41
- package/docs/integration/integration-overview.md +4 -4
- package/docs/integration/mcp-server.md +22 -22
- package/docs/integration/svelte-preprocessor.md +87 -87
- package/docs/integration/typescript-plugin.md +23 -24
- package/docs/integration/vite-plugin.md +40 -40
- package/docs/language-servers/svelte.md +15 -16
- package/docs/language-servers/zed.md +14 -15
- package/package.json +2 -2
|
@@ -3,30 +3,30 @@
|
|
|
3
3
|
**Developer Installation Required These extensions are not yet in the Zed extension registry. You'll need to install them as developer extensions. ## Available Extensions
|
|
4
4
|
| Extension | Description | Location |
|
|
5
5
|
| --- | --- | --- |
|
|
6
|
-
|
|
|
7
|
-
|
|
|
6
|
+
| vtsls-macroforge | VTSLS with macroforge support for TypeScript | crates/extensions/vtsls-macroforge |
|
|
7
|
+
| svelte-macroforge | Svelte language support with macroforge | crates/extensions/svelte-macroforge |
|
|
8
8
|
## Installation
|
|
9
9
|
### 1. Clone the Repository
|
|
10
10
|
```
|
|
11
|
-
git
|
|
12
|
-
cd
|
|
11
|
+
git clone https://github.com/rymskip/macroforge-ts.git
|
|
12
|
+
cd macroforge-ts
|
|
13
13
|
``` ### 2. Build the Extension
|
|
14
14
|
Build the extension you want to use:
|
|
15
15
|
```
|
|
16
|
-
|
|
17
|
-
cd
|
|
16
|
+
# For VTSLS (TypeScript)
|
|
17
|
+
cd crates/extensions/vtsls-macroforge
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
cd
|
|
19
|
+
# Or for Svelte
|
|
20
|
+
cd crates/extensions/svelte-macroforge
|
|
21
21
|
``` ### 3. Install as Dev Extension in Zed
|
|
22
22
|
In Zed, open the command palette and run **zed: install dev extension**, then select the extension directory.
|
|
23
23
|
Alternatively, symlink the extension to your Zed extensions directory:
|
|
24
24
|
```
|
|
25
|
-
|
|
26
|
-
ln
|
|
25
|
+
# macOS
|
|
26
|
+
ln -s /path/to/macroforge-ts/crates/extensions/vtsls-macroforge ~/Library/Application\\ Support/Zed/extensions/installed/vtsls-macroforge
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
ln
|
|
28
|
+
# Linux
|
|
29
|
+
ln -s /path/to/macroforge-ts/crates/extensions/vtsls-macroforge ~/.config/zed/extensions/installed/vtsls-macroforge
|
|
30
30
|
``` ## vtsls-macroforge
|
|
31
31
|
This extension wraps [VTSLS](https://github.com/yioneko/vtsls) (a TypeScript language server) with macroforge integration. It provides:
|
|
32
32
|
- Full TypeScript language features
|
|
@@ -34,7 +34,7 @@ ln -s /path/to/macroforge-ts/crates/extensions/vtsls-macroforge ~/.config/zed/ex
|
|
|
34
34
|
- Accurate error positions in original source
|
|
35
35
|
- Completions for macro-generated methods
|
|
36
36
|
## svelte-macroforge
|
|
37
|
-
This extension provides Svelte support using the
|
|
37
|
+
This extension provides Svelte support using the **<code class="shiki-inline"><span class="line"><span style="--shiki-dark:#E1E4E8;--shiki-light:#24292E">@macroforge<span style="--shiki-dark:#F97583;--shiki-light:#D73A49">/<span style="--shiki-dark:#E1E4E8;--shiki-light:#24292E">svelte<span style="--shiki-dark:#F97583;--shiki-light:#D73A49">-<span style="--shiki-dark:#E1E4E8;--shiki-light:#24292E">language<span style="--shiki-dark:#F97583;--shiki-light:#D73A49">-<span style="--shiki-dark:#E1E4E8;--shiki-light:#24292E">server</code>. It includes:
|
|
38
38
|
- Svelte component syntax support
|
|
39
39
|
- HTML, CSS, and TypeScript features
|
|
40
40
|
- Macroforge integration in script blocks
|
|
@@ -42,5 +42,4 @@ ln -s /path/to/macroforge-ts/crates/extensions/vtsls-macroforge ~/.config/zed/ex
|
|
|
42
42
|
### Extension not loading
|
|
43
43
|
Make sure you've restarted Zed after installing the extension. Check the Zed logs for any error messages.
|
|
44
44
|
### Macros not expanding
|
|
45
|
-
Ensure your project has the
|
|
46
|
-
**
|
|
45
|
+
Ensure your project has the <code class="shiki-inline"><span class="line"><span style="--shiki-dark:#E1E4E8;--shiki-light:#24292E">macroforge</code> package installed and a valid <code class="shiki-inline"><span class="line"><span style="--shiki-dark:#E1E4E8;--shiki-light:#24292E">tsconfig.json</code> with the TypeScript plugin configured.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@macroforge/mcp-server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.42",
|
|
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.
|
|
32
|
+
"macroforge": "^0.1.42"
|
|
33
33
|
},
|
|
34
34
|
"peerDependenciesMeta": {
|
|
35
35
|
"macroforge": {
|