Thank you for your interest in contributing! Here's how to get started.
-
Clone the repository
git clone https://github.com/codebyellalesperance/Second-Brain-MCP.git cd Second-Brain-MCP -
Install dependencies
yarn install
-
Set up environment
cp env.example .env # Add your API keys to .env -
Build the project
yarn build
-
Run tests
yarn test
- Run all tests:
yarn test - Watch mode:
yarn test:watch - Coverage:
yarn test:coverage - Interactive UI:
yarn test:ui
All tests must pass before submitting a PR. The CI will automatically run tests on Node.js 18 and 20.
-
Create a branch for your feature/fix
git checkout -b feature/your-feature-name
-
Make your changes and write tests
-
Ensure tests pass
yarn test yarn build -
Commit your changes
git add . git commit -m "feat: add new feature"
-
Push to your fork
git push origin feature/your-feature-name
-
Create a Pull Request on GitHub
- Use TypeScript strict mode
- Follow existing code patterns
- Add tests for new features
- Update documentation as needed
When reporting issues, please include:
- Description of the problem
- Steps to reproduce
- Expected vs actual behavior
- System information (OS, Node version)
- Error messages/logs
Our CI pipeline runs on every push and PR:
- Tests: All 60+ tests across 4 test suites
- Type checking: TypeScript compilation
- Node versions: Tested on 18.x and 20.x
second-brain-mcp/
├── src/
│ ├── ingest/ # Input methods (CLI, voice)
│ ├── server/ # MCP server
│ ├── api/ # REST API
│ ├── storage/ # Data persistence
│ └── utils/ # Shared utilities
├── tests/ # Test files
├── .github/ # GitHub Actions workflows
└── dist/ # Build output
- Never commit
.envfiles - Keep API keys secret
- Review encryption changes carefully
- Report security issues privately
Feel free to open an issue for discussion or clarification!
Happy coding! 🚀