Feat: uv/uvx support #5
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 thepyproject.toml
configuration.Enhancements to server usage:
README.md
: Added a section explaining how to run the MCP server directly from GitHub usinguvx
, enabling users to try the server without cloning the repository.Code refactoring and configuration updates:
main.py
: Refactored the script to include a dedicatedrun_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 viapip
-installed commands.