Development Guide
This guide will help you understand how to extend and customize easy-mcp-use to meet your specific needs.Prerequisites
- Node.js 20.x or later
- npm 7.x or later
- TypeScript 4.x or later
- Basic understanding of TypeScript and async programming
Development Environment Setup
- Clone the repository:
- Install dependencies:
- Build the project:
Project Structure
Code Style
TypeScript Guidelines
- Use strict TypeScript mode
- Define interfaces for all public APIs
- Use async/await for asynchronous operations
- Implement proper error handling
Error Handling
Testing
Unit Tests
We use Jest for testing. Write tests in thetests/unit directory:
Running Tests
Documentation
Code Documentation
- Use JSDoc comments for public APIs
- Include examples in documentation
- Document error cases and edge conditions
Contributing
Contribution Process
- Fork the repository
- Create a feature branch
- Make your changes
- Add or update tests
- Update documentation
- Submit a pull request
Pull Request Guidelines
- Follow the existing code style
- Include unit tests for new features
- Update documentation as needed
- Keep changes focused and atomic
Commit Messages
Follow conventional commits format:Debugging
Logging
Performance Monitoring
Security Best Practices
- Never commit sensitive information
- Use environment variables for secrets
- Implement proper input validation
- Follow security guidelines for dependencies
Next Steps
- Check out the examples
- Join our developer community
- Report issues and suggestions