All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 36s
51 lines
992 B
Markdown
51 lines
992 B
Markdown
# PrinterCentral
|
|
|
|
Sistema central para gestión de impresoras Epson ePOS.
|
|
|
|
## MCP Server para Claude Code
|
|
|
|
Agregar el MCP a tu proyecto (token desde Authentik > Directory > Tokens):
|
|
|
|
```bash
|
|
claude mcp add printercentral --transport http --url https://printercentral.nucleoriofrio.com/api/mcp --header "Authorization: Bearer <AUTHENTIK_TOKEN>"
|
|
```
|
|
|
|
---
|
|
|
|
## Setup
|
|
|
|
```bash
|
|
npm install
|
|
```
|
|
|
|
## Development
|
|
|
|
```bash
|
|
npm run dev
|
|
```
|
|
|
|
## Production
|
|
|
|
```bash
|
|
npm run build
|
|
```
|
|
|
|
## API Endpoints
|
|
|
|
### Impresoras
|
|
- `GET /api/printers` - Listar impresoras
|
|
- `POST /api/printers` - Crear impresora
|
|
- `POST /api/printers/select` - Seleccionar impresora activa
|
|
|
|
### Templates
|
|
- `GET /api/templates` - Listar templates
|
|
- `POST /api/templates` - Crear template
|
|
|
|
### Impresion
|
|
- `POST /api/print` - Imprimir operaciones
|
|
- `POST /api/print/template` - Imprimir template con variables
|
|
- `POST /api/print/raw` - Imprimir operaciones con variables
|
|
|
|
### MCP
|
|
- `POST /api/mcp` - Endpoint JSON-RPC para agentes IA
|