You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,22 @@ swift run ast-grep-mcp-swift --config /absolute/path/to/sgconfig.yaml
53
53
54
54
You can omit `--config` if you rely on defaults or the `AST_GREP_CONFIG` environment variable.
55
55
56
+
### Quick local test
57
+
58
+
1) Ensure `ast-grep` is on PATH: `ast-grep --version`
59
+
2) Build once: `swift build`
60
+
3) Run the server (stdio): `swift run ast-grep-mcp-swift`
61
+
4) From an MCP-capable client, call `tools/list` and then `tools/call` with one of the tools below.
62
+
63
+
### Using a prebuilt release (macOS)
64
+
65
+
1) Go to [Releases](https://github.com/ast-grep/ast-grep-mcp-swift/releases) and download the asset named `ast-grep-mcp-swift-vX.Y.Z-macOS-universal` plus its `.sha256`.
66
+
2) Verify checksum (optional but recommended): `shasum -a 256 -c ast-grep-mcp-swift-vX.Y.Z-macOS-universal.sha256`
67
+
3) Make it executable: `chmod +x ast-grep-mcp-swift-vX.Y.Z-macOS-universal`
0 commit comments