First off, thank you for considering contributing to RagCode MCP! It's people like you that make RagCode such a great tool.
- Go 1.25+: Required for building the project.
- Docker: Required for running the Qdrant vector database.
- Ollama: Required for LLM and embedding models.
-
Fork and clone the repository
git clone https://github.com/YOUR_USERNAME/rag-code-mcp.git cd rag-code-mcp -
Install dependencies
go mod download
-
Start required services Ensure Docker and Ollama are running.
# Start Qdrant docker run -d -p 6333:6333 qdrant/qdrant # Pull models ollama pull phi3:medium ollama pull mxbai-embed-large
-
Run the server locally
go run ./cmd/rag-code-mcp
We use the standard Go testing framework.
# Run all tests
go test ./...
# Run tests with race detection
go test -race ./...Please ensure all tests pass before submitting a Pull Request.
- Formatting: We use
gofmt. Please rungo fmt ./...before committing. - Linting: We recommend using
golangci-lint. - Commits: We follow Conventional Commits.
feat: add new toolfix: resolve indexing bugdocs: update README
- Create a new branch:
git checkout -b feat/my-new-feature - Make your changes and commit them:
git commit -m 'feat: add some feature' - Push to the branch:
git push origin feat/my-new-feature - Submit a pull request!
Bugs are tracked as GitHub issues. When filing an issue, please include:
- Your OS and version
- RagCode version
- Ollama model being used
- Steps to reproduce the issue
We welcome feature requests! Please use the Feature Request issue template and provide as much detail as possible about the use case.
By contributing, you agree that your contributions will be licensed under its MIT License.