Contributing to MCP x Hub
March 20, 2025 ยท View on GitHub
We welcome contributions to MCP x Hub! This document provides guidelines and instructions for contributing to the project.
Code of Conduct
Please be respectful and considerate of others when contributing to this project. We aim to foster an inclusive and welcoming community.
Getting Started
- Fork the repository
- Clone your fork locally
- Install dependencies with
pnpm install - Make your changes
- Test your changes
- Submit a pull request
Development Environment Setup
# Clone the repository
git clone https://github.com/bugstan/MCPxHub.git
cd McpxHub
# Install dependencies
pnpm install
# Build the project
pnpm build
# Run in development mode with logging enabled
LOG_ENABLED=true node dist/src/index.js
Development Workflow
-
Create a new branch for your feature or bug fix:
git checkout -b feature/your-feature-nameor
git checkout -b fix/issue-description -
Make your changes to the code.
-
Write or update tests for the changes if applicable.
-
Run the tests:
pnpm test -
Build the project to make sure it compiles:
pnpm build -
Commit your changes:
git commit -m "Description of changes" -
Push your branch:
git push origin feature/your-feature-name -
Create a Pull Request against the main repository.
Pull Request Guidelines
When submitting a pull request:
- Make sure your code follows the project's coding style
- Include tests for new features or bug fixes
- Update documentation as needed
- Keep pull requests focused on a single topic
- Write a clear description of what your PR does and why it's needed
Code Style
- Use TypeScript for all new code
- Follow existing code style and patterns
- Use 4 spaces for indentation
- Include JSDoc comments for public APIs
- Use meaningful variable and function names
Testing
We encourage writing tests for new features and bug fixes. Please ensure all tests pass before submitting a pull request.
Documentation
If you're adding new features or making significant changes, please update the documentation accordingly. This includes:
- README.md
- JSDoc comments
- Any relevant files in the docs/ directory
Reporting Issues
When reporting issues, please include:
- A clear description of the issue
- Steps to reproduce
- Expected behavior
- Actual behavior
- Environment information (OS, Node.js version, etc.)
- Logs if available
License
By contributing to MCP x Hub, you agree that your contributions will be licensed under the project's MIT License.