@mwillbanks/ast-mcp 0.1.1 → 0.1.3

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/README.md CHANGED
@@ -54,16 +54,46 @@ Runtime dependencies are pinned where binary compatibility matters. `@ast-bro/cl
54
54
 
55
55
  Install the MCP server, blocking hooks, unified skill, and managed instructions into the current repository:
56
56
 
57
+ ```npm
58
+ npm install --save-dev @mwillbanks/ast-mcp
59
+ ```
60
+
61
+ When installing with Bun, allow the pinned native installers:
62
+
57
63
  ```bash
58
- bun add --dev @mwillbanks/ast-mcp
59
64
  bun pm trust @ast-bro/cli dprint
65
+ ```
66
+
67
+ ```bash
60
68
  ./node_modules/.bin/ast-mcp install \
61
69
  --scope local \
62
70
  --target all \
63
71
  --root "$PWD"
64
72
  ```
65
73
 
66
- Bun blocks transitive lifecycle scripts by default, so the explicit trust step runs the pinned ast-bro and dprint installers before the MCP starts. Targets are `codex`, `claude`, `copilot`, or `all`. Use `./node_modules/.bin/ast-mcp update` to reconcile every managed surface and `./node_modules/.bin/ast-mcp uninstall` to remove only ast-mcp-managed configuration.
74
+ Bun blocks transitive lifecycle scripts by default, so the explicit trust step runs the pinned ast-bro and dprint installers before the MCP starts. If another package manager blocks dependency build scripts, approve `@ast-bro/cli` and `dprint` through that manager before configuring a host. npm, pnpm, Yarn Classic, and Yarn 2+ project installations are supported. The runtime resolves binaries from ancestor package bins, package metadata, package-manager global bins, and then `PATH`.
75
+
76
+ Targets are `codex`, `claude`, `copilot`, or `all`. Use `./node_modules/.bin/ast-mcp update` to reconcile every managed surface and `./node_modules/.bin/ast-mcp uninstall` to remove only marked blocks, managed entries, and the owned `ast-mcp` skill directory.
77
+
78
+ ### ast-bro platform support
79
+
80
+ `@ast-bro/cli@3.0.0` currently publishes a precompiled binary only for macOS Apple Silicon. The ast-mcp installer verifies that the pinned binary can execute before writing host configuration. On Linux, Windows, or macOS Intel, install it through Cargo and set `AST_BRO_BINARY` to the resulting executable before rerunning the installer:
81
+
82
+ ```bash
83
+ cargo install ast-bro --version 3.0.0 --locked
84
+ export AST_BRO_BINARY="$HOME/.cargo/bin/ast-bro"
85
+ printf '%s\n' 'export AST_BRO_BINARY="$HOME/.cargo/bin/ast-bro"' >> "$HOME/.profile"
86
+ ```
87
+
88
+ For Windows PowerShell:
89
+
90
+ ```powershell
91
+ cargo install ast-bro --version 3.0.0 --locked
92
+ $env:AST_BRO_BINARY = "$HOME\.cargo\bin\ast-bro.exe"
93
+ [Environment]::SetEnvironmentVariable("AST_BRO_BINARY", "$HOME\.cargo\bin\ast-bro.exe", "User")
94
+ ```
95
+
96
+ Install Rust and Cargo from [rustup](https://rustup.rs/) first when they are not already available. The example persists the variable for POSIX login shells; zsh users can write the same line to `~/.zprofile` instead. GUI-launched hosts must be started from that configured environment or receive `AST_BRO_BINARY` through their launcher. Restart the host after installation. The installer fails without changing host configuration when the binary is missing or has the wrong version.
67
97
 
68
98
  From a source checkout:
69
99