ast-grep-mcp
This project is an experimental implementation of the Model Context Protocol (MCP) using ast-grep to enhance codebase search capabilities. It integrates with Cursor AI for efficient searching.
What is ast-grep MCP?
Ast-grep MCP is an experimental implementation of a Model Context Protocol server that uses the ast-grep CLI for code searching and manipulation.
What are the prerequisites for setting up ast-grep MCP?
You need to install ast-grep, uv, and an MCP client like Cursor. Additionally, you need to clone the repository and configure the MCP JSON.
How do I configure the MCP server?
You configure the MCP server by editing the MCP JSON file to include the server name, command, arguments, and environment variables.
Can I use ast-grep MCP with any MCP client?
Ast-grep MCP is designed to work with MCP clients like Cursor, but compatibility with other clients may vary.
What is the role of 'uv' in ast-grep MCP?
'Uv' is used to run the server, ensuring efficient execution and integration with the MCP setup.