CodeBot MCP Server v2
by amirbiron
README.md
# š¤ CodeBot MCP Server v2
שרת MCP ××ר×× ×× ×××× ×§××, ×פ××× ×תפע×× ā ×××Ŗ×× ×××××ר ×-Claude.
---
## ⨠××××××Ŗ
### š × ×××× Snippets
| ××× | ×Ŗ×××ר |
|------|--------|
| `list_snippets` | רש××× ×¢× ×”×× ×× ××¤× ×©×¤× / ×Ŗ×××Ŗ / ××פ×ש |
| `get_snippet` | ×§×××Ŗ snippet ×××× |
| `create_snippet` | ×צ×רת snippet ××ש |
| `update_snippet` | ×¢×××× snippet ×§××× |
| `delete_snippet` | ××××§×Ŗ snippet |
| `search_by_code` | ××פ×ש regex ××Ŗ×× ××§×× |
| `get_stats` | ×”××××”×××§××Ŗ ×¢× ××××ר |
### š × ××Ŗ×× ×§××
| ××× | ×Ŗ×××ר |
|------|--------|
| `analyze_snippet` | × ××Ŗ×× ××ר××§××Ŗ, ×פ××”×× ××¢×××Ŗ××× ××צע××Ŗ |
| `bulk_tag_snippets` | ×¢×××× ×Ŗ××××Ŗ ×¢× ×הפר snippets ×××Ŗ ×××Ŗ |
### š Render API (תפע××)
| ××× | ×Ŗ×××ר |
|------|--------|
| `render_service_status` | ××¦× ×ש×ר××Ŗ ×× ×××× |
| `render_list_deploys` | ×פ××××× ××ר×× ×× |
| `render_trigger_deploy` | ā ļø ×פע××Ŗ ×פ××× ××ש |
| `render_restart_service` | ā ļø ×Ø××”×××Ø× ×ש×ר××Ŗ |
| `render_get_env_vars` | ×צ××Ŗ ××©×Ŗ× × ×”×××× (ער××× ×Ø××ש×× ××התר××) |
### š GitHub Issues
| ××× | ×Ŗ×××ר |
|------|--------|
| `github_create_issue` | ×צ×רת Issue ××ש (×Ŗ××× Markdown) |
| `github_list_issues` | רש×××Ŗ Issues ×¢× ×”×× ×× |
### š Prompts ×××× ×× (××¢×ר××Ŗ)
| פר×××¤× | ×Ŗ×××ר |
|---------|--------|
| `code_review` | ×”×§×רת ×§×× ×קצ××¢××Ŗ |
| `debug_help` | × ××Ŗ×× ×©×××× ××צעת פתר×× ××Ŗ |
| `create_github_issue_prompt` | ×Ŗ×× ××Ŗ Issue (bug / enhancement) |
| `deploy_check` | ××××§××Ŗ ××××××Ŗ ××¤× × ×פ××× |
| `summarize_logs` | × ××Ŗ×× ××××× ×××××× ×©×××××Ŗ |
| `optimize_snippet` | ×צע××Ŗ ××פ×××××צ×× |
---
## š ××Ŗ×§× ×
### ××Ø×¦× ××§××××Ŗ
```bash
git clone https://github.com/YOUR_USERNAME/codebot-mcp-server.git
cd codebot-mcp-server
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
# ער×× ××Ŗ .env
python server.py
```
×שרת ×¢××× ×¢× `http://localhost:8000/mcp`
### ×פ××× ×-Render
1. ××¢×× ×-GitHub
2. ×-Render: **New ā Web Service ā Docker**
3. ×××ר ××©×Ŗ× × ×”××××:
| ××©×Ŗ× × | ××××? | ×Ŗ×××ר |
|--------|-------|--------|
| `MONGO_URI` | ā
| Connection string ×-MongoDB |
| `RENDER_API_KEY` | ⬠| Render API token (×-deploy/restart) |
| `RENDER_SERVICE_ID` | ⬠| ×××× ×ש×ר××Ŗ ×-Render |
| `GITHUB_TOKEN` | ⬠| GitHub PAT (×-Issues) |
| `GITHUB_REPO` | ⬠| `owner/repo` |
> **š” ××פ**: רק `MONGO_URI` ××××. ש×ר ×××× ××רצ×××Ŗ ×¢×××××Ŗ ×ש×××©×Ŗ× ×× ×©××× ××××ר××.
---
## š ××××ר ×-Claude
### Claude.ai (Pro / Max / Team / Enterprise)
**Settings ā Integrations ā Add custom connector**
```
URL: https://YOUR-APP.onrender.com/mcp
```
### Claude Desktop
×××”×£ ×-`claude_desktop_config.json`:
```json
{
"mcpServers": {
"codebot": {
"type": "streamable-http",
"url": "https://YOUR-APP.onrender.com/mcp"
}
}
}
```
### Claude Code
```bash
claude mcp add-json codebot '{"type":"streamable-http","url":"https://YOUR-APP.onrender.com/mcp"}'
```
---
## š¬ ×××××××Ŗ ש×××ש ×-Claude
### × ×××× ×§××
> *"×ר×× ×× ××Ŗ ×× ×-snippets ש×× ×-Python שקש×ר×× ×-async"*
>
> *"צ×ר snippet ××ש ×¢× ×¤×× ×§×¦×× ××××× ×××ר"*
>
> *"×פש ××§×× ×©×× ×©×××ש ×-try/except"*
### × ××Ŗ×× ×§××
> *"×Ŗ×¢×©× code review ×¢× ×-snippet ×××"* (×פע×× ××Ŗ ×פר×××¤× code_review)
>
> *"×ש ×× ×©××××: ModuleNotFoundError: No module named 'redis'"*
### ×פ××× ×תפע××
> *"×× ××”××××” ×©× ×ש×ר××Ŗ ש×× ×-Render?"*
>
> *"×Ŗ×¢×©× ×פ××× ××ש"* (×פע×× deploy_check ×××××§×Ŗ ××××××Ŗ)
>
> *"×Ŗ×¤×Ŗ× Issue ×¢× ×××× ×©×צ×× ×"*
### ×××××
> *"× ×Ŗ× ×× ××Ŗ ×××××× ×××× ××Ŗ××× ×× ×× ×Ŗ×§××"*
---
## š ××× ×
```
codebot-mcp-server/
āāā server.py # שרת MCP (×× ×××××, prompts, resources)
āāā requirements.txt # ×Ŗ×××××Ŗ
āāā Dockerfile # Docker image
āāā render.yaml # Render Blueprint
āāā .env.example # ××××× ×××©×Ŗ× ××
āāā .gitignore
āāā README.md
```
---
## š ×××××
- **Stateless mode** ā ××Ŗ××× ×-horizontal scaling
- **ער××× ×Ø××ש××** ××התר×× ×-`render_get_env_vars`
- **××ש×ר × ×רש** ××¤× × deploy/restart (××Ø× ×פר×××¤× `deploy_check`)
- **××× secrets ××§××** ā ××× ××Ø× ××©×Ŗ× × ×”××××
---
## š ר×ש×××
MIT
This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo issues