@mwillbanks/ast-mcp 0.2.0 → 0.2.2
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 +3 -1
- package/dist/ast-mcp.js +76 -76
- package/dist/ast-mcp.js.map +13 -13
- package/package.json +1 -1
- package/src/config.ts +32 -4
- package/src/helpers/config.ts +5 -3
- package/src/helpers/mcp-schema.ts +7 -0
- package/src/installer.ts +37 -17
- package/src/runtime/file-delete.ts +33 -4
- package/src/runtime/file-rename.ts +2 -4
- package/src/runtime/paths.ts +85 -22
- package/src/service.ts +2 -4
- package/src/tools/ast-bro.ts +3 -3
- package/src/tools/files.ts +15 -18
- package/src/tools/lifecycle.ts +13 -13
- package/templates/AGENTS.md +5 -5
- package/templates/skills/ast-mcp/SKILL.md +31 -23
- package/templates/skills/ast-mcp/evals/batch.evals.json +9 -9
- package/templates/skills/ast-mcp/evals/measure.ts +27 -4
- package/templates/skills/ast-mcp/evals/score.test.ts +46 -3
- package/templates/skills/ast-mcp/evals/score.ts +7 -0
- package/templates/skills/ast-mcp/evals/semantic.test.ts +209 -28
- package/templates/skills/ast-mcp/evals/semantic.ts +148 -36
- package/templates/skills/ast-mcp/references/installation.md +1 -1
- package/templates/skills/ast-mcp/references/patch-state-machine.md +4 -4
- package/templates/skills/ast-mcp/references/tool-catalog.md +6 -6
- package/templates/skills/ast-mcp/scripts/check-install.ts +15 -25
package/README.md
CHANGED
|
@@ -130,7 +130,9 @@ version = 1
|
|
|
130
130
|
roots = ["."]
|
|
131
131
|
|
|
132
132
|
[safety]
|
|
133
|
+
allow_any_path = false
|
|
133
134
|
allow_external_roots = false
|
|
135
|
+
allow_temp_directory = true
|
|
134
136
|
follow_symlinks = false
|
|
135
137
|
require_hash = true
|
|
136
138
|
|
|
@@ -153,7 +155,7 @@ port = 3768
|
|
|
153
155
|
|
|
154
156
|
Resolution is deterministic: environment overrides, project `ast-mcp.toml`, the platform global `ast-mcp/ast-mcp.toml`, then built-in defaults. The server uses MCP client workspace roots when available, so one global installation automatically selects the connected project. Existing environment variables remain supported as explicit overrides.
|
|
155
157
|
|
|
156
|
-
Formatting uses dprint by default, can be disabled, or can route the first matching extension/glob to a shell-free external formatter with dprint fallback.
|
|
158
|
+
Formatting uses dprint by default, can be disabled, or can route the first matching extension/glob to a shell-free external formatter with dprint fallback. Mutation tools expose a host-compatible declared `files` batch. File operations allow the OS temporary directory by default; this can be disabled, while `allow_any_path = true` provides an explicit unrestricted mode. Other safety settings can allow final symlinks inside permitted roots, make mutation hashes optional, or tune the host hook allow/block policy.
|
|
157
159
|
|
|
158
160
|
Inspect the result with `ast-mcp config validate` and `ast-mcp config show`. See the [configuration reference](https://mwillbanks.github.io/ast-mcp/docs/reference/configuration/) for the full schema, discovery rules, cache behavior, formatter contract, safety semantics, and migration guidance.
|
|
159
161
|
|