refactor: improve development workflow and code quality

- Add Spanish documentation for AGENTS.md and README.md
- Add pytest to main dependencies and taskipy for dev tasks
- Clean up unused imports across codebase
- Fix default config values for local development
- Update test fixtures to use standard pytest
This commit is contained in:
2026-03-17 18:15:10 -05:00
parent 861f5030f4
commit 1a9efc93da
11 changed files with 238 additions and 24 deletions

View File

@@ -0,0 +1,73 @@
# TrytonMCP
MCP server que permite a LLMs interactuar con Tryton ERP a través de llamadas RPC.
## Requisitos
- Python 3.14+
- uv (gestor de paquetes)
## Instalación
```bash
uv sync
cp .env.example .env
# Editar .env con las credenciales de Tryton
```
## Desarrollo
### Configuración del entorno
```bash
# Activar entorno virtual
source .venv/bin/activate
# Instalar dependencias de desarrollo
uv pip install -e ".[test]"
```
### Comandos disponibles
```bash
# Ejecutar servidor MCP
uv run fastmcp run src/tryton_mcp/server.py
# Ejecutar tests
python -m pytest tests/ -v
# Verificar código con ruff
ruff check src/ tests/
# Format código
ruff format src/ tests/
```
## Estructura del proyecto
```
src/tryton_mcp/
├── __init__.py
├── config.py # Configuración singleton
├── server.py # Servidor MCP principal
└── services/
├── base.py # TrytonService base
├── provider.py # Provider service
├── party.py # Customer/Party operations
├── product.py # Products/Services
├── schedule.py # Appointments
└── service_center.py # Service centers
```
## Testing
```bash
# Todos los tests
python -m pytest tests/ -v
# Tests específicos
python -m pytest tests/test_server.py -v
# Con coverage
python -m pytest tests/ --cov=src --cov-report=html
```