Skip to content

Conversation

cognitive-glitch
Copy link
Contributor

This pull request introduces enhancements to streamline the usage and execution of the MCP server. The most significant changes include adding instructions for running the server with uvx, refactoring the entry point for starting the server, and registering the server as a script in the pyproject.toml configuration.

Enhancements to server usage:

  • README.md: Added a section explaining how to run the MCP server directly from GitHub using uvx, enabling users to try the server without cloning the repository.

Code refactoring and configuration updates:

  • main.py: Refactored the script to include a dedicated run_mcp_server function for starting the MCP server, improving code organization and readability. Updated the entry point to call this function when the script is executed directly.
  • pyproject.toml: Registered the MCP server as a script (ast-grep-server) in the project configuration, allowing users to execute it more conveniently via pip-installed commands.

@cognitive-glitch cognitive-glitch changed the title Feat/uvx support Feat: uv/uvx support Jul 5, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@HerringtonDarkholme HerringtonDarkholme merged commit b6f0cd0 into ast-grep:main Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants