Contributing to MCP Tree-sitter Server
Description
Thank you for your interest in contributing to MCP Tree-sitter Server! This guide will help you understand our development process and coding standards.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
Repository README
This is the README for wrale/mcp-server-tree-sitter, shared by 4 entries
in this directory. It describes the repository, not this entry specifically.
Contributing to MCP Tree-sitter Server
Thank you for your interest in contributing to MCP Tree-sitter Server! This guide will help you understand our development process and coding standards.
Development Setup
Clone the repository:
git clone https://github.com/organization/mcp-server-tree-sitter.git cd mcp-server-tree-sitterInstall with development dependencies:
make install-devInstall language parsers (optional):
make install-languages
Code Style and Standards
We follow a strict set of coding standards to maintain consistency throughout the codebase:
Python Style
- We use Black for code formatting with a line length of 88 characters
- We use Ruff for linting
- We use MyPy for static type checking
Exception Handling
- Use specific exception types rather than catching generic exceptions when possible
- When re-raising exceptions, use the
fromclause to preserve the stack trace:try: # Some code except SomeError as e: raise CustomError("Meaningful message") from e
Testing
- Write tests for all new functionality
- Run tests before submitting:
make test
Documentation
- Document all functions, classes, and modules using docstrings
- Follow the Google Python Style Guide for docstrings
- Include type hints for all function parameters and return values
Development Workflow
Create a branch for your feature or bugfix:
git checkout -b feature/your-feature-nameMake your changes and ensure they pass linting and tests:
make format make lint make testCommit your changes with a clear message describing the change
Submit a pull request to the main repository
Running the Server
You can run the server in different modes:
For development and testing:
make mcp-devFor direct execution:
make mcp-runTo install in Claude Desktop:
make mcp-install
Project Architecture
The project follows a modular architecture:
config.py- Configuration managementlanguage/- Tree-sitter language handlingmodels/- Data models for AST and projectscache/- Caching mechanismsresources/- MCP resources (files, AST)tools/- MCP tools (search, analysis, etc.)utils/- Utility functionsprompts/- MCP promptsserver.py- FastMCP server implementation
Seeking Help
If you have questions or need help, please open an issue or contact the maintainers.
Related Skills
Awesome Go
A curated list of awesome Go frameworks, libraries and software
Development next.js
| The React Framework | 138360 | 1503 | 1 |
Development sharing-skills
skill for guidance.
Development root-cause-tracing
Use when errors occur deep in execution and you need to trace back to find the original trigger.
Development Template Skill
Minimal skeleton for a new skill project structure.
Development Third-party Notices
THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THI
Development