Skip to content

Commit d522473

Browse files
committed
Change MXtoAI usages to MXGo
1 parent 398cecb commit d522473

File tree

136 files changed

+836
-835
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+836
-835
lines changed

.coveragerc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[run]
2-
source = mxtoai
2+
source = mxgo
33
omit =
44
*/tests/*
55
*/test_*
6-
mxtoai/db/alembic/env.py
7-
mxtoai/db/alembic/versions/*
8-
mxtoai/scheduler_runner.py
9-
mxtoai/scripts/run_*.py
6+
mxgo/db/alembic/env.py
7+
mxgo/db/alembic/versions/*
8+
mxgo/scheduler_runner.py
9+
mxgo/scripts/run_*.py
1010
*/migrations/*
1111
*/__pycache__/*
1212
*/.*

.env.example

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# =============================================================================
2-
# MXTOAI Environment Configuration
2+
# MXGo Environment Configuration
33
# =============================================================================
44
# Copy this file to .env and configure your values
55
# See README.md and DOCKER_SETUP.md for detailed setup instructions
@@ -40,14 +40,14 @@ HF_TOKEN=your_huggingface_token_here
4040
# PostgreSQL Database (required)
4141
DB_HOST=postgres
4242
DB_PORT=5432
43-
DB_NAME=mxtoai
44-
DB_USER=mxtoai
43+
DB_NAME=mxgo
44+
DB_USER=mxgo
4545
DB_PASSWORD=your_secure_db_password
4646

4747
# RabbitMQ Message Queue (required)
4848
RABBITMQ_HOST=rabbitmq
4949
RABBITMQ_PORT=5672
50-
RABBITMQ_USER=mxtoai_user
50+
RABBITMQ_USER=mxgo_user
5151
RABBITMQ_PASSWORD=your_rabbitmq_password
5252
RABBITMQ_VHOST=/
5353
RABBITMQ_HEARTBEAT=60
@@ -131,17 +131,17 @@ SCHEDULER_API_TIMEOUT=300
131131
# =============================================================================
132132
# Model Context Protocol configuration
133133

134-
MXTOAI_ENABLE_MCP=true
135-
MXTOAI_MCP_CONFIG_PATH=mcp.toml
136-
MXTOAI_MCP_TIMEOUT=30
134+
MXGO_ENABLE_MCP=true
135+
MXGO_MCP_CONFIG_PATH=mcp.toml
136+
MXGO_MCP_TIMEOUT=30
137137

138138
# =============================================================================
139139
# 🌐 FRONTEND & EXTERNAL URLS (Optional)
140140
# =============================================================================
141141
# Frontend and external service URLs
142142

143-
WHITELIST_SIGNUP_URL=https://mxtoai.com/whitelist
144-
FRONTEND_URL=https://mxtoai.com/
143+
WHITELIST_SIGNUP_URL=https://mxgo.ai/whitelist
144+
FRONTEND_URL=https://mxgo.ai/
145145

146146
# =============================================================================
147147
# 🧪 DEVELOPMENT & TESTING (Development Only)
@@ -173,8 +173,8 @@ FRONTEND_URL=https://mxtoai.com/
173173
# RABBITMQ_MANAGEMENT_PORT=15672 # RabbitMQ web UI port (default: 15672)
174174

175175
# Service Authentication Overrides
176-
# DB_NAME=mxtoai # Database name (default: mxtoai)
177-
# DB_USER=mxtoai # Database user (default: mxtoai)
176+
# DB_NAME=mxgo # Database name (default: mxgo)
177+
# DB_USER=mxgo # Database user (default: mxgo)
178178
# DB_PASSWORD=your_db_password # Database password (default: docker_changeme_123)
179179
# REDIS_PASSWORD=your_redis_pass # Redis password (default: docker_redis_123)
180180
# RABBITMQ_USER=your_rmq_user # RabbitMQ user (default: docker_guest)

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
- '.github/actions/test.yml'
1212

1313
concurrency:
14-
group: mxtoai-tests
14+
group: mxgo-tests
1515
cancel-in-progress: false
1616

1717
jobs:
@@ -90,7 +90,7 @@ jobs:
9090
echo "Created litellm_config.toml and set LITELLM_CONFIG_PATH"
9191
9292
- name: Run tests
93-
run: poetry run pytest -v --timeout 180 --cov-report=term-missing:skip-covered --cov-report=html:htmlcov --cov=mxtoai --log-cli-level=INFO --pytest-durations-min=5
93+
run: poetry run pytest -v --timeout 180 --cov-report=term-missing:skip-covered --cov-report=html:htmlcov --cov=mxgo --log-cli-level=INFO --pytest-durations-min=5
9494

9595
- name: Upload pytest report
9696
uses: actions/upload-artifact@v4

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Contributing to MXtoAI
1+
# Contributing to MXGo
22

3-
Thank you for your interest in contributing to mxtoai, an intelligent email assistant that processes emails automatically using AI.
3+
Thank you for your interest in contributing to mxgo, an intelligent email assistant that processes emails automatically using AI.
44

55
## Setting up the project
66

DOCKER_SETUP.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Docker Setup Guide
22

3-
This guide will help you set up MXTOAI using Docker for easy self-hosting.
3+
This guide will help you set up MXGo using Docker for easy self-hosting.
44

5-
MXTOAI uses a simplified Docker architecture with health checks and dependency management built into docker-compose.yml.
5+
MXGo uses a simplified Docker architecture with health checks and dependency management built into docker-compose.yml.
66

77
## Prerequisites
88

@@ -17,7 +17,7 @@ MXTOAI uses a simplified Docker architecture with health checks and dependency m
1717
```bash
1818
# Clone the repository
1919
git clone <your-repo-url>
20-
cd mxtoai
20+
cd mxgo
2121

2222
# Run the setup script
2323
chmod +x scripts/setup-local.sh
@@ -156,7 +156,7 @@ docker-compose logs -f api_server
156156
```bash
157157
# Access running container
158158
docker exec -it api_server bash
159-
docker exec -it postgres psql -U mxtoai -d mxtoai
159+
docker exec -it postgres psql -U mxgo -d mxgo
160160
161161
# Check service status
162162
docker-compose ps

ENV_VARIABLES.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 🔧 Environment Variables Reference
22

3-
This document provides a comprehensive guide to all environment variables used in MXTOAI.
3+
This document provides a comprehensive guide to all environment variables used in MXGo .
44

55
## 📋 Quick Setup Checklist
66

@@ -40,8 +40,8 @@ For a basic working installation, you need:
4040
|----------|----------|---------|-------------|
4141
| `DB_HOST` | **Yes** | `postgres` | Database host |
4242
| `DB_PORT` | No | `5432` | Database port |
43-
| `DB_NAME` | **Yes** | `mxtoai` | Database name |
44-
| `DB_USER` | **Yes** | `mxtoai` | Database username |
43+
| `DB_NAME` | **Yes** | `mxgo` | Database name |
44+
| `DB_USER` | **Yes** | `mxgo` | Database username |
4545
| `DB_PASSWORD` | **Yes** | - | Database password |
4646

4747
#### Redis Cache
@@ -116,9 +116,9 @@ For a basic working installation, you need:
116116

117117
| Variable | Required | Default | Description |
118118
|----------|----------|---------|-------------|
119-
| `MXTOAI_ENABLE_MCP` | No | `true` | Enable Model Context Protocol tools |
120-
| `MXTOAI_MCP_CONFIG_PATH` | No | `mcp.toml` | Path to MCP configuration |
121-
| `MXTOAI_MCP_TIMEOUT` | No | `30` | MCP connection timeout in seconds |
119+
| `MXGO_ENABLE_MCP` | No | `true` | Enable Model Context Protocol tools |
120+
| `MXGO_MCP_CONFIG_PATH` | No | `mcp.toml` | Path to MCP configuration |
121+
| `MXGO_MCP_TIMEOUT` | No | `30` | MCP connection timeout in seconds |
122122

123123
### 🌐 **Frontend & External URLs**
124124

@@ -135,8 +135,8 @@ When using Docker Compose, these services have built-in defaults:
135135
```yaml
136136
# PostgreSQL
137137
DB_HOST=postgres
138-
DB_NAME=mxtoai
139-
DB_USER=mxtoai
138+
DB_NAME=mxgo
139+
DB_USER=mxgo
140140
DB_PASSWORD=docker_changeme_123
141141

142142
# Redis

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# 🤖 MXtoAI - Automate any email workflow with AI
1+
# 🤖 MXGo - Automate any email workflow with AI
22

3-
> MXtoAI processes emails with advanced AI, handles attachments, and generates smart responses - all running on your own infrastructure.
3+
> MXGo processes emails with advanced AI, handles attachments, and generates smart responses - all running on your own infrastructure.
44
55
[![Docker](https://img.shields.io/badge/Docker-Ready-blue?logo=docker)](https://www.docker.com/)
66
[![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
77
[![Self-Hosted](https://img.shields.io/badge/Self--Hosted-✓-brightgreen)]()
88

99

10-
## 🎯 What is MXtoAI?
10+
## 🎯 What is MXGo?
1111

12-
MXtoAI is a powerful, self-hostable email processing system that acts as your intelligent email workflow assistant:
12+
MXGo is a powerful, self-hostable email processing system that acts as your intelligent email workflow assistant:
1313

1414
### **Core Features**
1515

@@ -25,7 +25,7 @@ MXtoAI is a powerful, self-hostable email processing system that acts as your in
2525
- **🔒 Privacy First**: Runs entirely on your infrastructure
2626
- **🎨 Rich Formatting**: HTML and plain text responses with professional styling
2727

28-
## 🚀 Self-host MXtoAI
28+
## 🚀 Self-host MXGo
2929

3030
### Prerequisites
3131
- [Docker Desktop](https://www.docker.com/products/docker-desktop) installed and running
@@ -36,8 +36,8 @@ MXtoAI is a powerful, self-hostable email processing system that acts as your in
3636

3737
```bash
3838
# Clone and start
39-
git clone https://github.com/mxtoai/mxtoai-core.git
40-
cd mxtoai
39+
git clone https://github.com/mxgo/mxgo-core.git
40+
cd mxgo
4141

4242
# Automated setup and start
4343
./scripts/setup-local.sh && ./scripts/start-local.sh
@@ -101,7 +101,7 @@ The system processes emails asynchronously and can send responses via your confi
101101

102102
### Environment Variables
103103

104-
MXtoAI uses a clean, organized environment configuration system:
104+
MXGo uses a clean, organized environment configuration system:
105105

106106
#### 🚀 **Quick Setup**
107107
1. **Copy the template**: `cp .env.example .env`
@@ -233,22 +233,22 @@ cp .env.example .env
233233
# Edit .env with local service settings
234234

235235
# Run database migrations
236-
cd mxtoai/db
236+
cd mxgo/db
237237
poetry run alembic upgrade head
238238
cd ../..
239239

240240
# Start services (3 separate terminals)
241241
poetry run python run_api.py # API Server
242-
poetry run dramatiq mxtoai.tasks --watch ./ # Worker
243-
poetry run python -m mxtoai.scheduler_runner # Scheduler
242+
poetry run dramatiq mxgo.tasks --watch ./ # Worker
243+
poetry run python -m mxgo.scheduler_runner # Scheduler
244244
```
245245

246246
## 📁 Repository Structure
247247

248248
```mermaid
249249
graph TD
250-
A["MXtoAI Repository"] --> B["docker/"]
251-
A --> C["mxtoai/"]
250+
A["MXGo Repository"] --> B["docker/"]
251+
A --> C["mxgo/"]
252252
A --> D["scripts/"]
253253
A --> E["tests/"]
254254
A --> F["docusaurus-site/"]
@@ -290,7 +290,7 @@ graph TD
290290
| Directory | Purpose | Key Files |
291291
|-----------|---------|-----------|
292292
| `🐳 docker/` | Container configurations | Dockerfiles, init scripts |
293-
| `🤖 mxtoai/` | Core application code | agents, tools, database models |
293+
| `🤖 mxgo/` | Core application code | agents, tools, database models |
294294
| `📋 scripts/` | Setup & deployment | setup-local.sh, start-local.sh |
295295
| `🧪 tests/` | Test suite | Unit tests, load tests |
296296
| `📖 docusaurus-site/` | Documentation website | Docs, guides, examples |
@@ -308,7 +308,7 @@ graph TD
308308

309309
### Multiple AI Model Support
310310

311-
MXtoAI supports load balancing across multiple AI providers:
311+
MXGo supports load balancing across multiple AI providers:
312312

313313
- OpenAI GPT models
314314
- Azure OpenAI
@@ -381,14 +381,14 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
381381
## 🌟 Support
382382

383383
- **📖 Documentation**: [DOCKER_SETUP.md](DOCKER_SETUP.md)
384-
- **🐛 Issues**: [GitHub Issues](https://github.com/your-org/mxtoai/issues)
385-
- **💬 Discussions**: [GitHub Discussions](https://github.com/your-org/mxtoai/discussions)
384+
- **🐛 Issues**: [GitHub Issues](https://github.com/your-org/mxgo/issues)
385+
- **💬 Discussions**: [GitHub Discussions](https://github.com/your-org/mxgo/discussions)
386386

387387
---
388388

389389
<div align="center">
390390

391-
**⭐ Star this repo if MXtoAI helps you!**
391+
**⭐ Star this repo if MXGo helps you!**
392392

393393
Made with ❤️ for the open source community
394394

add-new-tool.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Guide to Adding New Tools in MxToAi
1+
# Guide to Adding New Tools in MXGo
22

3-
This guide outlines the process for adding new tools to the MxToAi email assistant. It covers architecture considerations, database integration, testing approaches, and best practices based on real implementation experience.
3+
This guide outlines the process for adding new tools to the MXGo email assistant. It covers architecture considerations, database integration, testing approaches, and best practices based on real implementation experience.
44

55
## 1. Tool Architecture Overview
66

7-
MxToAi uses the `smolagents` framework for tool implementation, allowing the AI agent to access specialized functionality. Each tool should:
7+
MXGo uses the `smolagents` framework for tool implementation, allowing the AI agent to access specialized functionality. Each tool should:
88

99
- Have a clear, single responsibility
1010
- Be properly integrated with the agent's capabilities
@@ -54,16 +54,17 @@ For tools that interact with the database:
5454
- Use the `DbConnection` class for database access
5555

5656
```python
57-
from mxtoai.db import init_db_connection
57+
from mxgo.db import init_db_connection
5858

5959
# Initialize at module level for reuse
6060
db_connection = init_db_connection()
6161

62+
6263
# In your tool:
6364
def forward(self, ...):
6465
with db_connection.get_session() as session:
65-
# Perform database operations
66-
# ...
66+
# Perform database operations
67+
# ...
6768
```
6869

6970
### 2.2 Handling Data Models
@@ -78,7 +79,7 @@ When working with database models:
7879
# Example of a hybrid approach
7980
try:
8081
# Try ORM approach first (good for testing)
81-
from mxtoai.models import YourModel
82+
from mxgo.models import YourModel
8283

8384
model = YourModel(...)
8485
session.add(model)
@@ -120,10 +121,11 @@ class ToolInput(BaseModel):
120121
Implement robust error handling:
121122

122123
```python
123-
from mxtoai.utils import get_logger
124+
from mxgo.utils import get_logger
124125

125126
logger = get_logger(__name__)
126127

128+
127129
def forward(self, ...):
128130
try:
129131
# Implementation
@@ -222,7 +224,7 @@ Ensure your tool integrates properly with the email agent:
222224

223225
### 7.1 Code Organization
224226

225-
- Keep tool implementation in its own module in the `mxtoai/tools/` directory
227+
- Keep tool implementation in its own module in the `mxgo/tools/` directory
226228
- Use clear, descriptive names for classes and methods
227229
- Document public APIs thoroughly with docstrings
228230

@@ -250,7 +252,7 @@ Ensure your tool integrates properly with the email agent:
250252

251253
Here's a simplified version of adding a scheduled tasks tool:
252254

253-
1. **Create the tool file** at `mxtoai/tools/scheduled_tasks_tool.py`
255+
1. **Create the tool file** at `mxgo/tools/scheduled_tasks_tool.py`
254256
2. **Implement the tool class** with necessary functionality:
255257
- Input validation
256258
- Database operations
@@ -273,7 +275,7 @@ Here's a simplified version of adding a scheduled tasks tool:
273275

274276
## 10. Conclusion
275277

276-
Adding new tools to MxToAi requires careful planning, implementation, and testing. Following these guidelines will help ensure that your tool integrates smoothly with the existing system and provides reliable functionality.
278+
Adding new tools to MXGo requires careful planning, implementation, and testing. Following these guidelines will help ensure that your tool integrates smoothly with the existing system and provides reliable functionality.
277279

278280
Remember to:
279281
- Keep the tool focused on a specific task

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ services:
33
image: postgres:16-alpine
44
container_name: postgres
55
environment:
6-
POSTGRES_DB: ${DB_NAME:-mxtoai}
7-
POSTGRES_USER: ${DB_USER:-mxtoai}
6+
POSTGRES_DB: ${DB_NAME:-mxgo}
7+
POSTGRES_USER: ${DB_USER:-mxgo}
88
POSTGRES_PASSWORD: ${DB_PASSWORD:-docker_changeme_123}
99
ports:
1010
- "${DB_PORT:-5432}:5432"
@@ -13,7 +13,7 @@ services:
1313
- ./docker/init-db.sh:/docker-entrypoint-initdb.d/init-db.sh
1414
restart: unless-stopped
1515
healthcheck:
16-
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-mxtoai} -d ${DB_NAME:-mxtoai}"]
16+
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-mxgo} -d ${DB_NAME:-mxgo}"]
1717
interval: 10s
1818
timeout: 5s
1919
retries: 5
@@ -125,4 +125,4 @@ volumes:
125125

126126
networks:
127127
default:
128-
name: mxtoai_network
128+
name: mxgo_network

0 commit comments

Comments
 (0)