Skip to content

Commit fa83010

Browse files
authored
Merge pull request #6 from doITmagic/dev
feat: Add Community Standards files
2 parents b672e0c + e11e818 commit fa83010

6 files changed

Lines changed: 273 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Run command '...'
17+
3. See error
18+
19+
**Expected behavior**
20+
A clear and concise description of what you expected to happen.
21+
22+
**Environment (please complete the following information):**
23+
- OS: [e.g. Ubuntu 22.04, macOS Sonoma]
24+
- RagCode Version: [e.g. v1.0.0]
25+
- Ollama Version: [e.g. 0.1.32]
26+
- Docker/Qdrant Status: [e.g. Running]
27+
- Client/IDE: [e.g. Windsurf, Cursor, VS Code]
28+
29+
**Logs**
30+
If applicable, add logs to help explain your problem.
31+
(Tip: You can enable debug logging in `config.yaml` or via environment variable `MCP_LOG_LEVEL=debug`)
32+
33+
**Additional context**
34+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## Description
2+
3+
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
4+
5+
Fixes # (issue)
6+
7+
## Type of change
8+
9+
- [ ] Bug fix (non-breaking change which fixes an issue)
10+
- [ ] New feature (non-breaking change which adds functionality)
11+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
12+
- [ ] Documentation update
13+
14+
## Checklist:
15+
16+
- [ ] I have performed a self-review of my own code
17+
- [ ] I have formatted my code with `go fmt ./...`
18+
- [ ] I have run tests `go test ./...` and they pass
19+
- [ ] I have verified integration with Ollama/Qdrant (if applicable)
20+
- [ ] I have updated the documentation accordingly

CODE_OF_CONDUCT.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8+
9+
## Our Standards
10+
11+
Examples of behavior that contributes to a positive environment for our community include:
12+
13+
* Demonstrating empathy and kindness toward other people
14+
* Being respectful of differing opinions, viewpoints, and experiences
15+
* Giving and gracefully accepting constructive feedback
16+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17+
* Focusing on what is best not just for us as individuals, but for the overall community
18+
19+
Examples of unacceptable behavior include:
20+
21+
* The use of sexualized language or imagery, and sexual attention or advances of any kind
22+
* Trolling, insulting or derogatory comments, and personal or political attacks
23+
* Public or private harassment
24+
* Publishing others' private information, such as a physical or email address, without their explicit permission
25+
* Other conduct which could reasonably be considered inappropriate in a professional setting
26+
27+
## Enforcement Responsibilities
28+
29+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
32+
33+
## Scope
34+
35+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
36+
37+
## Enforcement
38+
39+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [razvan@doitmagic.com]. All complaints will be reviewed and investigated promptly and fairly.
40+
41+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
42+
43+
## Enforcement Guidelines
44+
45+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
46+
47+
### 1. Correction
48+
49+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
50+
51+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
52+
53+
### 2. Warning
54+
55+
**Community Impact**: A violation through a single incident or series of actions.
56+
57+
**Consequence**: A warning with consequences for continued behavior. No interaction with the involved people, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
58+
59+
### 3. Temporary Ban
60+
61+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
62+
63+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the involved people, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
64+
65+
### 4. Permanent Ban
66+
67+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
68+
69+
**Consequence**: A permanent ban from any sort of public interaction within the community.
70+
71+
## Attribution
72+
73+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
74+
75+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
76+
77+
[homepage]: https://www.contributor-covenant.org
78+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html

CONTRIBUTING.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Contributing to RagCode MCP
2+
3+
First off, thank you for considering contributing to RagCode MCP! It's people like you that make RagCode such a great tool.
4+
5+
## 🛠️ Development Setup
6+
7+
### Prerequisites
8+
9+
- **Go 1.25+**: Required for building the project.
10+
- **Docker**: Required for running the Qdrant vector database.
11+
- **Ollama**: Required for LLM and embedding models.
12+
13+
### Setting up the environment
14+
15+
1. **Fork and clone the repository**
16+
```bash
17+
git clone https://github.com/YOUR_USERNAME/rag-code-mcp.git
18+
cd rag-code-mcp
19+
```
20+
21+
2. **Install dependencies**
22+
```bash
23+
go mod download
24+
```
25+
26+
3. **Start required services**
27+
Ensure Docker and Ollama are running.
28+
```bash
29+
# Start Qdrant
30+
docker run -d -p 6333:6333 qdrant/qdrant
31+
32+
# Pull models
33+
ollama pull phi3:medium
34+
ollama pull nomic-embed-text
35+
```
36+
37+
4. **Run the server locally**
38+
```bash
39+
go run ./cmd/rag-code-mcp
40+
```
41+
42+
## 🧪 Testing
43+
44+
We use the standard Go testing framework.
45+
46+
```bash
47+
# Run all tests
48+
go test ./...
49+
50+
# Run tests with race detection
51+
go test -race ./...
52+
```
53+
54+
Please ensure all tests pass before submitting a Pull Request.
55+
56+
## 📝 Coding Standards
57+
58+
- **Formatting**: We use `gofmt`. Please run `go fmt ./...` before committing.
59+
- **Linting**: We recommend using `golangci-lint`.
60+
- **Commits**: We follow [Conventional Commits](https://www.conventionalcommits.org/).
61+
- `feat: add new tool`
62+
- `fix: resolve indexing bug`
63+
- `docs: update README`
64+
65+
## 🚀 Submitting a Pull Request
66+
67+
1. Create a new branch: `git checkout -b feat/my-new-feature`
68+
2. Make your changes and commit them: `git commit -m 'feat: add some feature'`
69+
3. Push to the branch: `git push origin feat/my-new-feature`
70+
4. Submit a pull request!
71+
72+
## 🐛 Reporting Bugs
73+
74+
Bugs are tracked as GitHub issues. When filing an issue, please include:
75+
76+
- Your OS and version
77+
- RagCode version
78+
- Ollama model being used
79+
- Steps to reproduce the issue
80+
81+
## 💡 Feature Requests
82+
83+
We welcome feature requests! Please use the Feature Request issue template and provide as much detail as possible about the use case.
84+
85+
## 📄 License
86+
87+
By contributing, you agree that your contributions will be licensed under its MIT License.

SECURITY.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
Use this section to tell people about which versions of your project are
6+
currently being supported with security updates.
7+
8+
| Version | Supported |
9+
| ------- | ------------------ |
10+
| 1.0.x | :white_check_mark: |
11+
| < 1.0 | :x: |
12+
13+
## Reporting a Vulnerability
14+
15+
We take the security of RagCode MCP seriously. If you discover a security vulnerability, please do NOT open a public issue.
16+
17+
### How to Report
18+
19+
Please report security vulnerabilities by emailing **razvan@doitmagic.com**.
20+
21+
We will acknowledge your report within 48 hours and provide an estimated timeframe for a fix.
22+
23+
### What to Include
24+
25+
- Description of the vulnerability
26+
- Steps to reproduce
27+
- Potential impact
28+
- Any relevant logs or screenshots
29+
30+
### Disclosure Policy
31+
32+
We ask that you give us a reasonable amount of time to fix the issue before making it public. We will notify you when the fix is released.
33+
34+
Thank you for helping keep RagCode secure!

0 commit comments

Comments
 (0)