Skip to content

Commit 406e574

Browse files
Enable running ast-grep-server with uvx and update README
1 parent 33ef227 commit 406e574

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,17 @@ This MCP server enables AI assistants (like Cursor, Claude Desktop, etc.) to sea
4545
```bash
4646
ast-grep --version
4747
```
48+
49+
## Running with `uvx`
50+
51+
You can run the server directly from GitHub using `uvx`:
52+
53+
```bash
54+
uvx --from git+https://github.com/ast-grep/ast-grep-mcp ast-grep-server
55+
```
56+
57+
This is useful for quickly trying out the server without cloning the repository.
58+
4859
## Configuration
4960

5061
### For Cursor

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ dependencies = [
88
"pydantic>=2.11.0",
99
"mcp[cli]>=1.6.0",
1010
]
11+
12+
[project.scripts]
13+
ast-grep-server = "main:mcp.run"

0 commit comments

Comments
 (0)