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