docs: Actualizar README con comando MCP y endpoints
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 36s

This commit is contained in:
2025-11-25 13:01:44 -06:00
parent bc5eb826e8
commit 5666df4ce0

View File

@@ -1,75 +1,50 @@
# Nuxt Minimal Starter
# PrinterCentral
Look at the [Nuxt documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
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
Make sure to install dependencies:
```bash
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun install
```
## Development Server
Start the development server on `http://localhost:3000`:
## Development
```bash
# npm
npm run dev
# pnpm
pnpm dev
# yarn
yarn dev
# bun
bun run dev
```
## Production
Build the application for production:
```bash
# npm
npm run build
# pnpm
pnpm build
# yarn
yarn build
# bun
bun run build
```
Locally preview production build:
## API Endpoints
```bash
# npm
npm run preview
### Impresoras
- `GET /api/printers` - Listar impresoras
- `POST /api/printers` - Crear impresora
- `POST /api/printers/select` - Seleccionar impresora activa
# pnpm
pnpm preview
### Templates
- `GET /api/templates` - Listar templates
- `POST /api/templates` - Crear template
# yarn
yarn preview
### Impresion
- `POST /api/print` - Imprimir operaciones
- `POST /api/print/template` - Imprimir template con variables
- `POST /api/print/raw` - Imprimir operaciones con variables
# bun
bun run preview
```
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
### MCP
- `POST /api/mcp` - Endpoint JSON-RPC para agentes IA